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
|
// Petrarch
// a walking monster, he will move once every 20 heart beats, on average
// he also does random emotes
#include
inherit MONSTER;
void create() {
::create();
set_name("gnome");
set_short("a gnome is here exploring the forest");
set_long("The gnome appears to be exploring the forest. He could be "
"searching for something the way he is carrying about.");
set_id(({"gnome", "explorer"}));
set_level(10);
set_race("gnome");
set_body_type("human");
set_gender("male");
set_moving(1);
set_speed(20);
set_emotes(10, // He will emote this line once every 10 heart beats
({"The gnome searchs around the forest.",
"The gnome appears lost.",
"The gnome looks sad.",
}),
0); // 0 means outof battle, 1 means in battle
}
|