stairs
icon='Interior.dmi'
icon_state="stairs"
verb
Climb()
set src in view(1)
usr.loc=locate(183,224,2)
usr << "You Climbed the Stairs!"
stairs2
icon='Interior.dmi'
icon_state="stairs"
verb
//Climb()
// usr.loc=locate(183,224,2)
Descend()
set src in view(1)
usr.loc=locate(183,224,1)
Well i was always told "if you find yourself repeating code, your doing it wrong" - So keeping that in mind, is there a way to alter what i've written up here to just make the player Z level change? when a player is climbing or descending stairs? That way i dont have to code billions of lines of code for every stair...
Bear in mind you have to modify the tags in the Mapping utility to use this. Make sure the direction is NORTH over "NORTH" when you do it. Check out "tag" in DM as well!
Note that I did not use Move() to the portal. This is because the portal is going to be the other door (in my example) so if I used Move() to go to it, I would call the Entered() of the door and just go back and forth forever!