Is there a simple method to return the number of actors currently in a battle?
I recently changed my variable gathering script to return the information about each actor based upon their index number instead of their name. That way, if the protagonist is not in a battle, the game will return the stats of whoever is in slot 0 and react accordingly, instead of being unable to find the protagonist.
The problem there, however, is that I need to make sure the game isn't trying to load the data of, say, actor #3 when there's no actor there to load.
Is there a JS variable that I could follow the path of in order to acquire the number of actors in a battle?
Thanks in advance!
I recently changed my variable gathering script to return the information about each actor based upon their index number instead of their name. That way, if the protagonist is not in a battle, the game will return the stats of whoever is in slot 0 and react accordingly, instead of being unable to find the protagonist.
The problem there, however, is that I need to make sure the game isn't trying to load the data of, say, actor #3 when there's no actor there to load.
Is there a JS variable that I could follow the path of in order to acquire the number of actors in a battle?
Thanks in advance!