WastedSavior
A day without sunshine is like, well, night.
- Reaction score
- 217
Okay i have a buildable unit with inventory, The archer, but i dont want the archer to be able to attack without "arrows"
and i want it so that every time the archer attacks it loses an arrow.. so i figured id get the "arrows" first then worry about the attacking..
this is what i have..
naturally i needa ask whats wrong with this trigger XD
and i want it so that every time the archer attacks it loses an arrow.. so i figured id get the "arrows" first then worry about the attacking..
this is what i have..
naturally i needa ask whats wrong with this trigger XD
Code:
Archer
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Archer
Actions
Item - Set charges remaining in (Item carried by (Triggering unit) of type Arrows +10) to ((Charges remaining in (Item carried by (Triggering unit) in slot 1)) - 1)