How would a Hero use ammo?

Status
Not open for further replies.
Level 3
Joined
Apr 1, 2007
Messages
35
In my RPG, I need to make my Hunter use ammo for his shots. So far, I only have a basic gun made. So, how would I make the gun use ammo? Would it take triggers, JASS, nothing? A little help would be appreciated.
 
Well, Super

Events
A Unit attacks
Conditions
Unit Type of Attacking Unit == Hunter
Actions
if (Arrows == 0)
Order Attacking Unit to stop
endif
if (Arrows > 0)
Remove 1 arrow
endif
if (Arrows == 0)
Create some dummy unit
Order some dummy unit to cast Drunken Haze (AOE 0) on Attacking Unit, that does nothing except block Ranged attacks.
Add Expiration Timer to that dummy
endif

-----

Events
Unit Acquires an Item
Conditions
Unit has buff (No Arrows!)
Item being Manipulated == Arrows
Actions
Remove (No Arrows!) from triggering unit
 
Status
Not open for further replies.
Back
Top