- Joined
- Jun 20, 2014
- Messages
- 605
- Reaction score
- 209
- First Language
- English
- Primarily Uses
Hey guys,
I'm having an odd problem. When I add states to an actor, they get applied but immediately removed again right after. And I can't figure out where or why the states are getting removed.
How can I write a small method that prints a message each time @states is changed? For example, in Game_Battler I tried:
def self.states
p @states
return @states
end
But that does nothing.
Trying to track down where on earth @states is getting cleared... Because if I do a "p @states" at the end of def add_state, it shows me just fine that they were added. But somehow they're gone again right after.
Thanks in advance.
I'm having an odd problem. When I add states to an actor, they get applied but immediately removed again right after. And I can't figure out where or why the states are getting removed.
How can I write a small method that prints a message each time @states is changed? For example, in Game_Battler I tried:
def self.states
p @states
return @states
end
But that does nothing.
Trying to track down where on earth @states is getting cleared... Because if I do a "p @states" at the end of def add_state, it shows me just fine that they were added. But somehow they're gone again right after.
Thanks in advance.
Last edited by a moderator:


