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

[Trigger] Spawns

Status
Not open for further replies.

NeJiIjEn

N

NeJiIjEn

Im a little bit confused on Monster Spawning in TDS. I wanted to do the first lvl first, then wait awhile when the monsters are all killed, then the second level. Or i can just do this:
_________________________________________________________________
TRIGGER 1
Events
Time - Elapsed game time is 30 seconds
Conditions
none
Actions
Unit- Create # of (unit) for Player (#) at (region) blah blahblah..
Trigger- Turn off this trigger
Trigger- Turn on (next monster spawn trigger)
And so on and so on.
_________________________________________________________________
Do i do that? The line is just to seperate this from the trigger.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
InitializationTrigger
Events:
-Map Init
Conditions:
-None
Actions:
-Set creepUnit[1] = Peasant
-Set creepUnit[2] = Peon
(etc, the number in the [array] brackets being the wave number and the unit type being the unit for that round)


SpawnTrigger
Events:
-Time - Periodic - Every 30 Seconds
Conditions:
-None
Actions:
-Unit - Create # (creepUnit[waveInt]) for Neutral Hostile at SpawnPoint1
-Set waveInt = waveInt + 1
blah blah blah


Notes of varaibles:
creepUnit[] is an array unit type varaible.
waveInt is an integer that holds the wave number.


there are of course better ways to do this, so just ask :thumbs_up:
 

NeJiIjEn

N

NeJiIjEn

oh i see. thanks! Any one wanna help me make a TFT TD map? i got some of it done. =). Reply and/or private message me if u want. But umm instead of creapUnit[blah], do i put playerUnit[blah]? Or its just the same.
 
Last edited by a moderator:

NeJiIjEn

N

NeJiIjEn

Its a clan map. My clan leader wants me to make a clan map. heh too bad its for TFT players. I just need to get the spawns working right. But why Periodic time? I was ganna use timer but periodic is fine but im not ganna let it repeat over and over. Unless when the units die the level increases?
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
just turn the trigger on or off when you want to.

u can use leaderboards or multiboards to make a really cool timer too.

if you want the spawns to come immediately as the round is finished, use this trigger rather:

Events:
Elapsed time is 30 Seconds
Conditions:
None
Actions:
Unit - create blah blah
waveInt++
unit group - add last created unit group to creepGroup
Wait for condition : (all units of (creepGroup) is dead equal to true)
Trigger - Run this trigger
 
Level 18
Joined
Jan 24, 2006
Messages
1,938
Fuck food use, just check when there's none of the monter's team left on the map, or add the amount that spawns into a variable, lower it by 1 each time one of the monsters is killed, and then have a periodic event to check when that variable hits 0.

-*meow*
 
Status
Not open for further replies.
Top