ID:139219
 
Code: Bump(A)
if(istype(A,/mob/sweet_bro))
if(var/socks == 1)
var/ruse = 1
usr << "hurry he is distracted by the ruse get the car"
else
..()



Problem description: var/socks undefined var
i also have it so the var socks equals 0

Bump(A)
if(istype(A,/mob/sweet_bro))
if(var/socks == 1)//Just leave out the "var/" part and make sure to define "socks" being 0 in the code.
var/ruse = 1
usr << "hurry he is distracted by the ruse get the car"
else
..()
mob/Bump(A)
if(ismob(A,/mob/sweet_bro/))
if(socks == 1)
ruse = 1
usr << "hurry he is distracted by the ruse get the car"
else
..()

mob
sweet_bro

mob
var
socks = 0
ruse = 0


I was going to attempt to clean it up but I had no idea what you're trying to do so I decided to just make it compile and move on. :P

I know someone better than me will explain it all, but I'm tired and I'm sure you just want a quick fix anyway.