PDA

View Full Version : RE:spawn units


seVeranc
06-28-2004, 12:07 PM
I am making a hero map and I don`t know how to make hostile units respawn..
how can I make hostile units respawn after bind killed by a hero.. and the hero must grant xp for every kill..
HELP!! plz:)

peace_machine
06-29-2004, 12:10 AM
Try something like this:

Conditions:
-Hostile units command atmost # Unit that died
-Hero kill score is atleast (score of unit)

Actions:
-Modify score for current player subtract # (score of unit) kills
-Modify score for current player add # custom*
-Create 1 hostile unit at location for player ?
-Preserve trigger

Or...

Conditions:
-Hostiles have sufferd atleast 1 deaths of unit
-Hero kill score is atleast (score of unit)

Actions:
-Modify score for current player subtract # (score of unit) kills
-Modify score for current player add # custom*
-Modify death count for hostiles subtract # of unit
-Create 1 hostile unit at location for player ?
-Preserve trigger

*Where custom is the exp gained.

Hope that helps and welcome to WB!

Sikawtic
06-29-2004, 10:20 AM
The kills thing is something i struggled with yesterday :( but i have tried a couple and this seems to work best... i just used the scores for each unit to determine the points gained, u can find this document at the editors reference thread.
Condition:
player1 kill score is at least 25
Action:
player1 add 2(other #) minerals
subtract 25 kill score
preserve trigger
comment: ???

this seemed to work for me...
4 the spawn i did this...
condition:
if player8(enemy) controlled at most 0 xunit at locationy
Action:
then create 8 marines at locationy
preserve trigger
comment: ???

peace_machine
06-29-2004, 11:35 PM
Condition:
player1 kill score is at least 25
Action:
player1 add 2(other #) minerals
subtract 25 kill score
preserve trigger
comment: ???
And if player 1 kills an Ultra? Wouldn't you want to give more minerals for higher units instead of a flat $2/25pts?