- Joined
- May 20, 2015
- Messages
- 140
- Reaction score
- 17
- First Language
- Greek
- Primarily Uses
- RMVXA
So basicly I am creating a smokescreen spell ,and I want it to increase your escape chances.
In the BattleManager Module I have this (the things colored in red are my additions)
#--------------------------------------------------------------------------
# * Create Escape Success Probability
#--------------------------------------------------------------------------
def self.escapeRatInc
@escapeRatInc = 1.0
end
def self.make_escape_ratio
@escape_ratio = ( 1.0 * $game_troop.agi / $game_party.agi) *escapeRatInc
end
Then I want through a common event to change increase escapeRatIncfrom 1.0 to 2.0
I've tried this
@escapeRatInc = 2.0
$end
but I don't now how to send the value to the other
*Note - I am less than a beginner to Ruby.
Can anyone help me with a solution ?
In the BattleManager Module I have this (the things colored in red are my additions)
#--------------------------------------------------------------------------
# * Create Escape Success Probability
#--------------------------------------------------------------------------
def self.escapeRatInc
@escapeRatInc = 1.0
end
def self.make_escape_ratio
@escape_ratio = ( 1.0 * $game_troop.agi / $game_party.agi) *escapeRatInc
end
Then I want through a common event to change increase escapeRatIncfrom 1.0 to 2.0
I've tried this
@escapeRatInc = 2.0
$end
but I don't now how to send the value to the other
*Note - I am less than a beginner to Ruby.
Can anyone help me with a solution ?
Last edited by a moderator:
