Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Smaug "B" resets (http://www.topmudsites.com/forums/showthread.php?t=306)

Samson 10-22-2002 06:14 PM


Ingham 10-22-2002 07:05 PM

Hmm, I'm far from being a really capable coder (so far), but what does it churn out when you grep for "BIT_RESET_" (w/o quotes)? Maybe it'll shed some light on things if you knew where those constant were being applied/used? Or maybe they are just decrepated constants?

Samson 10-23-2002 07:02 AM

I took a closer look, and all these things appeared to be doing was duplicating the function of other reset commands and flag settings. I've since removed them since they appear to be unique to Smaug and none of our areas were dependent on them existing. Looks like something they were working on but never used.

jornel 11-03-2002 11:39 AM

The B resets are designed to allow you to either set, reset, or toggle bits in either:

- The exit_info of a door
- The room_flags of a room
- The extra_flags of an object
- The affected_by of a mob

Whether you want or need this level of control seems to be up to you.  (I think 99.5% of cases don't need this degree of control).  But who knows, when you are making an automated quest and you want to kill every possible player exploit/abuse, then such control seems worthwhile.

Say you want a bolted door.  A player unbolts the door and then quits.  When the area resets, the B reset would rebolt the door.

Say you wanted an invisible sentinel mob.  A player casts dispel magic and then flees without killing the mob.  That mob would remain visible forever until someone killed it.  The B reset could re-apply the "AFF_INVISIBLE" bit.

Say you wanted a buried treasure.  Someone digs it up, but doesn't take it.  The B reset could re-apply the "ITEM_BURIED" bit.

I admit, these examples may seem strained, but I know from experience that sometimes a builder wants or needs things to be 'just so' and gets frustrated when SMAUG's default actions don't quite do what is wanted.  For this reason, I would recommend leaving the capability of doing 'B' resets intact.  Besides, removing it doesn't save you anything.


All times are GMT -4. The time now is 08:18 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022