1 #include "room.h"
2
3 object troll;
4
5 #undef EXTRA_RESET
6 #define EXTRA_RESET\
7 extra_reset();
8
extra_reset()9 extra_reset() {
10 object money;
11 if (!troll || !living(troll)) {
12 troll = clone_object("obj/monster");
13 call_other(troll, "set_name", "troll");
14 call_other(troll, "set_level", 9);
15 call_other(troll, "set_hp", 100);
16 call_other(troll, "set_wc", 12);
17 call_other(troll, "set_al", -60);
18 call_other(troll, "set_short", "A troll");
19 call_other(troll, "set_long",
20 "It is a nasty troll that look very aggressive.\n");
21 call_other(troll, "set_aggressive", 1);
22 call_other(troll, "set_spell_mess1",
23 "The troll says: Mumble");
24 call_other(troll, "set_spell_mess2",
25 "The troll says: Your mother was a bitch!");
26 call_other(troll, "set_chance", 20);
27 move_object(troll, this_object());
28 money = clone_object("obj/money");
29 call_other(money, "set_money", random(500));
30 move_object(money, troll);
31 }
32 }
33
34 TWO_EXIT("room/clearing", "east",
35 "room/slope", "west",
36 "In a forest",
37 "You are in a big forest.\n", 1)
38