TheBoundDemon

Blasphemy against the holy spirit!
Veteran
Joined
May 15, 2020
Messages
53
Reaction score
2
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,951
Reaction score
4,868
First Language
EN, FR
Primarily Uses
RMMZ

I've moved this thread to RGSSx Script Support. Thank you.

 

A-Moonless-Night

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

TheBoundDemon

Blasphemy against the holy spirit!
Veteran
Joined
May 15, 2020
Messages
53
Reaction score
2
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
695
Reaction score
451
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
 

TheBoundDemon

Blasphemy against the holy spirit!
Veteran
Joined
May 15, 2020
Messages
53
Reaction score
2
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
695
Reaction score
451
First Language
English
Primarily Uses
RMVXA
Just pop it in a new slot below Yanfly's Buff & State Manager script.
 

TheBoundDemon

Blasphemy against the holy spirit!
Veteran
Joined
May 15, 2020
Messages
53
Reaction score
2
First Language
Polish
Primarily Uses
RMVXA
Thank you! ^^
 

Latest Threads

Latest Posts

Latest Profile Posts

since all my maps are hand drawn... I admit, I super envy those who can make the tileset's work. I'm garbage at mapping, but slightly less bad at just drawing my own areas. plus it's easier to draw my own sprites than edit others to look like my characters.
Guys, I made a trailer! And, I also launched the Steam page! If you would like to support the game, please Wishlist it :ahappy: ->
working on some tilesets _ノ乙(、ン、)_

CIBl8xT.png


Oq8WKHX.png
aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v

Forum statistics

Threads
117,284
Messages
1,106,139
Members
153,471
Latest member
Minedude209
Top