HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

yet another question

10-26-2002, 08:48 PM#1
SkylineGT[FB]
u think i asked enough questions, but u thought wrong! my question is how do i make a unit that kills 10 people turns to a differnt unit?
10-26-2002, 09:18 PM#2
Guest
You need to hold the kills in a variable.
Create an integer variable called UnitKills and its initial value to zero, now for the two triggers you need:

Raise Kill Trigger:

Event: A unit owned by "enemy player" dies
Condition: Killing unit is owned by "your player" = to true
Action: Set variable UnitKills to (pick arithmetic) UnitsKills+1

So that says if your enemy dies, and you killed it, then raise UnitKills to whatever value it is plus one.

Replace Unit Trigger:

Event: Periodic Event: Every 2 seconds
Condition: Value of UnitsKills is equal than or greater to 10
Action: Turn off this trigger and replace "you unit" with a "different unit"
10-26-2002, 09:34 PM#3
ph33rb0
It would make more sense to just have an If/Then/Else in the same kill trigger after the initial actions and if kills are lower than 10 skip remaining actions else do nothing.
10-26-2002, 10:01 PM#4
SkylineGT[FB]
Thanks. here take a 20$
10-26-2002, 10:03 PM#5
SkylineGT[FB]
do they do the same thing?