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!
It's possible to be triggered. Perhaps something like this:
TrainingInit
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Owner of (Target unit of issued order)) Equal to (==) (Owner of (Triggering unit))
(Issued order) Equal to (==) (Order(order_string_of_your_training_ability))
Actions
Unit - Add Locust to (Triggering unit)
Unit Group - Add (Triggering unit) to TrainingGroup
Custom script: Set udg_TempHandle = GetTriggerUnit()
Hashtable - Save Handle Of(Position of (Target unit of issued order)) as (Key Trainer) of (Key TempHandle) in (Last created hashtable)
Custom script: Set udg_TempHandle = null
TrainingLoop
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in TrainingGroup and do (Actions)
Loop - Actions
Set TempLocA = (Position of (Picked unit))
Custom script: set udg_TempHandle = GetEnumUnit()
Set TempLocB = (TempLocA offset by 16.00 towards (Angle from TempLocA to (Load (Key Trainer) of (Key TempHandle) in (Last created hashtable))) degrees)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between TempLocA and TempLocB) Less than or equal to (<=) 16.00
Then - Actions
Unit - Replace (Picked unit) with a Footman using The old unit's relative life and mana
Else - Actions
Unit - Move (Picked unit) instantly to TempLocB
This is in no way a complete way of doing this. It's just to give an idea of how you could do it. If you are not able to, then you should ask someone to make it. It's a bit too much work for me to do.
That doesn't change much. Just switch the triggering unit and target unit of ability in the first trigger.
Those triggers are just for giving an idea though, they are not complete.
Yeah its just easy....create a custom ability...for the building and create a trigger...when the ability is casted on a unit use the Unit- Replace 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.