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.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[2026-7-23. : 1:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
[2026-7-23. : 1:39 am]
Oh_Man -- i appreciate SCBW's ability to just let us upload and play WAVs so much compared to nightmare that is total war warhammer 3
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
Please log in to shout.


Members Online: ManCubuS