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

A quarter of century ago, one astute frog man was born. :ninja:
All new MZ Weather & Title updates are also RETRO'able for MV! Updated RETRO project will be released on same day I'll release updated MZ demo -project!

retro.png
Just lost about half a day's worth of work because rpg maker crashed during playtesting and corrupted my file :kaolivid:
Boku.gif
advanced_puzzling.PNG
Having a lot of fun making different poses for my character sets! Open to suggestions/critique!

CSKttqh.png

Forum statistics

Threads
117,019
Messages
1,103,890
Members
152,926
Latest member
Whitecup
Top