- Joined
- Oct 17, 2012
- Messages
- 394
- Reaction score
- 98
- First Language
- Español
- Primarily Uses
- RMVXA
Hello, I'm trying to make a damage formula and I'm having some troubles with it, you'll see, the damage formula is the next one
class Game_Battler < Game_BattlerBase
def attack(a,b)
(((a.atk * 2) + a.luk + ((((a.level / 1.43) ** 2) * (a.atk / 16.0)) * (a.luk / 16.0)) / 24) * ((400 - b.def)/401.0))+1
end
end
The trouble is I still need to add some damage multipliers
If user has state number 23, the damage is multiplied by 1.3
If user has state number 24, the damage is multipied by 0.7
If target has state number 25, the damage is multiplied by 0,7
If target has state number 26, the damage is multiplied by 1,3
Well, can someone tell me how to add those multipliers to this formula? Thanks by the help
class Game_Battler < Game_BattlerBase
def attack(a,b)
(((a.atk * 2) + a.luk + ((((a.level / 1.43) ** 2) * (a.atk / 16.0)) * (a.luk / 16.0)) / 24) * ((400 - b.def)/401.0))+1
end
end
The trouble is I still need to add some damage multipliers
If user has state number 23, the damage is multiplied by 1.3
If user has state number 24, the damage is multipied by 0.7
If target has state number 25, the damage is multiplied by 0,7
If target has state number 26, the damage is multiplied by 1,3
Well, can someone tell me how to add those multipliers to this formula? Thanks by the help
