Axe.killer
New Member
- Reaction score
- 24
I want it so that when a user has no bow, and no arrows, to stop the attack. The only thing is i want it for all my different bows. This is what i got so far, giving you examples of 2 different bows and arrows - if the unit dosent have this, he cant attack. Basically, if the user dosent have SOME TYPE OF BOW, and SOME TYPE OF ARROw, he cant attack. The code i have dosent work. You guys never fail me, and thanx in the past. Here it is.
Bow # 1
Bow # 2
Bow # 1
Code:
ErrorandStop
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Archer
((Attacking unit) has an item of type Wind Arrow(s)) Equal to False
((Attacking unit) has an item of type Beginner's Bow) Equal to False
Actions
Unit - Add No more ammo or no weapon wielded dummy to (Attacking unit)
Unit - Order (Attacking unit) to Stop
Bow # 2
Code:
ErrorandStop Copy
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
((Attacking unit) has an item of type Wind Arrow(s)) Equal to False
(Unit-type of (Attacking unit)) Equal to Archer
((Attacking unit) has an item of type Huhuran's Stinger) Equal to False
Actions
Unit - Add No more ammo or no weapon wielded dummy to (Attacking unit)
Unit - Order (Attacking unit) to Stop