Trigger help

0rcL0rd

New Member
Reaction score
1
Edit : Solved


Hi
what is wrong with this code, it doesn't work.

RedTimer
Trigger:
  • Events
    • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Start RedTimer as a Repeating timer that will expire in 20.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Next Level in :
      • Countdown Timer - Show (Last created timer window) for Player 1 (Red)


RedSpawn
Trigger:
  • Events
    • Time - RedTimer expires
    • Conditions
    • Actions
      • Set Level = (Level + 1)
      • Trigger - Turn on RedSpawns <gen>
      • Trigger - Run RedSpawns <gen> (checking conditions)


RedSpawns
Trigger:
  • Events
    • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 RoundUnit[Level] for Player 12 (Brown) at (Center of RedSpawn <gen>) facing 280.00 degrees



This is my leveltable as a test

Set RoundUnit[1] = Bandit
-------- next round --------
Set RoundUnit[2] = Brigand
-------- next round --------


And in Initialization i have Set the Level to 0.
 

HellCraft

Member
Reaction score
19
Instead of:
Trigger - Run RedSpawns <gen> (checking conditions)

Try:
Trigger - Turn On RedSpawn<gen>

And cancel the Initially On option for the RedSpawn trigger.
 

vypur85

Hibernate
Reaction score
803
The triggers seem simple and should work fine.

Double check if you've set RoundUnit[1] and RoundUnit[2] at Map Init or Elapsed Time. It should be Map Init.

Otherwise, check if there is any other trigger that removes unit upon entering map. And check in the Object Editor if your units have model... Well, these are the only things I can think of now.
 

0rcL0rd

New Member
Reaction score
1
Thanks vypur85, it was only the Map Int that i needed to add in the event.
Thanks man
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top