ID:145335
 
Code:
    Dr.Abara
icon='npcs.dmi'
icon_state="scientist"
density=1
hp=500
verb
Talk()
set src in oview(1)
if(usr.icon!='zombie.dmi'&&usr.icon!='zombief.dmi')
switch(alert(usr,"Freedom","Scientist","Approach","Ignore"))
if("Approach")
switch(alert(usr,"What!? Oh... who are you? How'd you get in here? You're Fighting the Monsters you say? Well,I can get you outta here if you give me 1 virus","Scientist","Give","Leave"))
if("Give")
if(usr.items<usr.mitems)
switch(input("Want to get in freedom?","??")in list("Yes","Cancel"))
if("Yes")
if(src in oview(1,usr))
if(usr.Virus>=1)
usr.Virus=0
new/obj/pickup/saver(usr)
del usr.Virus


Problem description:
I can play the game but if i press Yes the second time the virus isent going.
Instead of that it gives me a error called Bad del

usr.Virus is a var, you can't delete vars...
In response to Mysame
What Mysame said, and just delete that part. It'll work fine then, since you already defined the 'virus' to go (usr.Virus = 0)
In response to RedlineM203
Yes but there is an item in your inventory called Virus and that needs to get deleted to.
In response to Halovader
var/obj/virus/a=locate() in usr
if(a) del(a)