var/atom/trg
var/atom/trg2
var/atom/trg3
var/atom/side1
var/atom/side2
var/path
client/Click(trg)
if(usr.SenbonZakuraBankai == 1)
usr.flash = 0
var/spcost = round(1000/(1+(usr.shmas)))
if(usr.sp > spcost)
usr.sp -= spcost
var/atom/trg2 = locate(trg)
var/obj/trg3= locate(trg.loc)
path = get_dir(usr,trg)
if(path == SOUTH)
trg2.x -= 1
trg3.x += 1
s_missile(/obj/SZ,usr,trg,1,0)
s_missile(/obj/SZ,side1,trg2,1,0)
s_missile(/obj/SZ,side2,trg3,1,0)
if(usr.sp < 1)
usr.sp = 0
else
usr << "You don't have enough Spiritual power to continue!"
Problem description:
im having trouble with the location modification more to the point. assigning seems to work with the locate () proc. but i need to modify for it to hit its destination (i havent defined the side vars yet since i had trouble with this and want to get that down since it all runs on the same thing)
You already have global variables for trg2 and trg3; are you sure you want to define local versions as well in this function, or are you meaning to use the global ones? I can't tell, since I don't understand exactly what you're trying to do here.