I made SCVs that morph in to a MULE instead of a calldown and when the morph happens the MULE stops and has to be re-ordered to gather. Happens vice versa when the morph wears off as well. I'd like for it to continue doing whatever it was doing (gathering, returning cargo, repairing, move command, returning to gather).
Also, if it has minerals when the morph occurs or when the morph ends it won't return them. They're held in the hand of the morphed unit and the return cargo button is no longer present unless they go gather again. If the morph ends or reapplied they will return the minerals. So it seems the minerals are owned by the unit state that gathered them and the other side of the morph can't return them.
Suggestions?
The ability is as the calldown MULE but the effect is Issue Order to the morph ability on the unit itself. On the MULE a behavior is on the unit so that after 90 seconds it just Issues another order to morph to SCV.
i had a similiar problem but came to no data only conclusion. you have to track the current order somehow. you could use an delay (persistant) infront of your issue order effect and use this effect as trigger event to store the current order of the unit in a variable. then after morph you can reorder the variable to the unit.
Look how my harvest simulation demo map keeps track of orders. Make a dummy ability (Specialize type recommended) that uses a search to apply a set effect to the target of the current harvest ability that applies a buff back to the caster. The buff is disabled until the unit is the correct unit type (morph finished). The buff then activates and uses a periodic effect to remove itself and Issue Order the unit to continue. The issue order then uses the set effect to identify the target.
I made SCVs that morph in to a MULE instead of a calldown and when the morph happens the MULE stops and has to be re-ordered to gather. Happens vice versa when the morph wears off as well. I'd like for it to continue doing whatever it was doing (gathering, returning cargo, repairing, move command, returning to gather).
Also, if it has minerals when the morph occurs or when the morph ends it won't return them. They're held in the hand of the morphed unit and the return cargo button is no longer present unless they go gather again. If the morph ends or reapplied they will return the minerals. So it seems the minerals are owned by the unit state that gathered them and the other side of the morph can't return them.
Suggestions?
The ability is as the calldown MULE but the effect is Issue Order to the morph ability on the unit itself. On the MULE a behavior is on the unit so that after 90 seconds it just Issues another order to morph to SCV.
@RuneKatashima: Go
i had a similiar problem but came to no data only conclusion. you have to track the current order somehow. you could use an delay (persistant) infront of your issue order effect and use this effect as trigger event to store the current order of the unit in a variable. then after morph you can reorder the variable to the unit.
Can't use triggers, it's a mod.
Mods can use triggers. Make a library, and put all your triggers into the library.
Also make sure to flag all relevent "ignore x" flags on the morph ability. Ignore facing etc.
Look how my harvest simulation demo map keeps track of orders. Make a dummy ability (Specialize type recommended) that uses a search to apply a set effect to the target of the current harvest ability that applies a buff back to the caster. The buff is disabled until the unit is the correct unit type (morph finished). The buff then activates and uses a periodic effect to remove itself and Issue Order the unit to continue. The issue order then uses the set effect to identify the target.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Just to be clear; it was my understanding that if you want your mod to be able to be played on any map you couldn't use triggers?
Thanks DrSuperEvil, I'll see if I can find your demo and take a look. I'll report back here success or not.
This is not the case. You can use whatever triggers you please.