here is what i have, to change ownership of the buildings in my provinces, when a player gets the province capitol down to 250 HP:
events.
- unit - capitol [((location of Athens capitol building))] is attacked.
conditions.
actions.
- general - if then else.
- if.
- - ((triggering unit) life (current)) <= 250.
- then.
- - unit group : pick each unit in (Any units in regionATHENS owned by player Any Player matching Required:Structure, with at most Any Amount) and do (Actions).
- - - actions.
- - - - Unit - Change ownership of (Picked unit) to player (Owner of (Attacking Unit)) and Change Color.
- - unit group : pick each unit in (Any units in regionATHENS owned by player (Owner of (Attacking unit)) matching. Excluded: Structure, with at most Any Amount) and do (Actions).
- - - actions.
- - - - Unit - Order (Picked unit) to (***) (Replace Existing Orders).
my question is about the *** part... how do i select all of the units firing on the capitol, and simply order them to stop firing once the capitol (and other buildings) change color?
here is what i have, to change ownership of the buildings in my provinces, when a player gets the province capitol down to 250 HP:
events.
- unit - capitol [((location of Athens capitol building))] is attacked.
conditions.
actions.
- general - if then else.
- if.
- - ((triggering unit) life (current)) <= 250.
- then.
- - unit group : pick each unit in (Any units in regionATHENS owned by player Any Player matching Required:Structure, with at most Any Amount) and do (Actions).
- - - actions.
- - - - Unit - Change ownership of (Picked unit) to player (Owner of (Attacking Unit)) and Change Color.
- - unit group : pick each unit in (Any units in regionATHENS owned by player (Owner of (Attacking unit)) matching. Excluded: Structure, with at most Any Amount) and do (Actions).
- - - actions.
- - - - Unit - Order (Picked unit) to (***) (Replace Existing Orders).
my question is about the *** part... how do i select all of the units firing on the capitol, and simply order them to stop firing once the capitol (and other buildings) change color?
Order them to stop O.o
Also make sure every building changes to an owner that has neutral or better alliance with the owner of the attacking units.
@BasharTeg: Go
this is what i don't know how to do :/
maybe it's just the editor being so different
here is what i can find for the *
((Picked Unit) Order at Index (0)
but that doesn't make sense? is it in Unit? Order? i'm lost
You're looking for Issue Order to Unit or Issue Order to Unit Group. It's an action.
Make the capital invulnerable for a split second.