- Joined
- Aug 14, 2006
- Messages
- 7,602
Hey there.
I'm creating Gladiator Arena for chapter 7 in The Chosen Ones - Campaign. However, when something new comes, I'm always confused. I'm asking for your little help. Perhaps you could make a little test map or just paste the triggers here.
When the player enters the Gladiator Arena, a trigger will choose a random enemy character to the fight against the player. This happens many times in the game, but I don't want player to fight against same enemy characters. This is the problem.
I need a little system that randomly selects from 1 to X(depends how many characters I will add to the Gladiator Arena) a number to integer variable. Each time a number is chosen, there must be some kind of checker that checks that if the number is already used, it won't be taken. I don't know how to do this, so help is needed. Rep is of course given.
I'm creating Gladiator Arena for chapter 7 in The Chosen Ones - Campaign. However, when something new comes, I'm always confused. I'm asking for your little help. Perhaps you could make a little test map or just paste the triggers here.
When the player enters the Gladiator Arena, a trigger will choose a random enemy character to the fight against the player. This happens many times in the game, but I don't want player to fight against same enemy characters. This is the problem.
I need a little system that randomly selects from 1 to X(depends how many characters I will add to the Gladiator Arena) a number to integer variable. Each time a number is chosen, there must be some kind of checker that checks that if the number is already used, it won't be taken. I don't know how to do this, so help is needed. Rep is of course given.