- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
I am always interested to learn about battles. May I ask how are they actually called (the actors and the enemies). So, this is how my question goes:
I want to know:
Say for example at the start of battle I have Eric, Natalie and Terence. I want a check code to which position they are in. The idea here is that since the maximum battle members is 4, I have 1, 2, 3 and 4 positions too. So if Eric, Natalie and Terence are in order, it means:
Eric = 1
Natalie = 2
Terence = 3
If it was changed as
Terence
Natalie
Eric
it becomes
Terence = 1
Natalie = 2
Eric = 3
So the positions are like slots.
I am looking for a way how to set this idea up. This way, I can make control structures / conditional branches that if:
Actors in this array == this slot
- this happens
Actors in this array == this slot
- another thing happens
Hope I was able to explain it well. TIA.
I want to know:
- Positions of my party members
Say for example at the start of battle I have Eric, Natalie and Terence. I want a check code to which position they are in. The idea here is that since the maximum battle members is 4, I have 1, 2, 3 and 4 positions too. So if Eric, Natalie and Terence are in order, it means:
Eric = 1
Natalie = 2
Terence = 3
If it was changed as
Terence
Natalie
Eric
it becomes
Terence = 1
Natalie = 2
Eric = 3
So the positions are like slots.
I am looking for a way how to set this idea up. This way, I can make control structures / conditional branches that if:
Actors in this array == this slot
- this happens
Actors in this array == this slot
- another thing happens
Hope I was able to explain it well. TIA.
