• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Transport Unload from cargo trigger help (issue)

Status
Not open for further replies.
Level 8
Joined
Nov 22, 2004
Messages
192
I came up with a trigger. But it only works when the player actively uses the unload spell of the transport. When you press directly on the cargo hold to unload it doesn't respond and the boat doesn't mbecome neutral like intended. Here is a copy of the trigger.

Cross Back

Events
Unit - A unit Finishes casting an ability
Unit - Human Transport Ship (pass) 0214 <gen> Is issued an order with no target
Unit - Human Transport Ship (pass) 0214 <gen> Is issued an order targeting a point

Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Unload (Sea Transports)
(Ability being cast) Equal to Cargo Hold (Ship)
(Issued order) Equal to Unload All Instant
(Issued order) Equal to Unload All At
(Issued order) Equal to Unload
(Rect 429 <gen> contains Human Transport Ship (pass) 0214 <gen>) Equal to True

Actions
Wait 1.50 seconds
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) matching (((Matching unit) is Mechanical) Not equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is being transported) Equal to True
Then - Actions
Do nothing
Else - Actions
Unit - Change ownership of Human Transport Ship (pass) 0214 <gen> to Neutral Passive and Retain color
Trigger - Turn off Cross Back <gen>
 
Status
Not open for further replies.
Top