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

Boss round in my td buggy

Status
Not open for further replies.
Level 7
Joined
Dec 17, 2005
Messages
337
K as my td is pretty much completely variables, i cant make a single spawn in my td; only multiples of 15. So i decided to add a sortof 'limit' on the spawns for that round only. Her is my trigger. (By the way, the 'single' spawn is a Forgotten One, whom has a 1 food cost. Player 1 red and 2 blue are the spawn teams.

Event: Every 45 seconds.
COndition: None (So far)
Actions: Wait 15 seconds.(This is so that the first spawns is at 60 seconds and all future spawns are 45 seconds later. ex: 60secs, 105secs, 150secs, etc...)
If/then/else(Multiples):If food of player (1) red = to or less than 4, create 'monster ammount' 'monster type' at region 'w/e'for player 1 red(Or player 2 blue)(Also, this creates 9 other spawns in 9 other regions(all in different areas.)and also, alongside the player 1 red food use condition, theres a player 2 blue condition thats exactly the same.

Ill just use for example nobody leaves or loses and its a full house game. it should make all the 10 forgotten ones and then not create any other ones AFter these. (Or until they die(which they wont(Not for a while))) Problem is, however. That my wave 1 doesnt even work anymore. It makes no spawns whatsoever. I showed this to my cousin and he said it should be working fine. I made a trigger for anybody that loses, leaves, and unused spots so that it gives 1+food used to the player who would spawn in his area. This trigger seems to work fine....i think. Pls help thiis. :?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Your post is to confusing and vitualy no one can understand it. . .

I reccomend you redo your spawn system into a engine that requires veriables.

For spawning you need 3 veriable arrays
: Unit to spawn
: Number to spawn
: Spawn interval

set each array to what you want spawned for each round (round one would be veriable index 0, 2 index 1, 3 index 2, ect)

It would work by using a never ending loop only ending once all rounds are over.

It loops betwene 0 and (number of rounds - 1)
Each then loops between 1 and number of spawn in wave (previous loop)
Then in that loop using if then actions make it check if the players are there to spawn spawns for
If the player is there then spawns X unit at player reigon.
Finaly wait X seconds

That is a basic guid line of how it could operate and work even for boss waves.

Note -:- Use jass or there will be so many group and location leaks your map might be unplayable in latter rounds.
 
Level 7
Joined
Dec 17, 2005
Messages
337
I will repost the trigger (But clearer)

Event: Every 45 seconds of game time
Condition: Player 1 red's food is less than or = to 4
Player 2 blue's food is less than or = to 4

Actions: Wait 15 seconds
Create (Variable Number ex:1) (Variable Monster ex:Skeleton) for player 1 red at region 01
Wait (Variable Seconds)
Create (Variable Number) (Variable Monster) for player 2 blue at region 02


And this basically repeats for a total of 15 spawns
All my spawns cost 0 food except for the 'Forgotten One'. A trigger is made to add food to the spawner (ex: red) whenever a player either: Leaves, Is unused, or is defeated. ANother trigger has also been made so that this effect is only once. (Ex: a player loses THEN leaves occurs in only one food cost increase.)

Since player 1 red spawns for players: 3,5,7,9,11
And blue spawns for: 4,6,8,10,12
The spawner ONLY receives food from his people he spawns for.
(If player 3 leaves only red gets +1 food used.)
This is also a solo td so every person has his own lane.

Hope this helps more
 
Status
Not open for further replies.
Top