darkcieran
Member
I've changed this post to instead ask for help on what might be an easier problem to solve.
Say I have an array of 10 variables('num1', 'num2', 'num3', 'num4', etc) and I wanted to add a chara's id to these variables. now say i set 'num1' to the first hero in the database. the easy thing would be to just set the other variables to to the rest of the heroes in the database, right? but say i have them join my party in a random order. what i want to do is add a hero's id to a variable that is empty(=0) but only to the first variable the system finds that is equal to 0 and not to every variable that is 0.
ie a code that looks like this.
i hope this makes sense
Say I have an array of 10 variables('num1', 'num2', 'num3', 'num4', etc) and I wanted to add a chara's id to these variables. now say i set 'num1' to the first hero in the database. the easy thing would be to just set the other variables to to the rest of the heroes in the database, right? but say i have them join my party in a random order. what i want to do is add a hero's id to a variable that is empty(=0) but only to the first variable the system finds that is equal to 0 and not to every variable that is 0.
ie a code that looks like this.
Code:
variable array {1...20}
add hero id to the first variable found that = 0
i hope this makes sense