obj
Toilet
name = "Never Ending Tournament"
icon = 'Objects.dmi'
icon_state = "pooper"
density = 1
Click()
set src in oview(1)
usr<<"You start to relieve yourself. Ugh! Better blur that out..."
usr.move = 0
usr.overlays += new/obj/Blur
spawn(50)
usr.Feces = 0
usr.overlays -= new/obj/Blur
usr.move = 1
usr.peed = 1
Problem description:
I want to make it so when the usr clicks toilet, it takes him on top of the toilet and makes it go back afterwards.
Toilet
name = "Never Ending Tournament"
icon = 'Objects.dmi'
icon_state = "pooper"
density = 1
Click()
set src in oview(1)
usr<<"You start to relieve yourself. Ugh! Better blur that out..."
usr.move = 0
usr.loc=locate(usr.x, usr.y+1, usr.z) //or wherever toilet is located
usr.overlays += new/obj/Blur
spawn(50)
usr.Feces = 0
usr.overlays -= new/obj/Blur
usr.loc=locate(usr.x, usr.y-1, usr.z)
usr.move = 1
usr.peed = 1
you have to modify the location to where your toilet is, i cant tell where it is being because i dont know how ur map is
usr.loc=locate(usr.x, usr.y-1, usr.z) will move the person one tile down
usr.loc=locate(usr.x, usr.y+1, usr.z) will move the person one tile up
usr.loc=locate(usr.x+1, usr.y, usr.z) will move the person one tile right
usr.loc=locate(usr.x-1, usr.y, usr.z) will move the person one tile left
- Vance