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


It's a Spanish devlog don't get scared!.
Just read the forum rules just for kicks and rule 14 reminds me of this:
150.jpg
I'm in the process of converting all locks and intimidate/persuade dialogue options into D20 DC based success/fail (modified by player skill). Before, it required a certain flat amount you had to meet, but with rolls, it offers more freedom. For instance, you can repeatedly try to unlock a door instead of just not meeting the requirement to unlock it.
Since we get very close: If you want to enjoy the advent calendar as it is intended, wait til your date and the day in the URL line up, so you have the final day on actual christmas and not the day before... time zones ;3
1638170340913.png
Crossover Inn is getting very crowded, and I love it

Forum statistics

Threads
117,050
Messages
1,104,151
Members
153,009
Latest member
chuksjn
Top