Rinpun
Ex TH Member
- Reaction score
- 104
Alright, I'm sorry to keep bothering you guys with this, but once I solve these problems, perhaps I will be more of a helper and less of a newb 
With this boarding code, Master Chief only converts a vehicle once, and then he can't "board" a warthog or something. Now obviously, it's due to the condition. However, when I kill the boarded unit (converted vehicle), it doesn't seem to count it as I can't use board on the warthog. I suppose it's the condition playing in, but how can I fix this?
Board the Vehicle
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Board Vehicle
(Number of units in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is Mechanical) Equal to True))) Equal to 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Hostile and Change color
Game - Display to (All players) the text: Attempting to Unloa...
Unit - Order (Target unit of ability being cast) to Unload All At (Position of (Casting unit))
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Chang...
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Load ...
Unit - Order (Target unit of ability being cast) to Load (Casting unit)
Else - Actions
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Chang...
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Load ...
Unit - Order (Target unit of ability being cast) to Load (Casting unit)
Last of all, in Ryoko's debug lines, the order is "board" when the vehicle loads the unit manually and when the unit loads himself into the vehicle, it's load, board, load, or something like that. Any idea why?
And below this "board", which is below "load", there is a "force board". What does this do?
With this boarding code, Master Chief only converts a vehicle once, and then he can't "board" a warthog or something. Now obviously, it's due to the condition. However, when I kill the boarded unit (converted vehicle), it doesn't seem to count it as I can't use board on the warthog. I suppose it's the condition playing in, but how can I fix this?
Board the Vehicle
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Board Vehicle
(Number of units in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is Mechanical) Equal to True))) Equal to 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Hostile and Change color
Game - Display to (All players) the text: Attempting to Unloa...
Unit - Order (Target unit of ability being cast) to Unload All At (Position of (Casting unit))
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Chang...
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Load ...
Unit - Order (Target unit of ability being cast) to Load (Casting unit)
Else - Actions
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Chang...
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Wait 1.00 game-time seconds
Game - Display to (All players) the text: Attempting to Load ...
Unit - Order (Target unit of ability being cast) to Load (Casting unit)
Last of all, in Ryoko's debug lines, the order is "board" when the vehicle loads the unit manually and when the unit loads himself into the vehicle, it's load, board, load, or something like that. Any idea why?
And below this "board", which is below "load", there is a "force board". What does this do?


