• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Some Questions on Tower Defence stuff

Status
Not open for further replies.
Level 3
Joined
Jun 1, 2005
Messages
42
Hi, i'm designing a TD, and i'm trying to do this:

1. create an initial timer, which shows when 1st wave start.
2. Timer expires, 1st waves are spawned, Timer disappears from screen.
3. Timer reappears after all spawn's units are destroyed, Timer is resetted showing when next wave is.
4. Repeat step 2, but for 2nd, 3rd, 4th...etc wave.

i manage to do the 1st 2 steps, but i can't get step 3 nd 4 to work.

this is what i have done so far:


Step 1 trigger:

Event:

Time - Elapsed game time is 1 sec

Action:

Countdown Timer - Start (timer variable) as one shot that expires in xx secs
Countdown Timer - Create a timer window for (timer variable) with title "XXXXX...."

Step 2 Trigger

Event:

Time - (timer variable) expires

Action:

Countdown TImer - Pause (Timer variable)
Countdown Timer - Hide (timer variable)
UNITS - Create XXX Units for Player Brown at (region)



so can anyone help me out here???
 
Level 17
Joined
May 6, 2008
Messages
1,598
There's awesome tutorials for these kind of stuffs. I'm so nice that i even link it for you!

Gotta find it first!

This line ----------------->
 
Level 5
Joined
Jul 11, 2007
Messages
152
This is probably what you're looking for:
http://world-editor-tutorials.thehelper.net/towerdef.php

For the third and fourth steps I'd make an integer variable and put the units into variable unit groups. When each unit group dies have the integer increase by one and when it reaches four (for four groups as an example) then that can trigger the next wave.
If you need more help or clarification let me know.
 
  • Like
Reactions: Rui
Status
Not open for further replies.
Top