ID:263114
 
Code:
atom/var/owner = 0
var/password
turf/House
Enter_House
Enter()
if(!src.owner)
switch(alert("Would you like to buy this house for $1,000,000?","House","Yes","No"))
if("Yes")
if(usr.money >= 1000000)
src.owner = usr.name
usr.money -= 1000000

password = input("What would you like your password for other people to enter be?","Password") as text
return
else
if(src.owner == usr.name)
..()
else
var/npassword = input("Password","Pass") as text
if(npassword == password)
..()
else
usr<<"This is not your house!"
return


Problem description:When I place the turf on the map no messages come up or anything when I enter.

I suggest doing Enter(mob/M) and use M instead of usr.

Aaand... other than that, I don't know. The procedure looks pretty solid to me.
In response to PirateHead
Well I did that and It still doesn't like sense me when I enter the turf.
In response to Rage the Dark
Are you sure Enter() is being called? Put world << "bug?" at the beginning of Enter(). If that isn't displayed, you should look for your bug elsewhere. If it is displayed, put world << "bug 1", "bug 2", etc all over your proc to see where the flow is going and where things are going wrong.

If you've already done that, I really have no clue.
In response to PirateHead
I placed all of the crap and still no "BUG!" ARG!
In response to Rage the Dark
Is there any hope for me or does anyone have any idea why when I walk into the turf it doesnt call the proc?
well you could try makeing it a aera ive had this problem before and that seemed to fix it.
In response to Rage the Dark
Um, I'd like to point out that the password variable will be changed for every house when it is set since it is being defined as a world variable and not a turf variable.
In response to Exophus
turf/House
var/mob/owner=null
var/password=null
Enter_House
Enter(mob/M)
if(M&&M.client)
if(src.owner!=M)
if(src.owner!=null)
var/npass=input("What's the password","Password")as text
if(npass==src.password)
.=..()
else
M<<"Sorry, time for you to die!"
else
switch(input("Want to buy this house?","$1,000,000")in list("Yes","No"))
if("Yes")
if(M.money>=1000000)
M.money-=1000000
src.owner=M
src.password=input("Password for your house","Password")as text
.=..()

else
.=..()

This works... >_>