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!
hello, trying to add a trigger that detects a players total research/upgrade count in order to restrict the use of endgame units until the player reaches a total of 25 researches, any assistance is much appreciated.
This should work. The first trigger increments an int variable TotalResearches by 1 each time a player researches. The array number corresponds to the player number so that each player gets its own counter.
The second trigger checks to see if the TotalResearches for that player is less than 25 when a unit begins training another unit. If it is, it cancels the trained unit. If you are using sell instead of train you would need to modify it to 'sells a unit'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.