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

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 45
Joined
Feb 27, 2007
Messages
5,578
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