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

How The Ef to make a Periodic timer

Status
Not open for further replies.
Level 8
Joined
Nov 21, 2008
Messages
316
First off, i am no noob when it comes to map making, but SC2's triggers r sloppy in my eyes, i still cant figure out how to make a variable. this is my trigger so far, yet it doesnt work. plz help me.

Events
Game - Map initialization

Actions
Timer - Start (New timer) as a Repeating timer that will expire in 60.0 Game Time seconds
Timer - Create a timer window for (Last started timer), with the title "Spawn", using Remaining time (initially Visible)
Timer - Create a timer window for (Last started timer), with the title "Spawn", using Remaining time (initially Visible)

All that comes up is a timer that says Spawn 00.00.00.

ive tried many things. Is there a way to make a variable timerwindow
 
Level 9
Joined
May 9, 2009
Messages
536
Create a variable called <Insert Timer Name Here :3>. To do that, click on the trigger white space. Not the local variables, the white space. The white space where triggers and folders are. Right click it and create a new Variable. Set that variable to a timer and leave it alone. Then go to an initialization and put in an action and Start <Your Timer Name> as a Periodic timer that expires every <Insert Time> <Insert Type> seconds
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
.... So make it one?

Below is a crappy map I edited in an attempt to improve it made by anteep (or someone who called himself that on battlenet 2.0 SC2 beta). It shows the use of a timer and the worst possible way to do spawns. I am sure you can use knowledge extracted from it to make something better.
 

Attachments

  • Zerg Invasion Alternative.SC2Map
    76.4 KB · Views: 125
Level 8
Joined
Nov 21, 2008
Messages
316
super idk what is making the trigger constantly make a new timer. there r only like two steps to it

actions
Timer - Start Spawn Timer as a Repeating timer that will expire in 5.0 Game Time seconds
Timer - Create a timer window for (Triggering timer), with the title "Spawn", using Remaining time (initially Visible)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
I think you mean it is making a new timer window each time not a new timer?

Timer - Create a timer window for (Triggering timer), with the title "Spawn", using Remaining time (initially Visible)
should only be run once. Place it in with other initialization triggers or to start 0.5 seconds after the game does.
 
Status
Not open for further replies.
Top