ID:1179961
 
(See the best response by A.T.H.K.)
Code:
mob//Nagato
verb
BanshoTenin1() // Verb used for firing the beam
set category = "Kekkei Genkai"
set name = "Bansho Ten'in"

if(usr.firing)
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.chakra <= 40)
usr<<"You dont have enough chakra!"
return

else
for(var/mob/M in oview(4))
if(!usr.Tenin)
usr.Frozen = 1
usr.Tenin = 1
view()<<"<b>[usr]: !"
M<<""

walk_towards(M,usr)

var/damage = usr.nin*1.5
M.health -= damage
view()<<"<font color=white><b>[M] has been pulled towards [usr] for [damage] damage from [usr]'s Bansho Tenin!"

if(M.health<=0)
M.Death(usr)

sleep(20)
usr.Frozen = 0
sleep(50)
usr.Tenin = 0

else
usr<<"You need to wait 5 seconds to use this again"


Problem description:

There is no error codes or anything, but I just wonder how I choose people for targeting. Lets say a box pops up to show who I want to hit.

This code happens to be if a mob is in range each mob are hit by the effect not at the same time but one-by-one.

I just want to make a box pop up and select a single target.

Best response
mob//Nagato
verb
BanshoTenin1(var/mob/M in view(4)) // Verb used for firing the beam
set category = "Kekkei Genkai"
set name = "Bansho Ten'in"

if(usr.firing)
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.chakra <= 40)
usr<<"You dont have enough chakra!"
return

else
if(!usr.Tenin)
usr.Frozen = 1
usr.Tenin = 1
view()<<"<b>[usr]: !"
M<<""

walk_towards(M,usr)

var/damage = usr.nin*1.5
M.health -= damage
view()<<"<font color=white><b>[M] has been pulled towards [usr] for [damage] damage from [usr]'s Bansho Tenin!"

if(M.health<=0)
M.Death(usr)

sleep(20)
usr.Frozen = 0
sleep(50)
usr.Tenin = 0

else
usr<<"You need to wait 5 seconds to use this again"


That should do it, totally untested.
It works perfectly, thanks :)