Staredit Network

Staredit Network -> UMS Assistance -> Something wrong with Triggers?
Report, edit, etc...Posted by t0fu on 2006-06-25 at 06:44:58
Ok I'm making a bound map and I thought I was done, but when there's 2+ people in the game, each location makes two units instead of one, and it messes up all the triggers. I'm at the point where I'm pissed off now...
Report, edit, etc...Posted by Zeratul_101 on 2006-06-25 at 10:14:22
i'm betting the owner of the trigger is either all players, force 1-4, or players1-8 with current player enabled. if that one trigger is just creating units for more than one player, make sure only one player owns the trigger.

if that still doesn't hwlp, post the trigger.

Report, edit, etc...Posted by dumbducky on 2006-06-25 at 10:15:52
I have no idea what you're saying. Post the triggers, that's what we need to see. That way we can show you what's wrong and how to fix it.
Report, edit, etc...Posted by Mini Moose 2707 on 2006-06-25 at 12:54:00
The computer player should be running the triggers, not each human player or the human player's force.
Report, edit, etc...Posted by DarckRedd on 2006-06-26 at 10:44:25
If a create unit trigger is running for two seperate players, it will double the number of units created.
Report, edit, etc...Posted by Electroid on 2006-06-27 at 09:21:40
QUOTE(Zeratul_101 @ Jun 26 2006, 12:14 AM)
i'm betting the owner of the trigger is either all players, force 1-4, or players1-8 with current player enabled. if that one trigger is just creating units for more than one player, make sure only one player owns the trigger.

if that still doesn't hwlp, post the trigger.
[right][snapback]512908[/snapback][/right]


Correct, but allow me to explain.

I'm sure all map makers have encountered this problem. The simple solution is just to make the create units triggers 1 player at a time. You see, if there are 2 players in the game, and you've shared your create units trigger between players, the trigger will run twice, therefore creating twice the amount of units. Basicaly the trigger will run once for EACH player.

Try this...

(Example)
[Trigger 1]
Players:
Player 1
Condition:
If player brings at least 1 unit to location 1
Action:
Create 1 unit for player 1

Easy.
Report, edit, etc...Posted by t0fu on 2006-06-30 at 14:17:28
kk guys i got it thanks for all ur help
Next Page (1)