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,
I would like to ask how can you add certain abilities to units of type, that means even those that aren't on the map (like units that are trained afterwards)
That seems like a good start, but if those units can also be created with triggers/trained from a barracks-type structure then they won't receive the ability.
So I would also set a Variable that tracks the difficulty:
Set Variable Difficulty = "Easy"
Set Variable Difficulty = "Medium"
Set Variable Difficulty = "Hard"
You can use a String variable or an Integer variable.
Set Variable Difficulty = 1
Set Variable Difficulty = 2
Set Variable Difficulty = 3
I prefer Integer because that allows the use of Arrays which would use your game difficulty as their [Index]. This can help keep things organized and manageable.
Now whenever a Mur'gul Reaver enters the map you can use an If Then Else statement to check the state of this difficulty variable:
If Difficulty Equal to "Easy" then Unit - Add Ability to (Triggering unit)
An easier way to do this is to give the units all abilities in the OE, but make the high difficulty abilities have a techtree requirement. When that difficultly is activated, simply research the tech for the owner of those units via triggers or create 1 of the appropriate unit hidden somewhere on the map to satisfy the techtree requirement.
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.