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.
[02:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-25. : 2:22 pm]
Oh_Man -- https://youtu.be/Lfo4C0xzU04
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
Please log in to shout.


Members Online: Zycorax, Oh_Man