Arrow Charges question

ZypHeRx™

New Member
Reaction score
17
Excuse me .. i am a new and young mapper .. please bear with my noobness. =X .

I have 2 questions on arrow charges .. I understand that you can use LUMBER to determine the number of arrows u currently have .. But .. how do i make it such that i have a item called ARROWS with 50 charges , and each time my archer attacks , it reduces 1 arrow , and that each arrow does + 10 damage ??

Thanks in advance ~
 

Tom Jones

N/A
Reaction score
437
Wasn't that only one question?
Anyways go into object editors item module, and copy paste a item. Set it's charges to 50, call it Arrows, and add the ability called Item Damage Bonus (+10) to the item. Now go into the trigger editor, and do this:
Code:
Arrows
    Events
        Unit - A unit Is attacked
    Conditions
        ((Triggering unit) has an item of type *Arrows*) Equal to True
    Actions
        Item - Set charges remaining in (Item carried by (Triggering unit) of type *Arrows*) to ((Charges remaining in (Item carried by (Triggering unit) of type *Arrows*)) + 1)
This will work most efficient if the unit only has one item of the arrow item type.
 

ZypHeRx™

New Member
Reaction score
17
wow .. thats a very fast reply .. hmm .. yeah it was actually a question .. im sorry .. but about your trigger .. i couldnt enter a negative value .. and .. i would also want the + 10 damage thing to be removed once the charges reaches 0 .. and that if the archer does not have any arrows .. it would stop attacking .. how do i do that ??

Thanks for your reply ..
Thanks for helping me in advance ..
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
wow .. thats a very fast reply .. hmm .. yeah it was actually a question .. im sorry .. but about your trigger .. i couldnt enter a negative value .. and .. i would also want the + 10 damage thing to be removed once the charges reaches 0 .. and that if the archer does not have any arrows .. it would stop attacking .. how do i do that ??

Thanks for your reply ..
Thanks for helping me in advance ..

the negative value is juz beside the number like ...
+ value

u can use triger to check if the unit has arrow anot..if the unit has no arrow or arrow contains 0 in it...u can jus remove the item from tat unit's inventor...this will remove the +10dmg effect.This can be done with the stop atking triger...u juz add 1 action like

if - xx hero contains arrow = false
then -
if- xxhero atk a unit
then - force xx hero to stop
else-
else-
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top