"Improved Identify"

Posted by Malelder on Sat 10 Jul 2004 06:49 PM — 2 posts, 11,096 views.

#0
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

Canada #1
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.