Hey there.
I have a common event that often triggers during battle and applies a state to a random alive actor in player's party.
I've been struggling to make it target a random alive party battle member, since there can be any amount of party members from 1 to 4 in the party, and any of them can be alive or dead.
Common event will let me assign an actor based on ID from a variable, but I don't know how to set this variable correctly.
Would appreciate some help, I feel I just lack knowledge of proper syntax to loop through alive party members and get ID of random one of them...
I have a common event that often triggers during battle and applies a state to a random alive actor in player's party.
I've been struggling to make it target a random alive party battle member, since there can be any amount of party members from 1 to 4 in the party, and any of them can be alive or dead.
Common event will let me assign an actor based on ID from a variable, but I don't know how to set this variable correctly.
Would appreciate some help, I feel I just lack knowledge of proper syntax to loop through alive party members and get ID of random one of them...