Name: The Owner's Corridor. Vnum: 2510.
>speech_prog test
if ISPASSAGE($n) == 2
mpecho There is an exit south.
else
mpecho Else!
endif2 is south.
This is the room.
The Owner's Corridor []
Exits: north south.There's an exit south.
Quote:
You say 'test'
Else!
You say 'test'
Else!
Am I doing something wrong or does it not work? Using SmaugFUSS.
Quote:
EXAMPLE: if ispassage($n) == 6
'There is a passage leading northeast.
DESCRIPTION: The ISPASSAGE(dir) ifcheck is used to
determine if there is an exit in the
specified direction. (HELP DOORDIRS)
EXAMPLE: if ispassage($n) == 6
'There is a passage leading northeast.
DESCRIPTION: The ISPASSAGE(dir) ifcheck is used to
determine if there is an exit in the
specified direction. (HELP DOORDIRS)
[EDIT] Turns out the helpfile was wrong, heh. Changed it to the correct syntax:
Quote:
EXAMPLE: if ispassage($n) == northeast
'There is a passage leading northeast.
DESCRIPTION: The ISPASSAGE(dir) ifcheck is used to
determine if there is an exit in the
specified direction. (HELP EXITS)
Do NOT use doordirs. Use the exit name.
EXAMPLE: if ispassage($n) == northeast
'There is a passage leading northeast.
DESCRIPTION: The ISPASSAGE(dir) ifcheck is used to
determine if there is an exit in the
specified direction. (HELP EXITS)
Do NOT use doordirs. Use the exit name.