Hello everybody, I have a doubt might someone can solve
I want to make an ability like Topsy-turvy in Pokemon, if you don't know what is I'll explain it: it'll totally reverse the buff and debuff the target has (if it has 2 buff in attack, it'll change them into 2 debuff) well, I asked that in another forum and someone (TheoAllen) gave me this idea
class Game_Battler
def reverse_buffs
8.times do |param_id|
@buffs[param_id] *= -1
end
end
end
And then put in the damage formula box from this attack
b.reverse_buff
Well, the problem is I tried this and it didn't work, does anyone know what is wrong with this formula? or does anyone has another way to make this ability?
Thanks a lot who anyone can help me with that
I want to make an ability like Topsy-turvy in Pokemon, if you don't know what is I'll explain it: it'll totally reverse the buff and debuff the target has (if it has 2 buff in attack, it'll change them into 2 debuff) well, I asked that in another forum and someone (TheoAllen) gave me this idea
class Game_Battler
def reverse_buffs
8.times do |param_id|
@buffs[param_id] *= -1
end
end
end
And then put in the damage formula box from this attack
b.reverse_buff
Well, the problem is I tried this and it didn't work, does anyone know what is wrong with this formula? or does anyone has another way to make this ability?
Thanks a lot who anyone can help me with that