- Joined
- Jul 18, 2010
- Messages
- 332
Hi, I couldn't find any event for unloading a unit from transport event, just the loading to transport event. I made a trigger for it but I haven't tested it yet.
I want the most efficient solution for this so I'm posting it here. I also want the unit inside the transport to die when the transport die. That's what the transportno variable is for.
I want the most efficient solution for this so I'm posting it here. I also want the unit inside the transport to die when the transport die. That's what the transportno variable is for.
-
heliglyphs exit
-
Events
- Player - Player 1 (Red) Selects a unit
- Player - Player 2 (Blue) Selects a unit
- Player - Player 3 (Teal) Selects a unit
- Player - Player 4 (Purple) Selects a unit
- Player - Player 5 (Yellow) Selects a unit
- Player - Player 6 (Orange) Selects a unit
- Unit - A unit Starts the effect of an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Triggering unit) Equal to transport[(Player number of (Owner of (Triggering unit)))]
- (transport[(Player number of (Owner of (Triggering unit)))] is loaded into transporter[(Player number of (Owner of (Triggering unit)))]) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Unload (Air Transports)
- (transport[(Player number of (Owner of (Triggering unit)))] is loaded into transporter[(Player number of (Owner of (Triggering unit)))]) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Unit - Set life of transport[(Player number of (Owner of (Triggering unit)))] to (Percentage life of transporter[(Player number of (Owner of (Triggering unit)))])%
- Wait 0.03 seconds
- Set transportno[(Player number of (Owner of (Triggering unit)))] = 0
-
Events