Never tried it myself so start with the Effect: Unit - Value field since that is the unit you are ordering to use the effect. The Target: Target - Value field is where the unit is ordered to use the ability at (a Create Persistent/Search Area effect that uses a Set effect further up the effect tree might be useful here).
The outer reference also targets the container unit a unit is in.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
On the plus side I learned what Ability Command 2 is.
It is Target POINT. I think it is used for moving transports so you can designate an unload point, then have the units unload as soon as the transport is within range of that point, rather than having to wait till the unit is in range and manually telling them to unload.
Try debugging with triggers. You can create an order listening trigger which prints out who was issued an order, what ability order was issued, the target type of the order, the target of the order (appropriate for type) and the internal order index that was issued.
Getting how to unload a specific unit would then be as easy as loading some units in a transport and manually unloading a single unit from it. The order you need to use would then be printed out and you can adapt your effect tree appropriately.
I already have a trigger that listens for Ordered Unit, Ability Command index, Order Target Unit, Order Target Unit Type, Ability Target Unit, and Ability Other Unit, but Im not sue what you mean by "ability order".
When I click the cargo slot to unload, the trigger returns the Ordered Unit(Transport), and the Ability Command Index(3), but nothing else.
I even tried adding a button to the command card, that linked to the 3rd Index of the Transport ability directly. But clicking that does nothing but make the button flash.
Is the transport issuing a cargo (or whatever type it is, I forget off the top of my head) ability order 3 towards the transported unit when unloading a specific unit?
Im trying to issue a Unit Specific Unload command to a transport.
Ive read here that, for triggers at least, I would need to first set a TargetPassenger before actually issuing the order.
Im not entirely sure how that relates to the Issue Oder Effect, but Ive tried using an Iterate Transport Effect to get the Target Unit.
I was able to get the Unit and successfully tested this by using a Create Persistent (2 second delay) > Kill Effect.
(Unit enters, 2 seconds pass, unit dies)
But when I try to replace the Kill Effect with the Issue Order Effect, nothing happens. Not even an Alert.
(Ive tried both index 2 and 3 to no avail)
Any thought on how I can get the Issue Order Effect to unload the Target Unit?
You setting it to target the Target Outer? You using the right ability command index?
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
Setting which to Target Outer?
Issue Order Effect? or the Iterate Transport Effect?
If Issue Order, which Field? There are two Unit Fields that can be set to Target Outer.
If you mean to get the Transport with Target Outer, doesn't Caster do that?
Or do you mean to get the Passenger with Target Outer?
The issue order effect.
Never tried it myself so start with the Effect: Unit - Value field since that is the unit you are ordering to use the effect. The Target: Target - Value field is where the unit is ordered to use the ability at (a Create Persistent/Search Area effect that uses a Set effect further up the effect tree might be useful here).
The outer reference also targets the container unit a unit is in.
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
Using Target Outer didn't work. I also tried Caster Outer, and in both Unit fields.
I got sick of blundering around with blind testing and set up a debug trigger.
I can now identify the Impact Unit, Launch Unit, Caster Unit, Origin Unit, Outer Unit, Source Unit, and Target Unit of ANY Effect I wish.
I Tested this with the Search Area Effect that calls the Issue Order Effect.
Result:
Impact - Cargo Unit
Launch - Cargo Unit
Caster - Cargo Unit
Origin - None
Outer - Cargo Unit
Source - Cargo Unit
Target - Cargo Unit
I then did a baseline test with the Issue Order Effect directly:
Ability Command - 1
Unit - Target
The result was:
Impact - None
Launch - None
Caster - Cargo Unit
Origin - None
Outer - Cargo Unit
Source - Cargo Unit
Target - Transport Unit
I then changed the Issue Order Effect to:
Ability Command - 3
Unit - Target
Target - Caster Unit
Target = the Transport Unit in the previous test, so should be the Unit receiving the order
Caster = the Cargo Unit in both previous tests so should be the Target of the order
The result?
Nothing. Nadda. No Alert, No nothin'...
I think I need to get it to set OrderSetTargetPassenger() somehow, like the other forum's post I linked to mentioned.
But I don't want to use triggers to do this...
Tried with ability command 4?
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
4 is Load all.
But I tried anyway:
Result: Nothing. No Alert. No actions.
EDIT:
On the plus side I learned what Ability Command 2 is.
It is Target POINT. I think it is used for moving transports so you can designate an unload point, then have the units unload as soon as the transport is within range of that point, rather than having to wait till the unit is in range and manually telling them to unload.
Unfortunately it is an Unload ALL command. :(
Try debugging with triggers. You can create an order listening trigger which prints out who was issued an order, what ability order was issued, the target type of the order, the target of the order (appropriate for type) and the internal order index that was issued.
Getting how to unload a specific unit would then be as easy as loading some units in a transport and manually unloading a single unit from it. The order you need to use would then be printed out and you can adapt your effect tree appropriately.
I already have a trigger that listens for Ordered Unit, Ability Command index, Order Target Unit, Order Target Unit Type, Ability Target Unit, and Ability Other Unit, but Im not sue what you mean by "ability order".
When I click the cargo slot to unload, the trigger returns the Ordered Unit(Transport), and the Ability Command Index(3), but nothing else.
I even tried adding a button to the command card, that linked to the 3rd Index of the Transport ability directly. But clicking that does nothing but make the button flash.
Is the transport issuing a cargo (or whatever type it is, I forget off the top of my head) ability order 3 towards the transported unit when unloading a specific unit?
As I posted above, the Transport is issued the following Order via Effect:
Issue Order Effect:
Ability Command - 3
Unit - Target
Target - Caster Unit
In this chain, Target = the Transport Unit and Caster Unit = the Cargo Unit.
This is what I tested with the debug trigger, which returned the Ordered Unit(Transport), and the Ability Command Index(3), and everything else None.
YEEES!
I have achieved the functionality I was looking for!
Note, I did NOT get the Ability Command Index 3 to work.
I just cheated:
Transport (Ability)=>
BuffA (Buff Behavior)=>
EffectA (Create Persistent)=>
EffectB (Set)=>
EffectC (Apply Behavior)=>
EffectD (Issue Order)=>
ValidatorA (Compare Behavior Count)=>
Technically, Im using Unload All, but just filtering which units get to unload via the Unload Validator.
Its a dirty dirty work around, and I hate that I had to use it. But it works, and does so without triggers so... YAY!
Glad you found a solution.
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