S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA
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
 

S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA

dinhbat3

Veteran
Veteran
Joined
Feb 5, 2014
Messages
184
Reaction score
31
First Language
English
Primarily Uses
according to the snippet you named it: reverse_buffs

so it needs the s at the end. it should be this: b.reverse_buffs
 

S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA
I feel stupid now lol, but well, I'm new in this and all those things are part of the learning process, it DID work, thanks by the help :)
 

Latest Threads

Latest Posts

Latest Profile Posts

May I make a suggestion for what language we should use for plugins?

IMG_1177.JPG
Have you opened all the advent calendar's yet? Don't forget to leave @Starbird_Resources and @WaywardMartian some love!
1638376821276.png
LOOK AT EM GOOOOOOOOOO!
Sorry for the spam with this, I'm just real happy with how this has gone :D
Custom sleep sequence done! :kaopride:
fuY8hyg.gif
The other day I posted a merchant airship tileset and said it was overflow from my Advent Calendar. @Avery said something like "that's one way to flex!" Well, this morning I woke up and realized THAT I MISCOUNTED AND AM SHORT BY ONE DAY. My face and palm are now perfectly fused together.

Forum statistics

Threads
117,104
Messages
1,104,611
Members
153,124
Latest member
pirocudo341
Top