[IDEA] Object changing descrip. Was: [code] Oedit.c

From: John Evans (evansj@HI-LINE.NET)
Date: 11/19/97


On Wed, 19 Nov 1997, David Klasinc wrote:

>
> Next time when somebody will send a 20k patch to the list, make sure that
> you quote every 20k of it! You'll see everybody will be very happy about
> it!
>

Yeah! I just love getting the same code in my /var/spool/mail three times
a day!

>  How would one create an object that owuld change it's descriptions during
> different hours of the day? Would be the easiest thing to do with a spec?
> where you would be doing something like if (CMD_IS("look")) { /* foo */ }
> ?

Hrmm... Interesting. Yeah, I guess a spec_proc would work for that and
have it check the time. I don't know if obj specs are called on a PULSE
in stock Circle. I don't think that they are because I remember coding in
a ROOM_PULSE and an OBJ_PULSE so that rooms and objs could have their
specs _not_ rely upon player input.

I would make a function like object_activity() and model it after
mobile_activity() for spec calls, and in the spec for the item, have it
check the time, and if the time is between X and Y, then its descrip.
changes to "blah1". If between Y and Z, it changes to "blah2", etc, etc...

If that's not appealing, then stick some code in another_hour()
(weather.c) to check the time AFTER the time change and alter the
description there.

I would probably do the OBJ_PULSE idea because it opens up _so_ many more
doors to creation and being able to have animated objects, singing
swords, chests that open and close on their own (but not if a player
tries to), etc.

John Evans <evansj@hi-line.net>

May the source be with you.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST