QUOTE(in_a_biskit @ Jan 30 2006, 08:44 PM)
I'm really not sure how you've got this set up...
You have a Gym location called "Gym Zone". - or do you have 8 gym locations?
When a player wins at a gym, they're supposed to get money and a 'badge', which is represented by some unit.
That Badge unit is created at a location called "Badges here".
Then that Badge unit is moved to a location called "Player #(1-6) Badge)". - or do you have six separate locations, one for each player?
Your main problem is that the Badges aren't always being created for the player that beat the gym. In particular, they're being created for lower number players that haven't yet beat the gym.
With the switches called "Gym #", is the # to denote which player has or hasn't won at the gym?
When do you set the "Gym #" switches? Right at the beginning of the game?
What is the "Gym Zone" switch for?
If I've interpreted everything correctly, then your problem is that any player can defeat a gym, and if "Gym 1" is set, then that trigger will activate and give player 1 the badge, whether it was player 1 who won at the gym or not.
One way of getting around your problem is to make sure the trigger 'knows' who has just beaten the gym - for example, with a condition "Current player brings at least 1 unit to 'Gym Zone'." in your first trigger. Rather than using your "Gym #" switches, I'd prefer to simply count the number of badges you have - which should tell you which gym you're up to, if you have to do them in order.
So for the first gym the condition would be "Current player commands at most 0 badges" instead of "'Gym #' is set".
This way, you only need one trigger, not six, and you don't need switches.
You may also need a failsafe trigger with the similar conditions, except with "Current player commands at least 1 badges" instead of "Current player commands at most 0 badges", to make sure either that the same player doesn't try to win against a gym more than once, or that if the player wins against a gym that they've already beaten, they don't get another badge/money.
message in a line: You need a 'current player' condition or another method to make your trigger recognise who exactly beat the gym
[right][snapback]417156[/snapback][/right]
Guess i didnt clarify everything as well as i thought.
Lets start off with thr location layers:
Gym Zone: Location layer over the Gym arena.
There is only one gym arenaPlayer #(1-6) Badge): Each player as there own seprate trigger.
Player 1 badge, Player 2 badge....Player 6 badge.Badge Here: Place where all badge gets sent before going to the "Player 1 badge....." Location
Switches:
Gym #: What number the gym is. There are eight diffent gyms and named them as followed; Gym 1, Gym 2,....Gym 8. Heres how it gets active;
| Trigger |
| Description: |
| Gyms 1-8 |
|
| Players: |
| ¤ Pokemon Trainers (Force 1) |
| Conditions: |
¤ Current player brings exactly 1 Trainer to "Gym #"
|
¤ Current player brings at least # men to "Gym #"
|
| ¤ "Gym Zone" is set |
| Actions: |
¤ Center View "Gym Zone"
|
¤ Move 1 Trainer for Current player at "Gym #" to "Gym Trainer"
|
¤ Move # men for Current player at "Gym #" to "Gym Trainer Pokemon"
|
¤ Create # unit at "Gym Leader Pokemon" for Player 8
|
¤ Create 1 Trainer at "Gym Leader" for Player 8
|
¤ Display Text Message
|
¤ Set "Gym #"
|
| ¤ Comment: Gym # Battle |
*No Problem what so ever with this trigger*Gym Zone: This switch allows player to enter the gym. Once a player is in the gym arena the switch turns off. Stopping other player from entering. Once the battle is over its turned back on.
I hope i cleared everything up.
ADDITION:
Never mind guys, i think i figured out why this is all happening. I dont no if i can explain it but it has to do with the switches.
When u enter the battle which show in the trigger above, it will active the switch "gym #" Once that switch gets active the trigger with the reward will get active as well. But that trigger will go for all players starting with player one. In that trigger i set no condition telling what player it should go to. Which made all the badges get sent to me.
If sumbody can clarify this for me it would be a big help to all of us. I just learned sumthing very important. LOL.