• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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