roomportal
Syntax: %roomportal(vNum ,exitname ,value,zone)
Return or set a non-standard exit (portal). Creates or redefines a non-standard exit with exit string of exitname. Assigns the room with vNum of value (%roommode dependent) in zone name/number zone (ignored when %roommode is set and key is used for value) to the non-standard exit string of exitname. If vNum is omitted, the current room is used.
When returning a value, a string list consisting of the exitname and room link is returned.
Examples:
#CALL %roommode(0)
#CALL %roomportal(1,"example",2)
Creates exit "example" from vNum 1 to vNum 2.
#CALL %roomportal(1,"example",3,2)
Changes exit "example" to now point to room vNum 3 in zone 2.
#CALL %roommode(1)
#CALL %roomportal(%roomkey(1),"example",7)
Changes exit "example" to now point to room Key 7.
#CALL %roomportal(,"home","recall")
Creates exit "home" in current room and sets its destination to room with ID "recall".
#SHOW %roomportal(,"home")
Displays the string list home|1 where the 1 is the room id of the room named "recall".
#CALL %roomportal(,"home","recall",2)
Changes exit "home" in current room and sets its destination to room with ID"recall" in zone 2. |