Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ ifcheck ispassage, does it work?
|
ifcheck ispassage, does it work?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Sun 08 May 2005 09:50 PM (UTC) Amended on Sun 08 May 2005 09:57 PM (UTC) by Zeno
|
| Message
| Name: The Owner's Corridor. Vnum: 2510.
>speech_prog test
if ISPASSAGE($n) == 2
mpecho There is an exit south.
else
mpecho Else!
endif
2 is south.
This is the room.
The Owner's Corridor []
Exits: north south.
There's an exit south.
Quote: 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)
[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. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Samson
USA (683 posts) Bio
|
| Date
| Reply #1 on Mon 09 May 2005 06:09 AM (UTC) |
| Message
| | Nice catch on the helpfile. Updated the 1.6 package to the correct syntax. | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #2 on Mon 09 May 2005 03:39 PM (UTC) |
| Message
| | Actually there are a bit more helpfiles that are wrong too. Mpclosepassage said to use exit names, while it actually uses exit numbers. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
8,629 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top