Yanfly Buff & State Manager Error [VX Ace]

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
Hello. I recently encountered a problem with Yanfly's B&S Manager. I tried to add a <reapply ignore> notetag to a state but when such state is applied to an enemy, the game returns an error:
Bez tytułu.png
I am 100% sure it's the notetag's fault, because after I remove it, the error no longer appears.

Does anyone know how to fix this?
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ

I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
First Language
English
Primarily Uses
RMVXA
Can you show a screenshot of how you've used the notetag?
 

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
Here it is:
Bez tytułu.png
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
First Language
English
Primarily Uses
RMVXA
Apparently this is an error that other people have had, according to the script page. This snippet should fix the issue:
Ruby:
class Game_Battler < Game_BattlerBase

  def add_state(state_id)
    return if $data_states[state_id].nil?
    state_rules = $data_states[state_id].state_reapply_rules
    return if state_rules == 0 && state?(state_id)
    if state_addable?(state_id)
      add_new_state(state_id) unless state?(state_id)
      reset_state_counts(state_id) if [0, 1].include?(state_rules)
      total_state_counts(state_id) if state_rules == 2
      @result.added_states.push(state_id).uniq!
    end
  end
 
end
 

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
Where to put this?
Sorry but I am completely green at ruby... :(
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
First Language
English
Primarily Uses
RMVXA
Just pop it in a new slot below Yanfly's Buff & State Manager script.
 

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
Thank you! ^^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,858
Messages
1,017,023
Members
137,565
Latest member
Callmelogann
Top