ID:160614
 
        PK_Rockin(mob/M in get_step(src,src.dir)) 
set category = "PSI"
if(usr.psidelay == 1)
usr << "\red Please wait before using PSI again."
return
if(M.pvp == "No")
usr << "\red That player has Pvp turned off!"
return

if(usr.PP >= 15)//PP Cost
usr.PP -= 15//PP Cost
M.overlays+=image(icon='icon/pkflash.dmi',icon_state="explosion")//Overlay
////EFFECT//////////////////////////////////////////////////////////////
var/damage = src.PSI + 25 - M.defense
if(M.defense >= damage)
damage = 0
M.hp -= damage
M.updateHealth()
src.exp += M.giveexp
src.level_up()
view(M) << sound("sound/flash.wav",,,3,100)
////////////////////////////////////////////////////////////////////////
view() << "\red[usr] used PK Rockin' on [M]! It quakes them for [damage] hp!"//Tells the target
usr.PSI_Use += 1
checkpsi()
usr.psidelay()
M.overlays-=image(icon='icon/pkflash.dmi',icon_state="explosion")
M.death_check(src)

else
src << "\red Not enough PP!"
return


Instead of making it effect people in get_step. How can i make it so it damages everyone around the user?
Use a for() loop using oview(1) so it effects everyone in 1 tile. Look up both of htem before starting.
In response to Bakasensei
eh? i looked them up and i'm still confused >_<. I tried placing for in there but i get an error.
In response to Bluebook
for(var/mob/M in oview(1)) thats how you define it.
In response to Bakasensei
Hmmmm... Ok i think i get it now. thanks.
In response to Bakasensei
You'd want to use range() for something like this, instead of view().
In response to Kaioken
Use teh orange() proc the best!
In response to Bakasensei
Depending, of course. The principle difference is minimal, of course, and my main intention was pointing out the correct proc functionality to use, ie what proc series. But I agree, using a proc named after a fruit is always good.
In response to Kaioken
Mkay. Thanks kaioken. I had to change a few things that were conflicting with this Code also. >_<