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!
Event: Unit gets attacked
Conditions: Unit type equal to YourUnit
Actions:
--> Transform like its shown in the link above
--> Order (attacking unit) to attack (triggering unit) <--- I dont think this line is even necessary
i already have a trigger that transforms it when it is attacked. i need a trigger that transforms it when it is given an attack order or just an order targetting a unit.
Unit is issued an order targeting an object
Order == attack or order == smart // or some other conditions you need
Order unit to transform
Order unit to attack target
You might need to use a 0.00 second timer before ordering the transform/attack. Or a longer delay depending on the transformation. You could try catching the end of the transformation with an event.
i already figured out the event. it also needs to apply to a specific unit type. there isnt any transform orders on the list of orders and i dont want a visible transformation ability for that either.
Unit - Replace (Triggering unit) with a Footman using The old unit's relative life and mana
Is that what you want ?? No transformation ability is needed.
Side effect, Correct me if whrong: The replacing unit will not take over the orders of the replaced unit and will just stop. So you'll have to, if you want them to be continued, store them somehow and order the replacing unit to do them in the trigger after the replacement.
Save the order has a string then use Ifs to order the replaced unit.
set tempstring = current order of unit to be replaced
if tempstring = attack
set tempunit = target unit of the issued order
replace unit
Order replaced unit to attack tempunit
Something along these lines I think...
Although Passive Unit Transformation would save the orders I believe so...might be worth looking into (the link GIMLI said)
the unit i need to transform, then attack have an attack command but no attack value.(in the game i am trying to port.) i need it to be able to transform and then attack and need help. please help me out.
Check if your unit gets an order to a point. (order == attack/smart .. or what ever you want)
Set TempPoint = Point of issued order --> transform ur unit --> order new unit to attack /move to TempPoint --> remove leak
If this doesnt help you, please re-phrase your question.
that worked but i almost overloaded my mind in the process. i had to do some changed to fit with what i wanted though. if there is any leaks, you need to tell me how to seal them.
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.