• 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.

Elapsed Game Time with Variable

Status
Not open for further replies.
Level 2
Joined
Jun 29, 2008
Messages
20
Hey guys, has been a while,
but now i need your help with a simple question:
Why can't i use a real nor an integer for Elapsed Game Time?
It just acts like i didn't declare the variable and my friend and me need
it desperately.

Thanks, chemrick
 
Level 8
Joined
Aug 4, 2006
Messages
357
in your initialization trigger, you need to do something like:
  • Trigger - Add to elapsed game time <gen> the event (Time - Elapsed game time is hammerTime seconds)
replace "hammerTime" with the real variable.
replace "elapsed game time <gen>" with the trigger that you want to run when Elapsed Game Time == hammerTime.
your "elapsed game time" trigger should not have any events, in the trigger editor.

P.S. GUI is stupid and quite limited in use. you should consider learning JASS.
 
Status
Not open for further replies.
Top