ID:262585
 
Code:
turf/DragonsHouse
Entered(O)
if(usr.key == "Dragon warrior2662") //Your Key of Choice.
usr<<"You enter house.."
step(usr.dir,1)
else
usr<<"This is not your house!"
step_away(usr,1)//the part not working


Problem description:
ok, the house works but the step away, doesn't, and I am not sure why...
Instead of usr, use O. Also, add an if(ismob(O)) right after Entered.
In response to N1ghtW1ng
ok, I tried that, and I turned the code into the following, but now, it is as if the text was never there.:
turf/var/ismob

turf/DragonsHouse
Entered(mob/O)
if(ismob(O))
if(O.key == "Dragon warrior2662") //Your Key of Choice.
usr<<"You enter house.."//should say to the usr, but it doesn't
step(usr.dir,1)
else
usr<<"This is not your house!"//should say to the usr, but it doesn't
step_away(usr,1)

did I make a mistake?
In response to Dragon warrior2662
turf/var/ismob

turf/DragonsHouse
Entered(mob/O)
if(ismob(O))
if(O.key == "Dragon warrior2662") //Your Key of Choice.
O<<"You enter house.."//should say to the usr, but it doesn't
step(O.dir,1)
else
O<<"This is not your house!"//should say to the usr, but it doesn't
step_away(O,1)


Try that.
In response to N1ghtW1ng
omg, thanks, I forgot the change the other usrs to O...I am so stupid >.<
In response to Dragon warrior2662
Ok all of my codes are using 'usr' in them. Should I change them all to 'O' or what do I do?
In response to Amadeus219
If they are procs, yes, unless it is click, or dbclick.
In response to N1ghtW1ng
ok, now the words and stuff work, but people who aren't me can still get into my house...
the code is now
turf/var/ismob

turf/DragonsHouse
Entered(mob/O)
if(ismob(O))
if(O.key == "Dragon warrior2662") //Your Key of Choice.
O<<"You enter house.."
step(O.dir,1)
else
O<<"This is not your house!"
step_away(O,1)
In response to Dragon warrior2662
Whoops, you should be using Enter() instead.
In response to N1ghtW1ng
How do I define O as a variable? Do I copy the IsMob stuff or what?
In response to Dragon warrior2662
Enter() instead of what?
In response to Dragon warrior2662
Entered()
In response to Amadeus219
Enter(mob/O)
you sure have a little abuse in there.

with the Entered() proc you define 'O' as the one who enters it. and then suddenly below you use usr.

so replace all the usr's with O

and under the Entered() proc you should be using
if(ismob(O)) (to make sure that only mobs can enter)

O-matic