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
➜ SMAUG coding
➜ "Improved Identify"
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Malelder
(9 posts) Bio
|
| Date
| Sat 10 Jul 2004 06:49 PM (UTC) |
| Message
| A few muds I've seen have a way to "mark" an item that is identified with the stats of that item. I've been playing with getting that to work...My feeling is that somewhere in spell_identify, something needs to write a (for example) "sword" extra description, then put the info given out by the id spell into the description set for sword....so when someone "l sword", they get back the info that ID would give back. I also feel, that this should be able to removed, such as a case where someone id's a weapon, then enchants it; we'd want the previous id to be removed, and have to have the item re'ided to get the new information. I'm drawing a big blank on actually executing this plan however (; Anyone tackle this and have any input to put me on the right path? (: Thanks for any and all replies (;
Kurt
| | Top |
|
| Posted by
| Greven
Canada (835 posts) Bio
|
| Date
| Reply #1 on Sat 10 Jul 2004 09:36 PM (UTC) |
| Message
| | An easy way to do this would be to put the identiy code in do_look with an ifcheck for a flag. When the item is identified, the flag is set, and do_look shows the stats. Then, in your enchantment spells, make it remove the identified flag if its there. That should cut down a little on having extra description sitting in memory on each item, and add minimal cpu usage, as we're really only checking for flags. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | | 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.
10,579 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top