• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Transport Unload from cargo trigger help (issue)

Status
Not open for further replies.
Level 7
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