• 🏆 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!

Kill Score Trigger

Status
Not open for further replies.
Level 3
Joined
Jan 19, 2019
Messages
29
Hey I currently have a map I've been working on for over a year. One of the running things in the game is a Kill counter telling you how many units/heroes you've killed total. I would like a victory condition based on Kill total, Is their a way to script this trigger? If so how? I have been playing around in triggers for awhile and cant quite figure out a direction to go with this and wasn't able to locate any guides so any help would be greatly appreciated.
 
Level 39
Joined
Feb 27, 2007
Messages
5,031
You can use the "value of integer variable" event to track when your kill counters get above a certain threshold, and then run a trigger that does victory from there. It might not work for array variables so if that's the case you can just check all player scores every X seconds and then decide on victory actions if any are above a certain amount.
 
Status
Not open for further replies.
Top