So, I am trying to make a weapon reach script but I want to get the weapon they are holding to work with any weapon. but I need to find out the attack damage to deal to the opponent.
That is an attempt but makes an error.
This is the Reach code but that works fine.
This also works and is the code that sets the reach
Thankyou to whoever helps
Code:
on click:
set {damagee.%player%} to the attack damage of the player's tool
send "the weapon damage of the player's tool is %{damagee.%player%}%"
Code:
on left click:
if {reaches.%player%} is true:
if {reach.%player%} is greater than 3:
set {_loc} to location of target
set {_dis} to distance between player and {_loc}
if {_dis} <= {reach.%player%}:
make the player damage the target by 14
This is the Reach code but that works fine.
Code:
command /reach <integer> <player>:
trigger:
set {reach.%arg-2%} to arg-1
send "%arg-2% now has %arg-1% Reach"
Thankyou to whoever helps