ID:263122
 
Code:
obj
Arrow
layer = MOB_LAYER+3948293481235161758194918541534713514955553959535769532349
icon = 'Objects.dmi'
Arrow_Up
name = ""
icon_state = "ArrowUp"
MouseEntered(src)
icon_state = "ArrowUpMove"
MouseExited(src)
icon_state = "ArrowUp"
Click()
var/obj/Arrow/Arrow_Up/AU
if(AU.screen_loc == "9,10:27")
usr.Str ++
usr.Def --
usr.Speed --
for(var/obj/text/T in usr.client.screen)
del T
usr.textonscreenTEXT(2,0,11,0,"Strength")
usr.textonscreenTEXT(10,0,11,0,"[usr.Str]")
usr.textonscreenTEXT(2,0,10,0,"Defense")
usr.textonscreenTEXT(10,0,10,0,"[usr.Def]")
usr.textonscreenTEXT(2,0,9,0,"Speed")
usr.textonscreenTEXT(10,0,9,0,"[usr.Speed]")
usr.textonscreenTEXT(2,0,8,0,"Luck")
usr.textonscreenTEXT(10,0,8,0,"[usr.Luck]")
usr.textonscreenTEXT(2,0,7,0,"Mind")
usr.textonscreenTEXT(10,0,7,0,"[usr.Mind]")
usr.textonscreenTEXT(2,0,6,0,"Skill Points")
usr.textonscreenTEXT(10,0,6,0,"[usr.SkillPoints]")


Problem description:

runtime error: Cannot read null.screen_loc
proc name: Click (/obj/Arrow/Arrow_Up/Click)
usr: FDAS (/mob/C)
src: (/obj/Arrow/Arrow_Up)
call stack:
(/obj/Arrow/Arrow_Up): Click(the turf (9,10,2) (/turf))
You never set AU to anything, therefore AU is null. You cannot access a null object's variables, since it doesn't exist.

~~> Unknown Person
In response to Unknown Person
Yeah, i figured that out soon after starting this thread by switching AU to src and deleting the variable. Now it works fine. But if I click the arrow more than once, it produces this error over and over again, until it has to supress the proc crash.

runtime error: Cannot execute null.New().
proc name: textonscreenTEXT (/mob/proc/textonscreenTEXT)

**FIXED**