- Joined
- Feb 16, 2014
- Messages
- 80
- Reaction score
- 18
- First Language
- English
I am performing actions based on the Party members actor IDs. However if there is no party member present in one or more of the checked party slots, the game returns an error.
How can I first check how many party members there are so I can set when to break the loop?
Below is what I'm trying to do. ( I don't need to know how to do the loop code, it's just there to give more information on what I'm doing)
I suppose I could always keep track of the # of party members in my own variable, but if there is already a way then I would rather use it.
LoopVarA = 0
NumofPartyMembers = Number of party members <--- How do I do this?
Loop
$gameParty.members()[LoopVarA]._actorId
LoopVarA = LoopVarA + 1
if LoopVarA = (NumofPartyMembers) Break Loop
End Loop
How can I first check how many party members there are so I can set when to break the loop?
Below is what I'm trying to do. ( I don't need to know how to do the loop code, it's just there to give more information on what I'm doing)
I suppose I could always keep track of the # of party members in my own variable, but if there is already a way then I would rather use it.
LoopVarA = 0
NumofPartyMembers = Number of party members <--- How do I do this?
Loop
$gameParty.members()[LoopVarA]._actorId
LoopVarA = LoopVarA + 1
if LoopVarA = (NumofPartyMembers) Break Loop
End Loop

