Trigger problem
Dec 19 2008, 4:33 am
By: guff1988  

Dec 19 2008, 4:33 am guff1988 Post #1



I have a trigger to create units based on a code entered using civs(golems) but when the unit is spawned at a holding area the next trigger is to move that unit from the holding location to a new location by the current players base. But the trigger isnt working.

Trigger looks like this

for player 1
always
move all units at holding zone for player 1 to player 1 hero

Whats the problem?



None.

Dec 19 2008, 4:37 am Elvang Post #2



Is there a preserve trigger action for it? If not you need to add it.



None.

Dec 19 2008, 4:39 am guff1988 Post #3



ive always seen the preserve trigger actions but never understood the use...i will add it but could someone explain preserve trigger to me, a new map builder.




Dec 19 2008, 5:04 am Kaias Post #4



Having "Preserve Trigger" anywhere in the actions section of the trigger will make the trigger continue running throughout the game, so long as the conditions are met. Without it, the trigger will only ever run once.



None.

Dec 19 2008, 5:15 am Falkoner Post #5



My question, what is the point of having a holding area? Why not just create them directly where they need to be, and if you're trying to avoid creation error messages, which are definitely a problem in Golem maps, why don't you just create it and move it in the same trigger?



None.

Dec 19 2008, 5:49 am guff1988 Post #6



Quote from Falkoner
My question, what is the point of having a holding area? Why not just create them directly where they need to be, and if you're trying to avoid creation error messages, which are definitely a problem in Golem maps, why don't you just create it and move it in the same trigger?


It saves code doing the holding area because I am working off of a shell i made about 3 years ago. Ive gotten better at understanding triggers and map making and decided to try again. The shell had only the her golem codes done so i decided to add to it and make them spawn at the bases as opposed to how i originally had it where they spawned at a communal spot.



None.

Dec 19 2008, 1:37 pm NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Kaias got it right, but I want to give a little background on the "preserve trigger":
Normally all triggers run once (when the conditions are met), and then are deleted from memory.
To prevent sc from deleting a trigger there's the "preserve trigger" action. It doesn't do anything in your map but telling sc not to delete, but preserve the trigger.

Welcome messages are obvious examples for non-preserved triggers,
Spawning triggers are examples that need the preserve trigger.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:15 am]
DarkenedFantasies -- you eat lots of beans
[03:46 am]
IskatuMesk -- how do i get gas
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
Please log in to shout.


Members Online: anoeth47