- Joined
- May 7, 2009
- Messages
- 21
In the TD I'm working on, each player has 5 towers. To keep track of which tower has accomplished which requirements for a CustomSkill, they are essentially booleans:
EnabledCustomSkill1[PlayerNumber + 1] = True
So, basically
Tower 1 = [PlayerNumber + 1]
Tower 2 = [PlayerNumber + 2]
Tower 3 = [PlayerNumber + 3]
Tower 4 = [PlayerNumber + 4]
Tower 5 = [PlayerNumber + 5]
So my question is, is there an easy way to change all of the "[PlayerNumber + 1]" in my triggers to "[PlayerNumber + 2/3/4/5]" for when I copy/paste the triggers for the other towers? Gettin close to done with the triggers for the first tower and would rather not have to go through and manually change each one (there's an asston of em). Also, I don't know JASS (just in case that's an issue).
EnabledCustomSkill1[PlayerNumber + 1] = True
So, basically
Tower 1 = [PlayerNumber + 1]
Tower 2 = [PlayerNumber + 2]
Tower 3 = [PlayerNumber + 3]
Tower 4 = [PlayerNumber + 4]
Tower 5 = [PlayerNumber + 5]
So my question is, is there an easy way to change all of the "[PlayerNumber + 1]" in my triggers to "[PlayerNumber + 2/3/4/5]" for when I copy/paste the triggers for the other towers? Gettin close to done with the triggers for the first tower and would rather not have to go through and manually change each one (there's an asston of em). Also, I don't know JASS (just in case that's an issue).