hello! Recently I got some code made that looks like this:
#-------------------------------------------------------------------------- # * Level Up #-------------------------------------------------------------------------- def level_up @level += 1 self.class.learnings.each do |learning| learn_skill(learning.skill_id) if learning.level == @level end case @actor_id #these are for conversation items when 001 #This is the Actor ID $game_temp.reserve_common_event(9) #This is the common event ID when 002 $game_temp.reserve_common_event(8) end endnow, as far as I have made it work, when I have actor 1 in the party, it works. When I have actor 1 and actor 2 in the party, it works. But, when I have actor 2 only in the party, it doesn't run at all!
this is one of the two common events that it's calling:
I'm not posting the other one cause they are practically identical.
So, what can I do to fix this?
#-------------------------------------------------------------------------- # * Level Up #-------------------------------------------------------------------------- def level_up @level += 1 self.class.learnings.each do |learning| learn_skill(learning.skill_id) if learning.level == @level end case @actor_id #these are for conversation items when 001 #This is the Actor ID $game_temp.reserve_common_event(9) #This is the common event ID when 002 $game_temp.reserve_common_event(8) end endnow, as far as I have made it work, when I have actor 1 in the party, it works. When I have actor 1 and actor 2 in the party, it works. But, when I have actor 2 only in the party, it doesn't run at all!
this is one of the two common events that it's calling:
I'm not posting the other one cause they are practically identical.
So, what can I do to fix this?