- Joined
- Oct 17, 2012

- Messages
- 394

- Reaction score
- 98

- First Language
- Español

- Primarily Uses
- RMVXA

Thanks to Waterguy to make this one, he could solve it of this way

class Game_Battler < Game_BattlerBase

def custom_damage_state(a, b, state, state_chance, damage)

chance = state_chance

chance *= b.state_rate(state)

chance *= b.luk_effect_rate(a)

chance *= 2 if a.state?(41)

b.add_state(state) if rand(100) <= chance

damage

end

end

It works perfectly, but now I want to make the same to make an attack adds a parameter buff/debuff with an attack, can someone adapt this formula to make this possible? Thank you