wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 03-16-2008, 11:52 AM   #1
z3ryu
User
 
z3ryu's Avatar
 
Join Date: Apr 2007
Posts: 31

z3ryu has little to show at this moment (0)

Default Hero Defense - Best wa to do it?

Hey all!
I just started mapping again and want to try something easy, like a hero defense.
Now i wonder whats the best way to check if all spawned units are dead and the next wave is supposed to spawn. I know there are multiple ways but i wanna know which is the easiest and best one to do it ^^
__________________

z3ryu is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-16-2008, 11:56 AM   #2
RolePlaynGamer
User
 
RolePlaynGamer's Avatar
 
Join Date: Feb 2008
Posts: 199

Submissions (1)

RolePlaynGamer is on a distinguished road (20)

Send a message via MSN to RolePlaynGamer
Default

Use an integer variable with the value of the creeps, and then when a unit die, set the integer to -1. Then use an if/then/else statement to do your actions if the integer is under a desired value.
__________________
Give +rep to people that helps you!
Curent project: Everwood ORPG
Team:
Yohobofire: Terraining
RolePlaynGamer: Scripting, modeling
Darkenneko_003: Texturing
RolePlaynGamer is offline   Reply With Quote
Old 03-16-2008, 11:58 AM   #3
z3ryu
User
 
z3ryu's Avatar
 
Join Date: Apr 2007
Posts: 31

z3ryu has little to show at this moment (0)

Default

Okay guessed so ^^
Thanks for the fast answer,+rep
__________________

z3ryu is offline   Reply With Quote
Old 03-16-2008, 11:59 AM   #4
RolePlaynGamer
User
 
RolePlaynGamer's Avatar
 
Join Date: Feb 2008
Posts: 199

Submissions (1)

RolePlaynGamer is on a distinguished road (20)

Send a message via MSN to RolePlaynGamer
Default

Thanks =) Just pm me if you want a code or something.
__________________
Give +rep to people that helps you!
Curent project: Everwood ORPG
Team:
Yohobofire: Terraining
RolePlaynGamer: Scripting, modeling
Darkenneko_003: Texturing
RolePlaynGamer is offline   Reply With Quote
Old 03-16-2008, 02:48 PM   #5
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Using food is easier. Have each unit use 1 food, then when the food used of the player that controls the spawns is 0, start a new wave.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 03-16-2008, 03:29 PM   #6
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

I agree, food is a cleaner and easier solution. I also find it funner if units spawn on a set timer rather than when the previous wave dies, it makes things more intense because there's a sense of immediacy and urgency added to the mix. I've always felt Hero D's should have those aspects to them.
__________________
Rising_Dusk is offline   Reply With Quote
Old 03-16-2008, 03:44 PM   #7
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

One thing I always thought might be interesting to do is have each type of unit maybe cost a differing amount of food depending on how "tough" it is to kill. So in a wave maybe you have 5 monsters that use 5 food each with 10 other monsters that use 2 food each.

Then say the trigger activates when food <= 5. So then you've got options as to which units to kill to complete the wave.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 05:45 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services