mob
verb
Shadow_Spar()
set hidden =1
if(canSpar)
usr.move = 0
usr.icon_state="Rest"
usr.dir=SOUTH
usr.canSpar=0
var/image/sparDir/I = image('sparDir.dmi', src)
I.pixel_y =32
I.icon_state=pick("north","south","west","east")
usr<<I
else sparBreak()
proc
sparBreak()
if(!canSpar)
usr.move=1
usr.icon_state=""
canSpar=1
for(var/image/sparDir/I in client.screen) del(I)
client
North()
if(!mob.canSpar)
for(var/image/sparDir/I in mob.client.screen)
if(I.icon_state=="north")
var/A = round(mob.maxExp/100)
var/B = round(mob.maxExp/100)*2
var/C = round(mob.maxExp/100)*3
mob.exp+=pick(A,B,C)
I.icon_state=pick("north","south","west","east")
else mob.sparBreak()
else ..()
East()
if(!mob.canSpar)
for(var/image/sparDir/I in mob.client.screen)
if(I.icon_state=="east")
var/A = round(mob.maxExp/100)
var/B = round(mob.maxExp/100)*2
var/C = round(mob.maxExp/100)*3
mob.exp+=pick(A,B,C)
I.icon_state=pick("north","south","east","west")
else mob.sparBreak()
else ..()
West()
if(!mob.canSpar)
for(var/image/sparDir/I in mob.client.screen)
if(I.icon_state=="west")
var/A = round(mob.maxExp/100)
var/B = round(mob.maxExp/100)*2
var/C = round(mob.maxExp/100)*3
mob.exp+=pick(A,B,C)
I.icon_state=pick("north","east","south","west")
else mob.sparBreak()
else ..()
South()
if(!mob.canSpar)
for(var/image/sparDir/I in mob.client.screen)
if(I.icon_state=="south")
var/A = round(mob.maxExp/100)
var/B = round(mob.maxExp/100)*2
var/C = round(mob.maxExp/100)*3
mob.exp+=pick(A,B,C)
I.icon_state=pick("north","south","west","east")
else mob.sparBreak()
else ..()
Problem description: So my problem is that every time I hit an arrow key, nothing happens. I'm assuming it has to do with the for() proc but i'm not sure about what to do.