#Bow and Arrow system not working

1 messages · Page 1 of 1 (latest)

inland hare
#

I'm trying to make a bow and arrow system that grabs the attack damage of the bow and applies it to the arrow, but the damage doesn't apply to the arrow.

dind means if damage indicators are on or off and says how much hearts it does.

    attacker is player
    set {_at} to attacker's tool
    set {_dmg} to {_at}'s attack damage attribute
    if attacker's tool is bow:
        set damage to 1
        if damage cause is projectile:
            set damage to {_dmg}
    if {dind::%attacker's uuid%} is true:
        set {_damage} to damage*2
        send "&cDAMAGE&4: %{_damage}%" to attacker```
#

Skript plugins: SkBee, skRayFall, skript-gui*, FunkySk.

inland hare
#

a

grizzled hatch
#
  1. attacker is a player
  2. if type of attacker's tool is a bow
  3. Why are you setting the damage to 1, then immediately setting to {_dmg} after checking the projectile?
inland hare
inland hare
#

The arrow does 0 damage

#

I changed it to attacker's attack damage attribute and it started dealing 2 damage whenever the item's attribute is.