Top Mud Sites Forum Return to TopMudSites.com
  Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Read-only archive
The Top Mud Sites forum is closed.
Posting, registration and logins are disabled.

 
Old 10-22-2002, 06:14 PM   #1
Samson
Member
 
Join Date: Apr 2002
Location: United Socialist States of America
Home MUD: SmaugMuds.org
Home MUD: Arthmoor MUD Hosting
Posts: 249
Samson is on a distinguished road
 
Old 10-22-2002, 07:05 PM   #2
Ingham
 
Posts: n/a
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?
 
Old 10-23-2002, 07:02 AM   #3
Samson
Member
 
Join Date: Apr 2002
Location: United Socialist States of America
Home MUD: SmaugMuds.org
Home MUD: Arthmoor MUD Hosting
Posts: 249
Samson is on a distinguished road
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.
 
Old 11-03-2002, 11:39 AM   #4
jornel
Member
 
Join Date: Sep 2002
Location: Canada
Posts: 73
jornel is on a distinguished road
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.
 



Smaug "B" resets - Similar Threads
Thread Thread Starter Forum Replies Last Post
Surviving theme resets? Brody Roleplaying and Storytelling 4 06-14-2006 07:38 PM
Smaug bug Samson MUD Coding 0 10-23-2002 06:57 AM
Ranking List Resets Synozeer Bugs and Suggestions 3 09-22-2002 09:51 PM
smaug Blank Deed Newbie Help 3 07-24-2002 11:19 AM
Resets Keljorian MUD Builders and Areas 1 05-09-2002 03:59 AM


All times are GMT -4.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022