home » builders » builder's lessons » object identify code
Object Id code
When an object gets a magical apply via the APPLY system, when it is identified, that property shows up in the identify output. However, when an object gets a magical affect by an object prog, this does not show up. Sometimes a builder does not want the magic of the item easily known via identify, but other times they do. When you do want it known you can add an I section to the item.
#25752 gold ivory bracer golden rose mage school guild reward~ {B0}a gold and {F0}ivory {F0}bracer~ {B0}A gold and {F0}ivory {F0}bracer lays here.~ ~ ITEM_TYPE_TREASURE FLAG_MAGIC CAN_WEAR_TAKE|CAN_WEAR_WRIST QUALITY_AVERAGE MATERIAL_GOLD COND_PERFECT SIZE_MEDIUM 0 0 0 0 LAYER_OVER 0 E gold ivory bracer goldenrose mage school~ {B0}An elegant bracer patterned in rose and jasmine etchings. ~ A APPLY_MANA 10 I This bracer has a magical property that drains anyone who is not a mage who wears it. ~ >rand_prog 80~ if guild($c) != Mages mpmadd $c currmana -20 mpmadd $c currhp -40 mpmadd $c currmove -30 mpechoat $c $O is draining your very essence away from you. mpechoaround $c $C pales as $s essence is drained away by $O. endif ~
The text that is after the I will show up when the PC casts identify on the object. The mana apply on the object will also show up in the identify spell output. The information does not have to be super specific. General ID does not give out information in specific numbers anyway, so it is best to follow along with the general theme we have set up for the game.