• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,010
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