Merentha Website
- Overview
- About LPC Coding
- Header Files
- The Problem Sets
- Rooms
- Normal Rooms
- Monster Rooms
- Search Rooms
- Exit Rooms
- Door Rooms
- Monsters
- Normal Monster
- Random/Emote Monster
- Patrol/Talking Monster
- Skills/Interactive Monster
- Armour
- A Vest
- A Ring
- Cursed Armour
- Weapons
- Normal Staff
- Two Handed Sword
- Special Attack Weapon
- Cursed Weapon
- Talkin Weapon
- Lights
- A Match
- A Torch
- A Lantern
- Bags
- A Normal Bag
- A Backpack (wearable)
- An Expanding Bag
- Misc Objects
- A Leaf
- A Sea Shell
- A Key
- A Snowball
|
OK, lets add items to monsters!
Here we will look at some of the unique Merentha features of items. These features are seldom used by new coders or used incorrectly.
When you add inventory to monsters you do it as described in the previous problem set, however, there are some things which are rather important.
As with most other items there are the normal set_name(), set_short(), set_long() variables you can set, but armour and weapons have a few more.
armour
- set_fingers(i) - where i is a number from 2 to 6 sets the number of fingers (only used for gloves)
- set_ac(i) - where i is a number 5 to 17. Sets the armour class, the higher the better. Read the help balance files online.
- set_type("armour_type") - sets the type of armour, read the balance docs for valid types.
- set_limbs( limb_list ) - sets the limbs needed to wear this item.
- set_size( size ) - where size can be a number, where 0 means one size fits all, 8000 is considered small and 10500 is considered large. You can also do set_size("elf") and have your armour set for a standard elf size.
- set_material( material_list ) - sets the materials this item is made from. Common choices are "metal" "steel" "gold" "wood" "organic" "water" "bone" "rock" and so forth.
- set_property("no_limb_wear",1) - sets armour so that you can not speficy specific limbs on wearing (you must wear it all)
weapons
- set_hands(i) - where i is a number 1 or 2. This is the number of hands needed to wield the weapon. If it is a 1 handed weapon you don't need this line, its really just useful for 2 handed weapons.
- set_material( material_list ) - sets the materials this item is made from. Common choices are "metal" "steel" "gold" "wood" "organic" "water" "bone" "rock" and so forth.
- set_ac(i) - where i is a number 1 to 3. Sets the armour class, the higher the better. Read the help balance files online.
- set_wc(i) - where i is a number 5 to 17. Sets the weapon class, the higher the better. Read the help balance files online.
- add_poisoning(i) - where i is any number, perferably between 10 and 25. The higher the value the more it poisons. This should be rarely used.
- set_type("weapon_type") - sets the type of weapon, read the balance docs for valid types.
- set_skill_level(i) - where i is the skill level needed to use the weapon. Usually this value should be from 3 to 5 times the ac value was set to.
|