ID:138855
 
Code:
obj
MouseEntered()
if(src.desc)
var/list/SplitList=Split(src.screen_loc,",")
for(var/v in SplitList)
var/PreListSize=SplitList.len
SplitList+=Split(v,":")
if(SplitList.len==PreListSize+1) SplitList+=0
var/X=text2num(SplitList[3]);var/Xoff=text2num(SplitList[4])
var/Y=text2num(SplitList[5]);var/Yoff=text2num(SplitList[6])
X=(X-1)*4;Y=(18-Y)*6
winset(usr,"TutorialWindow.NameLabel","text=\"[src.name]\"")
winset(usr,"TutorialWindow.DescLabel","text=\"[src.desc]\"")
winset(usr,"TutorialWindow","pos=[10+X+Xoff],[22+Y-Yoff];is-visible=true")
winset(usr,"MainWindow","focus=true")
Nurse
icon = 'NPCs_1.dmi'
icon_state = "Nurse"
name = "Nurse"
desc="When you get low on stamina or Ki klick on Rest to restor it!"
New()
overlays += 'RepeatMark.dmi'
..()


Problem description:
Insted of poping up winset i get runtime error. Can someone help me ?
What is the runtime error and do you have DEBUG on so we can see what line the error is on?
first of all you copied this code and second you need window in skin called Tutorialwindow