Trigger Editor

Verrak

New Member
Reaction score
4
Whats the diffrence between
Trigger - Turn on Yadda Yadda and
Trigger run(checking/ignoring) conditions
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Whats the diffrence between
Trigger - Turn on Yadda Yadda and
Trigger run(checking/ignoring) conditions
I'm assuming that turning it on will run it normally, and you can have it initially turned off.
While running checking/ignoring will run it from another trigger or ignore the conditions so it will run even if they're not met.
 

Furby

Current occupation: News poster
Reaction score
144
Run - Runs trigger when is action activated. Instantly.

On - Making trigger turned on. Enables the events. Doesnt do anything if is trigger already on.

PS: sry for english
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
Turning a trigger off prevents the trigger from being executed by an event.
Running a trigger, runs the trigger skipping the event.
 

Exide

I am amazingly focused right now!
Reaction score
448
-What the above already said.-

But adding an example:

If you have two triggers, for example:

Code:
Foot Trigger
Events
Conditions
Actions
  set loc = Random Point in (Playable Map area)
  unit create 1 Footman for Neutral Hostile at loc facing 270.00
  custom scritp   call RemoveLocation(udg_loc)

Code:
Rifly Trigger
Events
  Every 5 sec of game-time
Conditions
Actions
  set loc = Random Point in (Playable Map area)
  unit create 1 Rifleman for Neutral Hostile at loc facing 270.00
  custom scritp   call RemoveLocation(udg_loc)

Now, if you Run any of these triggers one Footman/Rifleman will spawn.
If you turn on 'Rifly Trigger' a rifleman will spawn every 5 second, until the trigger is turned off. (Turning on 'Footy Trigger' does nothing.)

Hope that helps.
 

Romek

Super Moderator
Reaction score
964
> Exide
And if you turn on "Foot Trigger" nothing will happen, as there are no events. :p
 

Verrak

New Member
Reaction score
4
Well i'm trying to get this trigger to work or a series of simple ones.

Code:
Undead Attacks
    Events
        Map initialization
    Conditions
    Actions
        Trigger - Turn on West Ghoul Attack <gen>

Code:
West Ghoul Attack
    Events
    Conditions
    Actions
        Trigger - Turn on West Ghoul Attack 1 <gen>
        Wait 60.00 seconds
        Trigger - Turn off West Ghoul Attack 1 <gen>
        Trigger - Turn on West Ghoul Attack 2 <gen>
        Player - Set the current research level of Ghouls Cripple  to 1 for Player 12 (Brown)
        Wait 60.00 seconds
        Trigger - Turn off West Ghoul Attack 2 <gen>
        Trigger - Turn on West Ghoul Attack 3 <gen>

Code:
West Ghoul Attack 1
    Events
        Time - Every 12.00 seconds of game time
    Conditions
    Actions
        Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of UNDEAD Cryprt Spawn <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to AttackGroup
        Unit - Order (Last created unit) to Attack-Move To (Center of PATH West Gate <gen>)
        Unit - Create 1 Ghoul for Player 12 (Brown) at (Center of UNDEAD Cryprt Spawn <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to AttackGroup
        Unit - Order (Last created unit) to Attack-Move To (Center of PATH West Gate <gen>)
        Unit - Create 1 Zombie for Player 12 (Brown) at (Center of UNDEAD Cryprt Spawn <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to AttackGroup
        Unit - Order (Last created unit) to Attack-Move To (Center of PATH West Gate <gen>)



Basically i am dividing it up, thier will be 3 diffrent races spawning diffrent units so i have race/unit/unit triggers

Undead attacks triggers the start of West Ghoul and That starts the west ghoul attack 1 which is innitial off. But Nothing is spawned, the region is correct
 

BarzahdX

Active Member
Reaction score
18
Undead Attacks should run the West Ghoul Attack trigger, not simply turn it on. West Ghoul Attack has no events.

Alternatively, you can just add "Map Initialization" as the event on West Ghoul Attack, and nix Undead Attacks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top