- Joined
- Aug 16, 2007
- Messages
- 847
This might take a little while. What I want is that when this ability "Board Ship" is cast I want units to be created at a certain point, and I want those units to correspond with items in their inventory
-
Boarding
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Board Ship
-
Actions
- Unit - Make (Triggering unit) Invulnerable
- Unit - Pause (Triggering unit)
- Unit - Make (Target unit of ability being cast) Invulnerable
- Unit - Pause (Target unit of ability being cast)
- If ((Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Warriors) then do (If ((Owner of Barrel 0066 <gen>) Equal to (Triggering player)) then do (Unit - Create 5 Militia for (Triggering player) at (Random point in Attacker Start 06 <gen>) facing (Random point in Defender 6 Rear Start <gen>)) else do (Do nothing)) else do (Do nothing)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item carried by (Target unit of ability being cast) in slot 1)) Equal to Basic Crew
-
Then - Actions
-
Player Group - Pick every player in (All players matching ((Owner of (Target unit of ability being cast)) Equal to (Owner of (Target unit of ability being cast)))) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 1 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 2 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 3 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 4 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 5 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 6 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 1 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start 7 <gen>) facing (Random point in Attacker Start 06 <gen>)
- Unit - Create 3 Peasant for (Owner of (Target unit of ability being cast)) at (Random point in Defender 6 Crew Start Main <gen>) facing (Random point in Attacker Start 06 <gen>)
-
Loop - Actions
-
Player Group - Pick every player in (All players matching ((Owner of (Target unit of ability being cast)) Equal to (Owner of (Target unit of ability being cast)))) and do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events