Thrust(mob/M as mob in oview(5))
set category="Hakuda"
if(ismob(M) in get_dir(src,src.dir))
if(get_dist(src,M)>3)
if(src.bowequipped==1||src.wearingclothes["zanpakutou"]==1)
usr<<"Please unequip your weapon first."
return
flick("punch",usr)
var/damage=M.Hit(usr,round((usr.CStr-M.CEnd/0.75),1))
range()<<"[usr.Name] punched [M] for [damage]!"
usr.DeathCheck(M)
else return
else return
Problem description: I'm trying to set up a technique to be used at the end of a dash that unleashes pent-up momentum to extend the range of the attack by several tiles based on the rank of the ability.
To simplify, I want to be able to hit a mob multiple tiles away in a single direction, as well as hitting any other mobs that also happen to be in those 2-4 tiles in front of the user. What happens in the code above is... Well, nothing. It's purely my attempt to get things to work, and I've hit a roadblock.
This way may not necessarily be the best way, but it should get your head thinking on how one might accomplish it.