• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Wait timers wont work

Status
Not open for further replies.
Level 11
Joined
Jul 17, 2013
Messages
544
ugh so i was told to use timers instead of waits but they dont seem to work. Let me show you my triggers

  • barlog
    • Events
    • Conditions
    • Actions
      • Hero - Drop Torch 0920 <gen> from Aragorn 0001 <gen>
      • Hero - Drop Torch 0920 <gen> from Legolas 0004 <gen>
      • Hero - Drop Torch 0920 <gen> from Gandalf the Grey 0002 <gen>
      • Hero - Drop Torch 0920 <gen> from Boromir 0003 <gen>
      • Hero - Drop Torch 0920 <gen> from Gimli 0005 <gen>
      • Hero - Drop Torch 0920 <gen> from Pippin 0009 <gen>
      • Hero - Drop Torch 0920 <gen> from Merry 0008 <gen>
      • Hero - Drop Torch 0920 <gen> from Frodo 0007 <gen>
      • Hero - Drop Torch 0920 <gen> from Sam 0006 <gen>
      • Item - Remove Torch 0920 <gen>
      • Unit - For Gandalf the Grey 0002 <gen>, Ability Flame of Arnor [W] , Hide ability: True
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Lightning at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Elvenwater at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Wait 10.00 seconds
      • Trigger - Turn on spellbar <gen>
      • Trigger - Turn on spellbar1 <gen>
      • Countdown Timer - Start timer10[1] as a One-shot timer that will expire in 55.00 seconds
      • Trigger - Turn off (This trigger)
  • [trigger]
  • Untitled Trigger 011
    • Events
      • Time - timer10[1] expires
    • Conditions
    • Actions
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Elvenwater at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Countdown Timer - Start timer10[2] as a One-shot timer that will expire in 10.00 seconds
  • [trigger]
  • Untitled Trigger 011 Copy
    • Events
      • Time - timer10[2] expires
    • Conditions
    • Actions
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Elvenwater at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Countdown Timer - Start timer10[3] as a One-shot timer that will expire in 8.00 seconds
  • [trigger]
  • Untitled Trigger 011 Copy Copy
    • Events
      • Time - timer10[3] expires
    • Conditions
    • Actions
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Elvenwater at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Countdown Timer - Start timer10[4] as a One-shot timer that will expire in 8.00 seconds
  • [trigger]
  • Untitled Trigger 011 Copy Copy Copy
    • Events
      • Time - timer10[4] expires
    • Conditions
    • Actions
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Lightning at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Countdown Timer - Start timer10[5] as a One-shot timer that will expire in 8.00 seconds
  • [trigger]
  • Untitled Trigger 011 Copy Copy Copy Copy
    • Events
      • Time - timer10[5] expires
    • Conditions
    • Actions
      • Set TempLoc = (Random point in itemy dla barloga <gen>)
      • Item - Create Lembasbread at TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
      • Countdown Timer - Pause timer10[5]
      • Countdown Timer - Pause timer10[1]
      • Countdown Timer - Pause timer10[3]
      • Countdown Timer - Pause timer10[2]
      • Countdown Timer - Pause timer10[4]
      • Custom script: call DestroyTimer(udg_timer10[5])
      • Custom script: call DestroyTimer(udg_timer10[1])
      • Custom script: call DestroyTimer(udg_timer10[3])
      • Custom script: call DestroyTimer(udg_timer10[2])
      • Custom script: call DestroyTimer(udg_timer10[4])
Thats all only the first timer works rest doesnt work i get the action
ditions
Actions
Set TempLoc = (Random point in itemy dla barloga <gen>)
Item - Create Elvenwater at TempLoc
Custom script: call RemoveLocation (udg_TempLoc) and then nothing happens
 
Level 11
Joined
Jul 4, 2016
Messages
628
No, it doesn't require coding in lua. Just copy the lua script into its own trigger, then use wait-game time second as shown in the gui example.
 
Status
Not open for further replies.
Top