Re: number() & gate spell.

From: John (witpens@optushome.com.au)
Date: 02/22/02


----- Original Message -----
From: "David Cole" <tiznor@HOTMAIL.COM>
>
> I find this rather odd, everything compiles great, no errors what's so
ever.
> Am I over looking a mundane detail or something? Any help would be
greatly
> appreciated.

When you are "look"ing or "enter"ing the gate, are you calling the REAL
or VIRTUAL value of the room from the object? Since zone 0 has the same
VIRTUAL and REAL room numbers (if all the rooms are consecutive), thats
why your first option works but the other options doesnt work.

Its best to save the VIRTUAL room number as object value 0 and then for
"enter" and "look" commands, make sure it takes you to the REAL room
number. This way, when you add more rooms, your destination still works,
as opposed to converting it to REAL room number first and saving it to
obj_val.

Hope this helps.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT