EXAMPLE SCRIPTS FOR WEAPONS, ARMOR AND MONSTERS These can be read using the @script command. You can also set the 'Knowledge' for each of these by typing '@kgen <#obj>' which will be seen by players using Knowledge spells or programmers using the '@seek' command. NOTE: Anything shown as a floating-point or integer can only be of that type; the two data types cannot be mixed and will cause type mismatch tracebacks. WEAPON EXAMPLE @create $weapon named Scimitar @desc scimitar as "The scimitar is a curved, lightweight metal blade for better handling. [Dmg. Base 10.0]" @set scimitar.shoots to 0 @set scimitar.usage_verbage to " % %p %D at " @set scimitar.can_stun to 1 @set scimitar.can_paralyse to 0 @set scimitar.damage_base to 10.0 @set scimitar.value_base to 200.0 @chmod scimitar rf ARMOR EXAMPLE @create $clothing named Leather Armor @desc leather as "This is a full suit of coarse, black leather armor. [Armor 3.5]" @set leather.armor to 3.5 @set leather.cursed to 0 @set leather.body_area to "torso" @set leather.value_base to 35.0 @chmod leather rf MONSTER EXAMPLE @create $monster named Goblin @desc goblin as You see a small, slender creature wearing tattered clothing. Its face looks almost human. @str goblin is 8.8 @dex goblin is 8.3 @int goblin is 3.2 @hea goblin is 11.0 @com goblin is 1.6 @set goblin.exp to 12 @set goblin.home to #191 @set goblin.rot_time to 18 @set goblin.gestate to 400 @set goblin.wait_seconds to 200 @set goblin.birth_msg to "A %N is approaching!" @set goblin.death_msg to "The %N growls and falls dead!" @set goblin.greedy to 1 @set goblin.edible to 0 @set goblin.eat_heal to 0.0 @set goblin.natural_def to 1 @set goblin.magic_immunity to 0 @set goblin.hostility to 3 @set goblin.weapon_types to {#150, #159, #160, #161} @set goblin.wander_ok to 1 @set goblin.startmoney to {{"gold", 10.0}} @set goblin.money to {{"gold", 10.0}} @chmod goblin rf See also 'help $monster'. NOTE: .magic_immunity, .greedy, .edible, and .wander_ok are binary properties.