Hey all,
I'm trying to create an ability that toggles between a unit being able to attack Wards or not.
I've based the ability off of "Defend", and am calling it based on the order ID.
The two very short triggers:
I think this is what I'm looking for but I'm not entirely sure what ua1g's Value field refers to (???). I'm assuming Index refers to the Attack (Type 1 or 2).
Could anyone explain what the value actually refers to, and if my triggers can work in this way? Or suggest an alternate approach? I also tried adding a modified Orb of Fire attack ability with units allowed being Ward; it added/removed the ability just fine, but the attacks themselves just didn't work.
Thanks
I'm trying to create an ability that toggles between a unit being able to attack Wards or not.
I've based the ability off of "Defend", and am calling it based on the order ID.
The two very short triggers:
-
ToggleWardAttackOn
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
- (Issued order) Equal to (Order(defend))
-
Actions
- Game - Display to (All players) the text: toggle on
- Unit - Set Unit: (Ordered unit)'s Weapon Integer Field: Attack Targets Allowed ('ua1g')at Index: 1 to Value: ???
-
Events
-
ToggleWardAttackOff
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
- (Issued order) Equal to (Order(undefend))
-
Actions
- Game - Display to (All players) the text: toggle off
- Unit - Set Unit: (Ordered unit)'s Weapon Integer Field: Attack Targets Allowed ('ua1g')at Index: 1 to Value: ???
-
Events
I think this is what I'm looking for but I'm not entirely sure what ua1g's Value field refers to (???). I'm assuming Index refers to the Attack (Type 1 or 2).
Could anyone explain what the value actually refers to, and if my triggers can work in this way? Or suggest an alternate approach? I also tried adding a modified Orb of Fire attack ability with units allowed being Ward; it added/removed the ability just fine, but the attacks themselves just didn't work.
Thanks