Today is my first time I take a look in BattleManager in my journey in learning RGSS3 🙂 .
This is a module method in BattleManager.
Can someone tell me the meaning of the line I point out below?
def self.next_command begin if !actor || !actor.next_command @actor_index += 1 return false if @actor_index >= $game_party.members.size # <= This line end end until actor.inputable? return truethe @actor_index, what actually is that?
return false if @actor_index >= $game_party.members.size # <= This lineWhat is the simple idea of this line? Did it means all actor is dead so it return false and no next command to be processed?
I hope I post in the right place, Thank you.
This is a module method in BattleManager.
Can someone tell me the meaning of the line I point out below?
def self.next_command begin if !actor || !actor.next_command @actor_index += 1 return false if @actor_index >= $game_party.members.size # <= This line end end until actor.inputable? return truethe @actor_index, what actually is that?
return false if @actor_index >= $game_party.members.size # <= This lineWhat is the simple idea of this line? Did it means all actor is dead so it return false and no next command to be processed?
I hope I post in the right place, Thank you.