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

Help with victory conditions

Status
Not open for further replies.
Level 10
Joined
May 31, 2007
Messages
645
Hello again every1!!!

I am making an arena map and i need help with the victory conditions!!! I want the game to end when one team has 500 kills!!! How can i do that? Is there a possibility to add a multiboard/leaderboard to show team kills and deaths as well as player kills/deaths!!! :eekani::eekani:

-And something a little off-topic considering the others: if I add creeps will it be stupid?:confused:
 
Level 19
Joined
Apr 25, 2006
Messages
1,309
holyrider is right you need integer variable. One integer for both teams.
Event:A unit is killed
Actions:
If killing unit is owned by team one
then set kills1 integer=kills1 integer + 1
else do nothing
If killing unit is owned by team two
then set kills2 integer=kills2 integer + 1
else do nothing
if kills1 integer is greater than 499
then victory for team1
defeat for team2
if kills2 integer is greater than 499
then victory for team2
defeat for team1
 
Status
Not open for further replies.
Top