Staredit Network

Staredit Network -> UMS Assistance -> trigger help
Report, edit, etc...Posted by Oo.Panzer.oO on 2005-05-25 at 22:54:03
i dont get how to make switches work effectively, i know the basics, but in my map im having trouble making a random player have a special quality, like in maps such as *the thing*. i cant get a certain player to have JUST1 unit in a certain area, it always makes like 5 of them, and im not using hypertriggs.
Report, edit, etc...Posted by chuiu on 2005-05-25 at 22:55:45
About your 5 and not 1 problem. You most likely have the trigger running for more than 1 player. If you don't use conditions or players to make it run for specific people then it may run for as many people as are selected in the player list.
Report, edit, etc...Posted by KaboomHahahein on 2005-05-25 at 22:56:02
It will create the unit for every person that the trigger belongs to. Fires to all the people in the game with their box checked.

Edit: I guess I typed too slow...
Report, edit, etc...Posted by in_a_biskit on 2005-05-26 at 05:18:32
Even Blizzard knows about this common problem!
QUOTE(Blizzard Entertainment @ SCC: Frequently Asked Questions)
Why do extra units appear when I try to make units appear for a player?
If you create a trigger that applies to multiple players, then that trigger will fire off once for each player as long as the condition is met for each player.

    Example 1 (How not to do it)
                    Players: 1,2,3,4
                    Condition: Player 1 brings 1 civilian to location foo
                    Action: Create 3 Zerglings for Player 1

This trigger will create 12 zerglings for player 1 since the trigger attempts to fire for each of the four listed players. Thus player one checks the trigger and indeed the condition is met and it creates 3 zerglings. Player two checks the trigger and the condition is met and it also create three zerglings....etc for players three and four. The way to make a trigger only fire once in a situation like this is to make the condition and action use the current player rather than a specific player.

    Example 2 (Working example)
                    Players: 1,2,3,4
                    Condition: Current Player brings 1 civilian to location foo
                    Action: Create 3 Zerglings for Current Player

This would allow players 1,2,3,4 to bring a civilian to the location to create three zerglings. It will only fire once for any given player since if one player brings a civilian to the location, the condition will still be false for the other three players. If the problem is just in creating units for several players at once, use the current player tag rather than a specific player tag. Try using create 3 zerglings for current player rather than create 3 zerglings for player 1.
[right](http://www.battle.net/scc/faq/triggers.shtml)[/right]
Report, edit, etc...Posted by Oo.Panzer.oO on 2005-05-26 at 10:52:07
thank you *in a biskit*, that has actualy been one of the most helpful replys ive ever gotten. (no sarcasm). ill fix my triggs when i get home tonite, im at school currently ^_^
Report, edit, etc...Posted by www.com.au on 2005-05-26 at 17:49:54
heh... we kant go on internet with school sad.gif


hope the trigs are all fixed now.


o and next time instead of making a whole new thread, just search the tutorial database.

i beleive theres a tutorial in there for this problem.
Report, edit, etc...Posted by KaboomHahahein on 2005-05-26 at 18:02:43
There is. There ALWAYS is.
http://www.staredit.net/index.php?tutorial=16
Report, edit, etc...Posted by (U)Bolt_Head on 2005-05-26 at 23:09:55
QUOTE(KaboomHahahein @ May 26 2005, 05:02 PM)
There is. There ALWAYS is.
http://www.staredit.net/index.php?tutorial=16
[right][snapback]216983[/snapback][/right]


Blizzards exclamation is still far more detailed that that one sentance.
Report, edit, etc...Posted by LegacyWeapon on 2005-05-26 at 23:14:22
Does that mean change the current one to the Blizzard one?
Report, edit, etc...Posted by (U)Bolt_Head on 2005-05-26 at 23:59:47
Maybe make a quote box from blizzard below it.
Report, edit, etc...Posted by Oo.Panzer.oO on 2005-05-27 at 10:23:18
ok, well i fixed it, well mostly... but i still had an undesired effect occur once, of about 20 times. both player1 and player2 got the unit that is only supposed to be created for 1 player, based off the random switch settings. how did this happen?
Report, edit, etc...Posted by Basan on 2005-05-27 at 11:20:39
QUOTE(Panzer)
ok, well i fixed it, well mostly... but i still had an undesired effect occur once, of about 20 times. both player1 and player2 got the unit that is only supposed to be created for 1 player, based off the random switch settings. how did this happen?


You must have somethin' in your triggers relating those two. Maybe your trigger(s) is set to a force that includes both those players. ermm.gif
I suggest you do a 'sweep' (read checkup) at those for clearing any eventual bugs there.
Report, edit, etc...Posted by DeathByNumbers on 2005-05-27 at 20:02:36
Tsk, tsk. True to the title you have been given under your picture in the fourms, you are a noobie. Panzie.. The answer to your other question is simple: ok, well i fixed it, well mostly... but i still had an undesired effect occur once, of about 20 times. both player1 and player2 got the unit that is only supposed to be created for 1 player, based off the random switch settings. how did this happen?<---- That might have happened because you have to CLear ALL switches that control the production of that unit.... or it will keep making the same unit for multiple players. (Damn preserver trigger)
Report, edit, etc...Posted by (U)Bolt_Head on 2005-05-28 at 01:59:17
QUOTE(Oo.Panzer.oO @ May 27 2005, 09:23 AM)
ok, well i fixed it, well mostly... but i still had an undesired effect occur once, of about 20 times. both player1 and player2 got the unit that is only supposed to be created for 1 player, based off the random switch settings. how did this happen?
[right][snapback]217712[/snapback][/right]


... I don't see any triggers so theres no way for me to know.
Next Page (1)