Trigger that turn on only by other trigger.

Level 3
Joined
Oct 20, 2010
Messages
22
I want to create a trigger that turn on only by other trigger.
(i mean that the trigger always dont do anything,but in some time or that happens something other trigger turn on the sleeping trigger and the sleeping trigger start to working)
please how i do this??
thanks!
(+rep)
 
Level 37
Joined
Mar 6, 2006
Messages
9,242
Create the sleeping trigger, and give it the event and action you need. Right click the trigger in the trigger list and select "initially off".

  • Trigger 2
    • Events
      • -------- Add some event if needed --------
    • Conditions
    • Actions
      • -------- Do something here --------
Create another trigger that turns on the sleeping trigger.
This trigger turns on Trigger 2, and turns off Trigger 1 when any Paladin type unit in the map dies. Use the event you need.
  • Trigger 1
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Trigger 2 <gen>
 
Level 3
Joined
Oct 20, 2010
Messages
22
Create the sleeping trigger, and give it the event and action you need. Right click the trigger in the trigger list and select "initially off".

  • Trigger 2
    • Events
      • -------- Add some event if needed --------
    • Conditions
    • Actions
      • -------- Do something here --------
Create another trigger that turns on the sleeping trigger.
This trigger turns on Trigger 2, and turns off Trigger 1 when any Paladin type unit in the map dies. Use the event you need.
  • Trigger 1
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Trigger 2 <gen>
So to make trigger sleep,that need to be-"initially off"?
so simple?
(thanks,added to your rep)
 
Level 11
Joined
Oct 27, 2009
Messages
234
  • Trigger
    • Events
      • -------- Add some event if needed --------
    • Conditions
    • Actions
      • -------- Do something here --------
you can use variables bi boolean type, thats some kind of conndition that you can use like action. like in Aos maps for creating a troops.
  • Initalization
    • Event
      • Map Initalization
    • Conditions
    • Actions
      • Set - StartSpawn = False
  • Start Spawn
    • Event
      • Time Elapsed - 60 seconds
    • Connditions
    • Actions
      • Set Start Spawn = True
      • Create (unit) for (owner) etc.
  • Periodic Spawn
    • Event
      • Every 30 seconds of game
    • Connditions
      • StartSpawn = True
    • Actions
      • Create (unit) for (owner) etc.
whit this way of trigering this last triger will not be activated until you set
  • Set Start Spawn = True
and also you can whit other triger set it to False.
Example:
  • Stop Spawn
    • Event
      • Unit Dies
    • Connditions
      • Unit type of trigering unit equal to Barrack
    • Actions
      • Set Start Spawn = False
 
Top