HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TD Waves system plz help

10-30-2003, 08:56 PM#1
IDISacredIDI
Hi, I'm currently making a TD and its coming along nicely (apart from the trouble I'm having with one of the special features) anyway. I've got the point where I'm trying to input a waves system.

I create the Variable Monsters (which is a Unit Array initial value -None-)

I then proceeded to set up the following trigger:

- Set Monsters[1] = value
- Set Monsters[2] = value
- Set Monsters[3] = value

If i click on value it opens another window, I click on select unit but cant select my unit from the units list, it has to be in game for some weird reason. What have I don't wrong?

Thanks for any help,
IDISacredIDI

EDIT:
Need the map? you can get it here: http://www.wc3campaigns.com/forums/s...threadid=34718
10-30-2003, 09:26 PM#2
Vexorian
The array must be Unit Type
10-30-2003, 09:29 PM#3
IDISacredIDI
Thanks for the fast reply Ill try that Lord Vexorian.

IDISacredIDI
10-30-2003, 09:49 PM#4
IDISacredIDI
emote_confused Didnt seem to work. Im following a tutorial you see and its a little complicated for people new to WE (like me).

==============================================
Tutorial:
Ok. To begin with we need to create a variable to represent which map level the players are on. Name this variable Round, or Level, or something appropriate and set its initial value to 0. Now create the following 2 triggers (these are generalized) and a unit array variable called Monsters.
Event:
Map Initialization
Actions:
- Set Monsters[1] = A
- Set Monsters[2] = B
- Set Monsters[3] = C
- Etc.
(The Monsters array index represents what round the players are on. A, B, and C are whatever monsters you want to have spawn for those rounds. This assumes you are only doing 1 monster type per round. If you want to do more, simply create another unit array variable and call it Monsters2 or something and set it up just the same. In this way, you can have as many monster types per level as you want.)
Next trigger:
Event:
Player X's Food used becomes Equal to 0
Time – Elapsed game time is Y
Conditions:
- Lives Greater than 0
Actions:
- Set Round = (Round + 1)
- Leaderboard – Change the title of (last created leaderboard) to (Scoreboard – Round (String(Round)))
- Game – Display to (All players) the text (Round + ((String (Round)) + will begin shortly!))
- Wait Z seconds
- For each (Integer A) from 1 to M, do (Unit – create 1 Monsters[Round] for Player X at (Random point in J)
- For each (Integer A) from 1 to M, do (Unit – create 1 Monsters[Round] for Player X at (Random point in K)
- For each (Integer A) from 1 to M, do (Unit – create 1 Monsters[Round] for Player X at (Random point in L)
- Etc.
(Player X is the player which controls the monsters)
(Y is how many seconds you want at the beginning of the map before the first round of monsters advance. I recommend at least a full minute in order to give players time to become acquainted with the layout of the map and the different towers they can build.)
(Round is your variable representing what round of monsters the players are on.)
(Lives is your variable representing how many lives the players have left.)
(Z is how many seconds you want in between rounds of monsters. Here, I recommend at least 30 seconds.)
(M is a number indicating how many monsters of a specific type you want to have spawn at a particular spawn point at the beginning of a path.)
(J, K, and L represent the smaller spawn regions at the beginning of each monster path. You obviously only need to write this kind of line once for each path you have.)
==============================================

Now according to this I should have waves at the end but for some reason it will either let me pick the units but not the round array thingy, or the other way round.

Anyone know what im doing wrong?
IDISacredIDI
10-30-2003, 10:35 PM#5
IDISacredIDI
Is their no easy way to create a wave system?

IDIsacredIDI

(if i ever get this working i might write a tutorial to help others with similar problems)
10-31-2003, 12:17 AM#6
AllPainful
I made a wave system (works flawlessly thankfully) that works a little different then that Tutorial, but its the same idea.... I am with vex on this, the array must be a Unit-Type, and not a Unit array... Other than that there should be no problems with it...

What happens when you try to set the variable (be VERY specific, describe the windows that come up) and perhaps me or someone else could see what was wrong.



EDIT: I looked at your map, your "Unit-Type" variable isn't an array.... it needs to be...
10-31-2003, 02:02 AM#7
Klownkiller
You definatley need to set your variable "Monster_Type" To be a Unit_type array. Then it will allow you to select units from the unit palette screen. If this is not a Unit_type variable all it will allow you to select are units that you have placed on the map or unit variables that you have already assigned.

Not bad work on those triggers though. If you have TFT i could clean them up for you and reduce their size by abouit 75 % or so. I might even clean it up for you when I install ROC after a format if you'd like that.
10-31-2003, 08:44 AM#8
IDISacredIDI
Quote:
Originally posted by Klownkiller
You definatley need to set your variable "Monster_Type" To be a Unit_type array. Then it will allow you to select units from the unit palette screen. If this is not a Unit_type variable all it will allow you to select are units that you have placed on the map or unit variables that you have already assigned.

Not bad work on those triggers though. If you have TFT i could clean them up for you and reduce their size by abouit 75 % or so. I might even clean it up for you when I install ROC after a format if you'd like that.


Thanks that would be really helpfull :ggani:

Since ive just got up I might have a stabb at doing it again, was a bit tired last night.

IDIsacredIDI

EDIT: I only have RoC btw