- Joined
- Mar 12, 2008
- Messages
- 437
I have an Inn unit, which units can enter, with abilities basically copied from the Goblin Zeppelin. I want to be able to fetch the units in the Inn, but I can't come up with a way that works.
"Pick every unit in playable map area matching Unit is being transported", and then matching Transporting unit to Inn doesn't work.
"Pick every unit owned by Player X matching Unit is being transported" actually works, until you try to match Transport unit.
So this is what actually works somewhat, so far:
I was also thinking of keeping track of them via a group, but I don't find any "Unit is unloaded" event.
"Pick every unit in playable map area matching Unit is being transported", and then matching Transporting unit to Inn doesn't work.
"Pick every unit owned by Player X matching Unit is being transported" actually works, until you try to match Transport unit.
So this is what actually works somewhat, so far:
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units owned by (Player((Integer A))) matching (((Matching unit) is being transported) Equal to True)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(No conditions yet)
-
-
Then - Actions
-
(Actions)
-
-
Else - Actions
-
-
-
-
-
I was also thinking of keeping track of them via a group, but I don't find any "Unit is unloaded" event.