ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra/Deliantra/Data.pm
Revision: 1.19
Committed: Mon Mar 27 17:38:19 2006 UTC (18 years, 2 months ago) by root
Branch: MAIN
Changes since 1.18: +1 -30 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 =head1 NAME
2    
3     Crossfire::Data - various data structures useful for understanding archs and objects
4    
5     =head1
6    
7     THIS FILE IS AUTOGENERATED, DO NOT EDIT!
8    
9     It's a translation of the following files:
10    
11     res/spells.xml
12     res/types.xml
13     res/typenumbers.xml
14    
15     See F<res/README> for more info.
16    
17     =cut
18    
19 root 1.4 package Crossfire::Data;
20    
21 root 1.3 our %BITMASK = (
22     attacktype => {
23     0 => 'Physical',
24     1 => 'Magical',
25     2 => 'Fire',
26     3 => 'Electricity',
27     4 => 'Cold',
28     5 => 'Confusion',
29     6 => 'Acid',
30     7 => 'Drain',
31     8 => 'Weaponmagic',
32     9 => 'Ghosthit',
33     10 => 'Poison',
34     11 => 'Slow',
35     12 => 'Paralyze',
36     13 => 'Turn Undead',
37     14 => 'Fear',
38     15 => 'Cancellation',
39     16 => 'Depletion',
40     17 => 'Death',
41     18 => 'Chaos',
42     19 => 'Counterspell',
43     20 => 'God Power',
44     21 => 'Holy Power',
45     22 => 'Blinding'
46     },
47     material => {
48     0 => 'Paper',
49     1 => 'Iron',
50     2 => 'Glass',
51     3 => 'Leather',
52     4 => 'Wood',
53     5 => 'Organics',
54     6 => 'Stone',
55     7 => 'Cloth',
56 root 1.13 8 => 'Adamantite',
57     9 => 'Liquid',
58     10 => 'Soft Metal',
59     11 => 'Bone',
60     12 => 'Ice',
61     13 => '(supress name on display)'
62 root 1.3 },
63 root 1.14 movement_type => {
64     0 => 'Walk',
65     1 => 'Fly Low',
66     2 => 'Fly High',
67     3 => 'Swim',
68 root 1.16 4 => 'Boat',
69     16 => 'Other'
70 root 1.14 },
71 root 1.3 pick_up => {
72     0 => 'Nothing',
73     1 => 'Wealth',
74     2 => 'Food',
75     3 => 'Weapons',
76     4 => 'Armour',
77     5 => 'Inverse',
78     6 => 'All'
79     },
80     spellpath => {
81     0 => 'Protection',
82     1 => 'Fire',
83     2 => 'Frost',
84     3 => 'Electricity',
85     4 => 'Missiles',
86     5 => 'Self',
87     6 => 'Summoning',
88     7 => 'Abjuration',
89     8 => 'Restoration',
90     9 => 'Detonation',
91     10 => 'Mind',
92     11 => 'Creation',
93     12 => 'Teleportation',
94     13 => 'Information',
95     14 => 'Transmutation',
96     15 => 'Transferrence',
97     16 => 'Turning',
98     17 => 'Wounding',
99     18 => 'Death',
100     19 => 'Light'
101     },
102     will_apply => {
103     0 => 'Apply Handles',
104     1 => 'Open Chests',
105     2 => 'Break Walls',
106     3 => 'Open Doors'
107     }
108     );
109    
110     our %LIST = (
111 root 1.15 attack_movement_bits_0_3 => {
112     0 => 'default',
113     1 => 'attack from distance',
114     2 => 'run away',
115     3 => 'hit and run',
116     4 => 'wait, then hit, then move',
117     5 => 'rush blindly',
118     6 => 'always run',
119     7 => 'attack from distance if hit',
120     8 => 'do not approach'
121     },
122     attack_movement_bits_4_7 => {
123     0 => 'none',
124     16 => 'pet',
125     32 => 'small circle',
126     48 => 'large circle',
127     64 => 'small horizontal',
128     80 => 'large horizontal',
129     96 => 'random direction',
130     112 => 'random movement',
131     128 => 'small vertical',
132     144 => 'large vertical'
133     },
134 root 1.3 direction => {
135     0 => '<none>',
136     1 => 'north',
137     2 => 'northeast',
138     3 => 'east',
139     4 => 'southeast',
140     5 => 'south',
141     6 => 'southwest',
142     7 => 'west',
143     8 => 'northwest'
144     },
145 root 1.10 event_type => {
146     0 => 'none',
147     1 => 'apply',
148     2 => 'attack',
149     3 => 'death',
150     4 => 'drop',
151     5 => 'pickup',
152     6 => 'say',
153     7 => 'stop',
154     8 => 'time',
155     9 => 'throw',
156     10 => 'trigger',
157     11 => 'close',
158     12 => 'timer',
159     28 => 'move'
160     },
161 root 1.3 mood => {
162     0 => 'furious',
163     1 => 'angry',
164     2 => 'calm',
165     3 => 'sleep',
166     4 => 'charm'
167 root 1.1 },
168 root 1.3 potion_effect => {
169     0 => '<none>',
170     65536 => 'life restoration',
171     1048576 => 'improvement'
172 root 1.1 },
173 root 1.3 skill_type => {
174     1 => 'lockpicking',
175     2 => 'hiding',
176     3 => 'smithery',
177     4 => 'bowyer',
178     5 => 'jeweler',
179     6 => 'alchemy',
180     7 => 'stealing',
181     8 => 'literacy',
182     9 => 'bargaining',
183     10 => 'jumping',
184     11 => 'detect magic',
185     12 => 'oratory',
186     13 => 'singing',
187     14 => 'detect curse',
188     15 => 'find traps',
189     16 => 'mediatation',
190     17 => 'punching',
191     18 => 'flame touch',
192     19 => 'karate',
193     20 => 'climbing',
194     21 => 'woodsman',
195     22 => 'inscription',
196     23 => 'one handed weapons',
197     24 => 'missile weapons',
198     25 => 'throwing',
199     26 => 'use magic item',
200     27 => 'disarm traps',
201     28 => 'set traps',
202     29 => 'thaumaturgy',
203     30 => 'praying',
204     31 => 'clawing',
205     32 => 'levitation',
206     33 => 'summoning',
207     34 => 'pyromancy',
208     35 => 'evocation',
209     36 => 'sorcery',
210     37 => 'two handed weapons'
211 root 1.1 },
212 root 1.3 spell_type => {
213     1 => 'raise dead',
214     2 => 'rune',
215     3 => 'make mark',
216     4 => 'bolt',
217     5 => 'bullet',
218     6 => 'explosion',
219     7 => 'cone',
220     8 => 'bomb',
221     9 => 'wonder',
222     10 => 'smite',
223     11 => 'magic missile',
224     12 => 'summon golem',
225     13 => 'dimension door',
226     14 => 'magic mapping',
227     15 => 'magic wall',
228     16 => 'destruction',
229     17 => 'perceive self',
230     18 => 'word of recall',
231     19 => 'invisible',
232     20 => 'probe',
233     21 => 'healing',
234     22 => 'create food',
235     23 => 'earth to dust',
236     24 => 'change ability',
237     25 => 'bless',
238     26 => 'curse',
239     27 => 'summon monster',
240     28 => 'recharge',
241     29 => 'polymorph',
242     30 => 'alchemy',
243     31 => 'remove curse',
244     32 => 'identify',
245     33 => 'detection',
246     34 => 'mood change',
247     35 => 'moving ball',
248     36 => 'swarm',
249     37 => 'charge mana',
250     38 => 'dispel rune',
251     39 => 'create missile',
252     40 => 'consecrate',
253     41 => 'animate weapon',
254     42 => 'light',
255     43 => 'change map light',
256     44 => 'faery fire',
257     45 => 'disease',
258     46 => 'aura',
259     47 => 'town portal'
260 root 1.1 },
261 root 1.3 weapon_type => {
262     0 => '<unknown>',
263     1 => 'sword',
264     2 => 'arrows',
265     3 => 'axe',
266     4 => 'katana',
267     5 => 'knife, dagger',
268     6 => 'whip, chain',
269     7 => 'hammer, flail',
270     8 => 'club, stick'
271     }
272     );
273    
274     our %IGNORE_LIST = (
275     non_pickable => [
276     'value',
277     'nrof',
278     'weight',
279     'name_pl',
280     'material',
281     'no_pick',
282     'unpaid',
283     'title',
284     'identified'
285     ],
286     system_object => [
287     'value',
288     'nrof',
289     'weight',
290     'name_pl',
291     'material',
292     'no_pick',
293     'unpaid',
294     'title',
295     'glow_radius',
296     'identified',
297     'blocksview',
298     'invisible'
299     ]
300     );
301    
302     our %DEFAULT_ATTR = (
303 root 1.7 attr => [
304     [
305     'name',
306     {
307     desc => 'This is the name of the object, displayed to the player.',
308     name => 'name',
309     type => 'string'
310     }
311     ],
312     [
313     'name_pl',
314     {
315     desc => 'This is the plural name of the object. A plural name must be set for all items that can be picked up and collected by the player.',
316     name => 'plural name',
317     type => 'string'
318     }
319     ],
320     [
321     'title',
322     {
323 root 1.9 desc => 'This is the object\'s title. Once an object is identified the title is attached to the name. Typical titles are "of Mostrai", "of xray vision" etc.',
324 root 1.7 name => 'title',
325     type => 'string'
326     }
327     ],
328     [
329     'face',
330     {
331     desc => 'The image-name defines what image is displayed for this object in-game.',
332     name => 'image',
333     type => 'string'
334     }
335     ],
336     [
337     'nrof',
338     {
339     desc => 'This value determines the number of objects in one stack (for example: 100 goldcoins => "number = 100"). You should set this at least to one, for any pickable object - otherwise it won\'t be mergeable into a stack.',
340     name => 'number',
341     type => 'int'
342     }
343     ],
344     [
345     'weight',
346     {
347 root 1.9 desc => 'This value defines the object\'s weight in grams (1000g is 1kg). Objects with zero weight are not pickable for players. Still, set the "non-pickable"-flag for explicitly non-pickable objects (hey, this is opensource.. you never know ;) ).',
348 root 1.7 name => 'weight',
349     type => 'int'
350     }
351     ],
352     [
353     'value',
354     {
355 root 1.18 desc => 'Determines the value of the object, in units of silver coins (one platinum coin == 50 silver coins). Value for buying/selling will be further modified by various factors. Hence, testing values in-game is usually inevitable.',
356 root 1.7 name => 'value',
357     type => 'int'
358     }
359     ],
360     [
361     'glow_radius',
362     {
363 root 1.9 desc => 'If <glow radius> is set to a value greater zero, the object appears lit up on dark maps. <glow radius> can be a value between 0 and 4, the higher, the more light does the object emit.',
364 root 1.7 name => 'glow radius',
365     type => 'int'
366     }
367     ],
368     [
369     'material',
370     {
371     desc => 'This bitmask-value informs the player of which material(s) the object consists. Material does also affect how likely the object can be destroyed by hazardous spell-effects.',
372     name => 'material',
373     type => 'bitmask',
374     value => $BITMASK{material}
375     }
376     ],
377     [
378     'no_pick',
379     {
380     desc => 'If set, the object cannot be picked up (Neither by players nor monsters).',
381     name => 'non-pickable',
382     type => 'bool'
383     }
384     ],
385     [
386     'invisible',
387     {
388     desc => 'Generally makes the object invisible. Depending on the object-type, some can be made visible by the show_invisible spell. If in doubt, test it. Putting an invisible object under the floor always prevents it from being shown.',
389     name => 'invisible',
390     type => 'bool'
391     }
392     ],
393     [
394     'blocksview',
395     {
396     desc => 'If an item is set to block view, players (and monsters) cannot see byond it unless they cross it or manage to stand ontop.',
397     name => 'block view',
398     type => 'bool'
399     }
400     ],
401     [
402     'identified',
403     {
404     desc => 'If an item is identified, the player has full knowledge about it.',
405     name => 'identified',
406     type => 'bool'
407     }
408     ],
409     [
410     'unpaid',
411     {
412     desc => 'An <unpaid> item cannot be used unless a player carried it over a shop mat, paying the demanded price. Setting this flag makes sense only for pickable items inside shops.',
413     name => 'unpaid',
414     type => 'bool'
415     }
416     ]
417     ]
418 root 1.3 );
419    
420     our %TYPE = (
421     Ability => {
422 root 1.7 attr => [
423     [
424     'invisible',
425     {
426     type => 'fixed',
427     value => 1
428     }
429     ],
430     [
431     'no_drop',
432     {
433     type => 'fixed',
434     value => 1
435     }
436     ],
437     [
438     'sp',
439     {
440     desc => 'The monster will use the specified <short range spell> when the player is within 6-square radius (of the monster\'s head).',
441     name => 'short range spell',
442     type => 'spell'
443     }
444     ],
445     [
446     'hp',
447     {
448     desc => 'The monster will use the specified <long range spell> when the player is at least 6 squares away (from the monster\'s head). Setting a <long range spell> is optional. If unset, the <short range spell> gets used all the time.',
449     name => 'long range spell',
450     type => 'nz_spell'
451     }
452     ],
453     [
454     'maxsp',
455     {
456     desc => 'Sometimes you\'ll want a monster to use one ability more than others. To achieve this, set the <importance> to a value greater than one. Abilities with this value zero/unset are counted to be of <importance> one. Example: A monster with "small fireball" of <importance> 3 and "paralyze" of <importance> 1 will averagely cast three out of four times the "small fireball".',
457     name => 'importance',
458     type => 'int'
459     }
460     ],
461     [
462     'attacktype',
463     {
464 root 1.9 desc => 'This flag specifies whether the ability <is magical> in nature. If enabled, all spells produced by this ability will have magic attacktype added to the usual attacktypes. This should always be set for spell-like abilities. "Natural" abilities like a dragon\'s firebreath are an exception. Note that non-magical abilities are more dangerous because magic resistance does not protect from those.',
465 root 1.7 name => 'is magical',
466     type => 'bool',
467     value => [
468     0,
469     2
470     ]
471     }
472     ]
473     ],
474 root 1.3 desc => 'Abilities are to be put in a monster\'s inventory. They grant monsters the knowledge to cast spells. Spells from abilities are usually magical in nature, thus adding magic attacktype to the spell-damage they produce. <br><br> A particularly nice feature of abilities is that they can hold two spells: One for short range- and one for long range use. \\n\\n You should know that spellcasting monsters receive abilities via &lt;treasurelist&gt;.',
475     ignore => [
476     $IGNORE_LIST{system_object}
477     ],
478 root 1.5 name => 'Ability',
479 root 1.3 use => 'If you want to create "customized" spellcasting monsters, you should use abilities (rather than spellbooks/wands or something). The long/short-range spell feature can make boss-monsters more interesting and challenging. <br><br> You should keep in mind that magic abilities allow players to get better resistance. You can turn off the magic part to make the spells more dangerous. However, this really shouldn\'t be neccessary unless you work on very high level maps. And what fun is a magic resistance cloak when it has no effect?'
480     },
481     Altar => {
482 root 1.7 attr => [
483     [
484     'no_pick',
485     {
486     type => 'fixed',
487     value => 1
488     }
489     ],
490     [
491 root 1.14 'move_on',
492 root 1.7 {
493 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
494     name => 'movement type',
495     type => 'bitmask',
496     value => $BITMASK{movement_type}
497 root 1.7 }
498     ],
499     [
500     'slaying',
501     {
502     desc => 'This string specifies the item that must be put on the altar to activate it. It can either be the name of an archetype, or directly the name of an object. Yet, titles are not recognized by altars. Remember to put a note somewhere, telling the player what he is expected to drop on the altar. (Often this is put in the altar\'s name: E.g. "drop 100 platinums")',
503     name => 'match item name',
504     type => 'string'
505     }
506     ],
507     [
508     'food',
509     {
510     desc => 'The drop amount specifies the amount of items (specified in <match item name>) that must be dropped to activate the altar. If <match item name> is set to "money", then the value of the sacrificed money must be equal to <drop amount> (ie, if food=200, then 200 silver, 20 gold, or 4 platinum will all work.) Note that the maximum possible for <drop amount> is 32767.',
511     name => 'drop amount',
512     type => 'int'
513     }
514     ],
515     [
516     'connected',
517     {
518     desc => 'If a connection value is set, the altar will trigger all objects with the same value, when activated. This will only work once.',
519     name => 'connection',
520     type => 'int'
521     }
522     ],
523     [
524     'sp',
525     {
526 root 1.9 desc => 'When activated, the selected <spell> will be casted (once, on the player). This should work for any given spell. The altar will work infinitely in this way. Don\'t set both <spell> and <connection> for one altar.',
527 root 1.7 name => 'spell',
528     type => 'spell'
529     }
530     ],
531     [
532     'msg',
533     {
534     desc => 'This text will be displayed to the player in the exact moment when the altar is activated.',
535     end => 'endmsg',
536     name => 'message',
537     type => 'text'
538     }
539     ]
540     ],
541 root 1.9 desc => 'When a player puts a defined number of certain items on the altar, then either a spell is casted (on the player) or a connector is triggered. If the latter is the case, the altar works only once. Either way, the sacrificed item disappears.',
542 root 1.3 ignore => [
543     $IGNORE_LIST{non_pickable}
544 root 1.5 ],
545     name => 'Altar'
546 root 1.3 },
547     'Altar Trigger' => {
548 root 1.7 attr => [
549     [
550     'no_pick',
551     {
552     type => 'fixed',
553     value => 1
554     }
555     ],
556     [
557     'slaying',
558     {
559     desc => 'This string specifies the item that must be put on the altar to activate it. It can either be the name of an archetype, or directly the name of an object. Yet, titles are not recognized by altars. Remember to put a note somewhere, telling the player what he is expected to drop on the altar. (Often this is put in the altar\'s name: E.g. "drop 100 platinums")',
560     name => 'match item name',
561     type => 'string'
562     }
563     ],
564     [
565     'food',
566     {
567     desc => 'The drop amount specifies the amount of items (specified in <match item name>) that must be dropped to activate the altar. If <match item name> is set to "money", then the value of the sacrificed money must be equal to <drop amount> (ie, if food=200, then 200 silver, 20 gold, or 4 platinum will all work.) Note that the maximum possible for <drop amount> is 32767.',
568     name => 'drop amount',
569     type => 'int'
570     }
571     ],
572     [
573     'connected',
574     {
575     desc => 'If a connection value is set, the altar will trigger all objects with the same value, when activated. This will only work once.',
576     name => 'connection',
577     type => 'int'
578     }
579     ],
580     [
581     'sp',
582     {
583 root 1.9 desc => 'When activated, this <spell> will be casted (once, on the player). This should work for any given spell. The altar will work infinitely in this way. Don\'t set both <spell> and <connection> for one altar.',
584 root 1.7 name => 'spell',
585     type => 'spell'
586     }
587     ],
588     [
589     'exp',
590     {
591     desc => 'Being activated, the altar will reset after <reset time> ticks. After reset, the altar is ready to be activated once again. The default <reset time> is 30.',
592     name => 'reset time',
593     type => 'int'
594     }
595     ],
596     [
597     'last_sp',
598     {
599     desc => 'If this attribute is enabled, the altar_trigger won\'t push the connected value by altar reset. Only ONCE by dropping the sacrifice. This is typically used when the altar is connected to a creator, e.g. for selling tickets. If this attribute is disabled (default), the altar_trigger will push the connected value TWICE per sacrifice: First by dropping sacrifice, second by reset. This mode is typically used for altars being connected to gates, resulting in the gate being opened and closed again.',
600     name => 'ignore reset',
601     type => 'bool'
602     }
603     ],
604     [
605 root 1.14 'move_on',
606 root 1.7 {
607 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
608     name => 'movement type',
609     type => 'bitmask',
610     value => $BITMASK{movement_type}
611 root 1.7 }
612     ],
613     [
614     'msg',
615     {
616     desc => 'This text will be displayed to the player in the exact moment when the altar is activated.',
617     end => 'endmsg',
618     name => 'message',
619     type => 'text'
620     }
621     ]
622     ],
623 root 1.9 desc => 'Altar_triggers work pretty much like normal altars (drop sacrifice -> connection activated), except for the fact that they reset after usage. Hence, altar_triggers can be used infinitely.',
624 root 1.3 ignore => [
625     $IGNORE_LIST{non_pickable}
626     ],
627 root 1.5 name => 'Altar Trigger',
628 root 1.3 use => 'Altar_triggers are very useful if you want to charge a price for... <UL> <LI> ...an item. -> Connect the altar_trigger (set "last_sp 1") to a creator. <LI> ...opening a gate. -> Connect the altar_trigger (set "last_sp 0") to the gate. <LI> ...information. -> Connect the altar_trigger (set "last_sp 1") to a magic_mouth. </UL> The big advantage over normal altars is the infinite usability of altar_triggers! If there are ten players on one server, they\'re quite grateful if things work more than once. =)'
629     },
630     Amulet => {
631 root 1.7 attr => [
632     [
633     'ac',
634     {
635     desc => 'This value defines the amount of armour-class bonus for wearing this item. <Armour class> lessens the chance of being hit. Lower values are better. It should usually be set only for armour-like equipment.',
636     name => 'armour class',
637     type => 'int'
638     }
639     ],
640     [
641     'wc',
642     {
643     desc => 'The <weapon class> value adds to the overall weapon class of the wielder\'s melee attacks. Weapon class improves the chance of hitting the opponent. Weapon class is the "counterpiece" of <armour class>. It should usually be set only for weapon-like items. Lower values are better.',
644     name => 'weapon class',
645     type => 'int'
646     }
647     ],
648     [
649     'item_power',
650     {
651     desc => 'The <item power> value measures how "powerful" an artifact is. Players will only be able to wear equipment with a certain total amount of <item power>, depending on their own level. This is the only way to prevent low level players to wear "undeserved" equipment (like gifts from other players or cheated items). It is very important to adjust the <item power> value carefully for every artifact you create! If zero/unset, the CF server will calculate a provisional value at runtime, but this is never going to be an accurate measurement of <item power>.',
652     name => 'item power',
653     type => 'int'
654     }
655     ],
656     [
657     'damned',
658     {
659     desc => 'A damned piece of equipment cannot be unwielded unless the curse is removed. Removing damnations is a tick harder than removing curses.',
660     name => 'damnation',
661     type => 'bool'
662     }
663     ],
664     [
665     'cursed',
666     {
667     desc => 'A cursed piece of equipment cannot be unwielded unless the curse is removed.',
668     name => 'curse',
669     type => 'bool'
670     }
671     ],
672     [
673     'lifesave',
674     {
675 root 1.9 desc => 'An item with this flag enabled will save the players life for one time: When the player is wearing this item and his health points reach zero, the item disappears, replenishing half of the player\'s health. An item with <save life> should not have any decent additional bonuses!',
676 root 1.7 name => 'save life',
677     type => 'bool'
678     }
679     ],
680     [
681     'unique',
682     {
683     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good.',
684     name => 'unique item',
685     type => 'bool'
686     }
687     ],
688     [
689     'startequip',
690     {
691     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
692     name => 'godgiven item',
693     type => 'bool'
694     }
695     ],
696     [
697     'applied',
698     {
699     desc => 'If you put this item into the inventory of a monster, and you want the monster to use/wear the item - you must set <is applied>. Enabling this flag doesn\'t make any sense if the item is NOT in a monster\'s inventory.',
700     name => 'is applied',
701     type => 'bool'
702     }
703     ],
704     [
705     'msg',
706     {
707     desc => 'This text describes the item\'s "story". Every decent artifact should have such a description.',
708     end => 'endmsg',
709     name => 'description',
710     type => 'text'
711     }
712     ]
713     ],
714 root 1.3 desc => 'Wearing an amulet, the object\'s stats will directly be inherited to the player. Amulets are usually meant for protection and defense.',
715 root 1.5 name => 'Amulet',
716 root 1.4 section => [
717     [
718     'resistance',
719 root 1.7 [
720     [
721     'resist_physical',
722     {
723     desc => 'This adds physical resistance to the item (= armour value). The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
724     name => 'resist physical %',
725     type => 'int'
726     }
727     ],
728     [
729     'resist_magic',
730     {
731     desc => 'This adds magic resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
732     name => 'resist magic %',
733     type => 'int'
734     }
735     ],
736     [
737     'resist_fire',
738     {
739     desc => 'This adds fire resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
740     name => 'resist fire %',
741     type => 'int'
742     }
743     ],
744     [
745     'resist_electricity',
746     {
747     desc => 'This adds electricity resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
748     name => 'resist electricity %',
749     type => 'int'
750     }
751     ],
752     [
753     'resist_cold',
754     {
755     desc => 'This adds fire resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
756     name => 'resist cold %',
757     type => 'int'
758     }
759     ],
760     [
761     'resist_confusion',
762     {
763     desc => 'This adds confusion resistance to the item. The number is a percent-value in the range 0-100. Confusion resistance is not very effective unless the value comes close to 100 (= perfect immunity).',
764     name => 'resist confusion %',
765     type => 'int'
766     }
767     ],
768     [
769     'resist_acid',
770     {
771     desc => 'This adds acid resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
772     name => 'resist acid %',
773     type => 'int'
774     }
775     ],
776     [
777     'resist_drain',
778     {
779     desc => 'This adds draining resistance to the item. The number is a percent-value in the range 0-100. Draining resistance is little effective unless the value is 100 (= perfect immunity).',
780     name => 'resist draining %',
781     type => 'int'
782     }
783     ],
784     [
785     'resist_weaponmagic',
786     {
787     desc => 'This adds weaponmagic resistance to the item. The number is a percent-value in the range 0-100. Weaponmagic resistance generally should not exist on equipment at all. Spells/Monsters doing weaponmagic damage (e.g. comet spell) are not meant to be easily resisted.',
788     name => 'resist weaponmagic %',
789     type => 'int'
790     }
791     ],
792     [
793     'resist_ghosthit',
794     {
795     desc => 'This adds ghosthit resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
796     name => 'resist ghosthit %',
797     type => 'int'
798     }
799     ],
800     [
801     'resist_poison',
802     {
803     desc => 'This adds poison resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
804     name => 'resist poison %',
805     type => 'int'
806     }
807     ],
808     [
809     'resist_slow',
810     {
811     desc => 'This adds fear resistance to the item. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.',
812     name => 'resist slow %',
813     type => 'int'
814     }
815     ],
816     [
817     'resist_paralyze',
818     {
819     desc => 'This adds paralyze resistance to the item. The number is a percent-value in the range 0-100. Paralyze resistance is little effective unless the value is 100 (= perfect immunity).',
820     name => 'resist paralyze %',
821     type => 'int'
822     }
823     ],
824     [
825     'resist_fear',
826     {
827     desc => 'This adds fear resistance to the item. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.',
828     name => 'resist fear %',
829     type => 'int'
830     }
831     ],
832     [
833     'resist_deplete',
834     {
835     desc => 'This adds depletion resistance to the item. The number is a percent-value in the range 0-100. Depletion resistance is little effective unless the value is 100 (= perfect immunity).',
836     name => 'resist depletion %',
837     type => 'int'
838     }
839     ],
840     [
841     'resist_death',
842     {
843     desc => 'This adds death-attack resistance to the item. The number is a percent-value in the range 0-100. Death-attack resistance is little effective unless the value is 100 (= perfect immunity). Generally, resistance to death-attack is not supposed to be available to players!',
844     name => 'resist death-attack %',
845     type => 'int'
846     }
847     ],
848     [
849     'resist_chaos',
850     {
851     desc => 'This adds chaos resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact. Note that chaos is not a stand-alone attacktype. Chaos "contains" a combination of other attacktypes.',
852     name => 'resist chaos %',
853     type => 'int'
854     }
855     ],
856     [
857     'resist_blind',
858     {
859     desc => 'This adds blinding resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
860     name => 'resist blinding %',
861     type => 'int'
862     }
863     ],
864     [
865     'resist_holyword',
866     {
867     desc => 'This adds holy power resistance to the item. The number is a percent-value in the range 0-100. Holy power is the attacktype that holyword-type spells use to hurt undead creatures. This kind of resistance is only reasonable for undead players (wraith or devourer cult). Generally, resistance to holy word should not be available for players.',
868     name => 'resist holy power %',
869     type => 'int'
870     }
871     ]
872     ]
873     ],
874     [
875     'stats',
876     [
877     [
878     'Str',
879     {
880     desc => 'The player\'s strentgh will rise/fall by the given value while wearing this piece of equipment.',
881     name => 'strength',
882     type => 'int'
883     }
884     ],
885     [
886     'Dex',
887     {
888     desc => 'The player\'s dexterity will rise/fall by the given value while wearing this piece of equipment.',
889     name => 'dexterity',
890     type => 'int'
891     }
892     ],
893     [
894     'Con',
895     {
896     desc => 'The player\'s constitution will rise/fall by the given value while wearing this piece of equipment.',
897     name => 'constitution',
898     type => 'int'
899     }
900     ],
901     [
902     'Int',
903     {
904     desc => 'The player\'s intelligence will rise/fall by the given value while wearing this piece of equipment.',
905     name => 'intelligence',
906     type => 'int'
907     }
908     ],
909     [
910     'Pow',
911     {
912     desc => 'The player\'s power will rise/fall by the given value while wearing this piece of equipment.',
913     name => 'power',
914     type => 'int'
915     }
916     ],
917     [
918     'Wis',
919     {
920     desc => 'The player\'s wisdom will rise/fall by the given value while wearing this piece of equipment.',
921     name => 'wisdom',
922     type => 'int'
923     }
924     ],
925     [
926     'Cha',
927     {
928     desc => 'The player\'s charisma will rise/fall by the given value while wearing this piece of equipment.',
929     name => 'charisma',
930     type => 'int'
931     }
932     ]
933     ]
934     ],
935     [
936     'misc',
937     [
938     [
939     'luck',
940     {
941     desc => 'With positive luck bonus, the player is more likely to succeed in all sorts of things (spellcasting, praying,...). Unless the <luck bonus> is very high, the effect will be barely visible in-game. Luck bonus on one piece of equipment should never exceed 3, and such bonus should not be too frequently available.',
942     name => 'luck bonus',
943     type => 'int'
944     }
945     ],
946     [
947     'hp',
948     {
949     desc => 'Positive <health regen.> bonus speeds up the player\'s healing process. Negative values slow it down.',
950     name => 'health regen.',
951     type => 'int'
952     }
953     ],
954     [
955     'sp',
956     {
957     desc => 'Positive <mana regen.> bonus speeds up the player\'s mana regeneration. Negative values slow it down.',
958     name => 'mana regen.',
959     type => 'int'
960     }
961     ],
962     [
963     'grace',
964     {
965     desc => 'Positive <grace regen.> bonus speeds up the player\'s grace regeneration. Negative values slow it down. Since grace can be regenerated rather easy with praying, additional <grace regen.> bonus should be VERY RARE!!',
966     name => 'grace regen.',
967     type => 'int'
968     }
969     ],
970     [
971     'food',
972     {
973     desc => 'Positive <food bonus> slows down the player\'s digestion, thus he consumes less food. Negative values speed it up. Note that food is consumed not only for "being alive", but also for healing and mana-regeneration. <food bonus> only affects the amount of food consumed for "being alive". Hence, even with high <food bonus>, during a fight a player can run out of food quickly.',
974     name => 'food bonus',
975     type => 'int'
976     }
977     ],
978     [
979     'xrays',
980     {
981 root 1.9 desc => 'Xray vision allows the player to see through obstacles in a two-square-wide radius. This is extremely helpful and desirable, so don\'t give it away for cheap on equipment.',
982 root 1.7 name => 'xray vision',
983     type => 'bool'
984     }
985     ],
986     [
987     'stealth',
988     {
989     desc => 'Stealth allows the player to move silently. This comes to effect if a player turns himself invisible and tries to sneak around monsters. (At least that was the idea behind it)',
990     name => 'stealth',
991     type => 'bool'
992     }
993     ],
994     [
995     'reflect_spell',
996     {
997     desc => 'If a player is wearing any piece of equipment with the ability to <reflect spells>, all kinds of spell-bullets and -beams will bounce off him. This works only about 90% of all times, to avoid players being completely immune to certain types of attacks. This is a very powerful ability and it shouldn\'t be handed out cheap!',
998     name => 'reflect spells',
999     type => 'bool'
1000     }
1001     ],
1002     [
1003     'reflect_missile',
1004     {
1005     desc => 'If a player is wearing any piece of equipment with the ability to <reflect missiles>, all kinds of projectiles (e.g. arrows, bolts, boulders) will bounce off him. This works only about 90% of all times, to avoid players being completely immune to certain types of attacks.',
1006     name => 'reflect missiles',
1007     type => 'bool'
1008     }
1009     ],
1010     [
1011 root 1.14 'move_type',
1012 root 1.7 {
1013 root 1.14 desc => 'Determines which kinds of movement this object can use (e.g. for monsters) or grants (e.g. for amulets).',
1014     name => 'movement type',
1015     type => 'bitmask',
1016     value => $BITMASK{movement_type}
1017 root 1.7 }
1018     ],
1019     [
1020     'path_attuned',
1021     {
1022     desc => 'Click on the <attuned paths> button to select spellpaths. The player will get attuned to the specified spellpaths while wearing this item.',
1023     name => 'attuned paths',
1024     type => 'bitmask',
1025     value => $BITMASK{spellpath}
1026     }
1027     ],
1028     [
1029     'path_repelled',
1030     {
1031     desc => 'Click on the <repelled paths> button to select spellpaths. The player will get repelled to the specified spellpaths while wearing this item.',
1032     name => 'repelled paths',
1033     type => 'bitmask',
1034     value => $BITMASK{spellpath}
1035     }
1036     ],
1037     [
1038     'path_denied',
1039     {
1040     desc => 'Click on the <denied paths> button to select spellpaths. The specified spellpaths will be denied to the player while wearing this item.',
1041     name => 'denied paths',
1042     type => 'bitmask',
1043     value => $BITMASK{spellpath}
1044     }
1045     ]
1046     ]
1047     ]
1048     ],
1049     use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
1050     },
1051     Battleground => {
1052     attr => [
1053     [
1054     'no_pick',
1055     {
1056     type => 'fixed',
1057     value => 1
1058     }
1059     ],
1060     [
1061     'is_floor',
1062 root 1.4 {
1063 root 1.7 type => 'fixed',
1064     value => 1
1065 root 1.4 }
1066     ],
1067     [
1068 root 1.7 'hp',
1069 root 1.4 {
1070 root 1.7 desc => 'The exit destinations define the (x, y)-coordinates where players get teleported after they died on this battleground.',
1071     name => 'destination X',
1072     type => 'int'
1073 root 1.4 }
1074     ],
1075     [
1076 root 1.7 'sp',
1077 root 1.4 {
1078 root 1.7 desc => 'The exit destinations define the (x, y)-coordinates where players get teleported after they died on this battleground.',
1079     name => 'destination Y',
1080     type => 'int'
1081 root 1.4 }
1082     ]
1083     ],
1084 root 1.3 desc => 'Battleground is very special: In short, players can die on battleground without any death penalties. They don\'t loose or gain experience while on battleground. Acid, draining and depletion effects don\'t work either. When a player dies on battleground, he gets teleported to an exit location which is defined in the battleground object.',
1085     ignore => [
1086     $IGNORE_LIST{non_pickable}
1087     ],
1088 root 1.5 name => 'Battleground',
1089 root 1.3 use => 'Battleground is only meant for player vs. player duels. You can design combat arenas similiar to the one in scorn.<br> What should NEVER be done is placing battleground tiles in open dungeons or other free kinds of land. It must not be possible to gain significant treasure for fighting on battleground, because it bears no risk.<br><br> (Battleground will cease to work when the image or name is changed, or when it is placed beneath another floor tile. This is not a bug, it is there to prevent any attempts of placing "hidden" battleground tiles anywhere.)'
1090     },
1091     Book => {
1092 root 1.7 attr => [
1093     [
1094     'level',
1095     {
1096     desc => 'If this value is set to be greater than zero, the player needs a certain literacy level to succeed reading the book. The book can be read if: mental_level greater <literacy level> - 5. Adding level to a book can be a nice idea, personally I like it when a player needs more than his fighting skills to solve a quest. However, keep the booklevel at least below 15 because it is quite hard to gain high mental levels.',
1097     name => 'literacy level',
1098     type => 'int'
1099     }
1100     ],
1101     [
1102     'startequip',
1103     {
1104     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
1105     name => 'godgiven item',
1106     type => 'bool'
1107     }
1108     ],
1109     [
1110     'unique',
1111     {
1112     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good.',
1113     name => 'unique item',
1114     type => 'bool'
1115     }
1116     ],
1117     [
1118     'msg',
1119     {
1120     desc => 'This is the text that appears "written" in the book.',
1121     end => 'endmsg',
1122     name => 'book content',
1123     type => 'text'
1124     }
1125 root 1.14 ],
1126     [
1127     'slaying',
1128     {
1129     desc => 'This is the key string of the book. The key string is checked by an inventory checker. (This is used eg. for the gate/port passes in scorn)',
1130     name => 'key string',
1131     type => 'string'
1132     }
1133 root 1.7 ]
1134     ],
1135 root 1.5 desc => 'Applying a book, the containing message is displayed to the player.',
1136     name => 'Book'
1137 root 1.1 },
1138 root 1.3 Boots => {
1139 root 1.7 attr => [
1140     [
1141     'exp',
1142     {
1143     desc => 'Boots with <speed bonus> will increase the player\'s walking speed while worn. This kind of bonus is quite desirable for players of low- and medium level. High level players usually have fastest possible walking speed and thus don\'t need <speed bonus> anymore. Still, this bonus is good for nice artifacts - not everything has to be for highest level.',
1144     name => 'speed bonus',
1145     type => 'int'
1146     }
1147     ],
1148     [
1149     'magic',
1150     {
1151     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the boots. Important: <magic bonus> on boots has no effect if there is no <armour class> set. It only works in combination with <armour class>.',
1152     name => 'magic bonus',
1153     type => 'int'
1154     }
1155     ]
1156     ],
1157 root 1.3 desc => 'Wearing boots, the object\'s stats will directly be inherited to the player. Usually enhancing his speed, or granting some minor protection bonus.',
1158     import => [
1159     $TYPE{Amulet}
1160     ],
1161 root 1.5 name => 'Boots',
1162 root 1.3 use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
1163     },
1164     Bracers => {
1165 root 1.7 attr => [
1166     [
1167     'magic',
1168     {
1169     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the bracers.',
1170     name => 'magic bonus',
1171     type => 'int'
1172     }
1173     ]
1174     ],
1175 root 1.3 desc => 'Bracers are armour-plates worn around the wrists. Wearing bracer, the object\'s stats will directly be inherited to the player. Usually enhancing his defense.',
1176     import => [
1177     $TYPE{Amulet}
1178     ],
1179 root 1.5 name => 'Bracers',
1180 root 1.3 use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
1181     },
1182     'Brestplate Armour' => {
1183 root 1.7 attr => [
1184     [
1185     'last_heal',
1186     {
1187     desc => 'This poses a penalty to spell regeneration speed, for wearing the armour. The bigger the spellpoint penalty, the worse.',
1188     name => 'spellpoint penalty',
1189     type => 'int'
1190     }
1191     ],
1192     [
1193     'last_sp',
1194     {
1195     desc => 'Slowdown penalty reduces the player\'s walking speed when wearing the armour. Bigger values are worse - zero is best.',
1196     name => 'slowdown penalty',
1197     type => 'int'
1198     }
1199     ],
1200     [
1201     'magic',
1202     {
1203     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the armour.',
1204     name => 'magic bonus',
1205     type => 'int'
1206     }
1207     ]
1208     ],
1209 root 1.3 desc => 'Wearing an armour, the object\'s stats will directly be inherited to the player. Usually enhancing his defense.',
1210 root 1.7 import => [
1211     $TYPE{Amulet}
1212     ],
1213     name => 'Brestplate Armour',
1214     use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
1215     },
1216     Button => {
1217     attr => [
1218     [
1219 root 1.14 'move_on',
1220 root 1.7 {
1221 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
1222     name => 'movement type',
1223     type => 'bitmask',
1224     value => $BITMASK{movement_type}
1225 root 1.7 }
1226     ],
1227     [
1228 root 1.14 'move_off',
1229 root 1.7 {
1230 root 1.14 desc => 'Which movement types deactivate this object (e.g. button).',
1231     name => 'movement type',
1232     type => 'bitmask',
1233     value => $BITMASK{movement_type}
1234 root 1.7 }
1235     ],
1236     [
1237     'no_pick',
1238     {
1239     type => 'fixed',
1240     value => 1
1241     }
1242     ],
1243     [
1244     'weight',
1245     {
1246     desc => 'The button is pressed (triggered), as soon as <press weigh> gram are placed ontop of it.',
1247     name => 'press weight',
1248 root 1.9 type => 'int'
1249 root 1.7 }
1250     ],
1251     [
1252     'connected',
1253     {
1254     desc => 'Every time the button is pressed or released, all objects with the same <connection> value are activated.',
1255     name => 'connection',
1256     type => 'int'
1257     }
1258     ],
1259     [
1260     'msg',
1261     {
1262     desc => 'This text may describe the item. You can use this message to explain the button\'s purpose to the player.',
1263     end => 'endmsg',
1264     name => 'description',
1265     type => 'text'
1266     }
1267     ]
1268 root 1.3 ],
1269     desc => 'When a predefined amount of weigh is placed on a button, the &lt;connection&gt; value is triggered. In most cases this happens when a player or monster steps on it. When the button is "released", the &lt;connection&gt; value get\'s triggered a second time.',
1270     ignore => [
1271     $IGNORE_LIST{non_pickable}
1272 root 1.5 ],
1273     name => 'Button'
1274 root 1.3 },
1275 root 1.9 'Button Trigger' => {
1276     desc => 'Handle buttons are buttons which reset after a short period of time. Every time it is either applied or reset, the &lt;connection&gt; value is triggered.',
1277     ignore => [
1278     $IGNORE_LIST{non_pickable}
1279     ],
1280     import => [
1281     $TYPE{Button}
1282     ],
1283     name => 'Button Trigger'
1284     },
1285     'Class Changer' => {
1286     attr => [
1287     [
1288     'randomitems',
1289     {
1290     desc => 'This entry determines which initial items the character receives.',
1291     name => 'class items',
1292     type => 'treasurelist'
1293     }
1294     ]
1295     ],
1296     desc => 'Class changer are used while creating a character.',
1297     ignore => [
1298     $IGNORE_LIST{non_pickable}
1299     ],
1300     name => 'Class Changer',
1301     section => [
1302     [
1303     'stats',
1304     [
1305     [
1306     'Str',
1307     {
1308     desc => 'The player\'s strength will rise by the given value if he chooses this class. (Negative values make strength fall)',
1309     name => 'strength',
1310     type => 'int'
1311     }
1312     ],
1313     [
1314     'Dex',
1315     {
1316     desc => 'The player\'s dexterity will rise by the given value if he chooses this class. (Negative values make dexterity fall)',
1317     name => 'dexterity',
1318     type => 'int'
1319     }
1320     ],
1321     [
1322     'Con',
1323     {
1324     desc => 'The player\'s constitution will rise by the given value if he chooses this class. (Negative values make constitution fall)',
1325     name => 'constitution',
1326     type => 'int'
1327     }
1328     ],
1329     [
1330     'Int',
1331     {
1332     desc => 'The player\'s intelligence will rise by the given value if he chooses this class. (Negative values make intelligence fall)',
1333     name => 'intelligence',
1334     type => 'int'
1335     }
1336     ],
1337     [
1338     'Pow',
1339     {
1340     desc => 'The player\'s power will rise by the given value if he chooses this class. (Negative values make power fall)',
1341     name => 'power',
1342     type => 'int'
1343     }
1344     ],
1345     [
1346     'Wis',
1347     {
1348     desc => 'The player\'s wisdom will rise by the given value if he chooses this class. (Negative values make wisdom fall)',
1349     name => 'wisdom',
1350     type => 'int'
1351     }
1352     ],
1353     [
1354     'Cha',
1355     {
1356     desc => 'The player\'s charisma will rise by the given value if he chooses this class. (Negative values make charisma fall)',
1357     name => 'charisma',
1358     type => 'int'
1359     }
1360     ]
1361     ]
1362     ]
1363     ]
1364     },
1365 root 1.3 Cloak => {
1366 root 1.7 attr => [
1367     [
1368     'magic',
1369     {
1370     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the cloak. Important: <magic bonus> on cloaks has no effect if there is no <armour class> set. It only works in combination with <armour class>.',
1371     name => 'magic bonus',
1372     type => 'int'
1373     }
1374     ]
1375     ],
1376 root 1.3 desc => 'Wearing a cloak, the object\'s stats will directly be inherited to the player. Cloaks usually add minor &lt;armour class&gt; and sometimes a bit of resistance.',
1377     import => [
1378     $TYPE{Amulet}
1379     ],
1380 root 1.5 name => 'Cloak',
1381 root 1.3 use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
1382     },
1383     Clock => {
1384 root 1.7 attr => [
1385     [
1386     'msg',
1387     {
1388     desc => 'This text may describe the item',
1389     end => 'endmsg',
1390     name => 'description',
1391     type => 'text'
1392     }
1393     ]
1394     ],
1395 root 1.5 desc => 'Applying a clock, the time is displayed to the player.',
1396     name => 'Clock'
1397 root 1.1 },
1398 root 1.3 Container => {
1399 root 1.7 attr => [
1400     [
1401     'race',
1402     {
1403     desc => 'If set, the container will hold only certain types of objects. Possible choices for <container class> are: "gold and jewels", "arrows" and "keys". Unfortunately it is not easy to create new container classes, because items need a matching counterpiece-attribute to the <container class> before they can be put inside a container. This attribute ("race") is set only for the existing container classes.',
1404     name => 'container class',
1405     type => 'string'
1406     }
1407     ],
1408     [
1409     'slaying',
1410     {
1411     desc => 'If <key string> is set, only players with a special key of matching <key string> are able to open the container.',
1412     name => 'key string',
1413     type => 'string'
1414     }
1415     ],
1416     [
1417     'container',
1418     {
1419     desc => 'The container can hold a maximum total weight of the given value in gram. Note that this weight limit is calculated *after* the weight reduction (<reduce weight>) has been applied.',
1420     name => 'maximum weight',
1421     type => 'int'
1422     }
1423     ],
1424     [
1425     'Str',
1426     {
1427     desc => 'This value determines how much the weight of items is reduced in percent, when put inside the container. <reduce weight %> 0 means no reduction, <reduce weight %> 100 means items are weightless inside. Most default values are in the range of ten.',
1428     name => 'reduce weight %',
1429     type => 'int'
1430     }
1431     ],
1432     [
1433     'is_cauldron',
1434     {
1435     desc => 'If set, the container can be used as alchemy-cauldron. The player can put ingredients inside, close it, cast alchemy and if his formulae is true, he\'ll get what he longed for.',
1436     name => 'alchemy cauldron',
1437     type => 'bool'
1438     }
1439     ],
1440     [
1441     'unique',
1442     {
1443     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good. All contents of a unique container are unique as well.',
1444     name => 'unique item',
1445     type => 'bool'
1446     }
1447     ],
1448     [
1449     'startequip',
1450     {
1451     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
1452     name => 'godgiven item',
1453     type => 'bool'
1454     }
1455     ],
1456     [
1457     'other_arch',
1458     {
1459     desc => 'This is used for a certain kind of... "animation" when opening the container. Stick to the default arches here and you won\'t get into trouble.',
1460     name => 'animation arch',
1461     type => 'string'
1462     }
1463     ],
1464     [
1465     'msg',
1466     {
1467     desc => 'This text may contain a description of the container.',
1468     end => 'endmsg',
1469     name => 'description',
1470     type => 'text'
1471     }
1472     ]
1473     ],
1474 root 1.3 desc => 'A player can put (certain kinds of) items in the container. The overall weight of items is reduced when put inside a container, depending on the settings. <br><br> A special feature of containers is the "cauldron", capable of mixing alchemical receipes.',
1475 root 1.5 name => 'Container',
1476 root 1.3 use => 'Note on chests - There are two types of chests: <UL> <LI> First the random treasure chests - Those are NOT containers (but object type Treasure), they create random treasures when applied. Archetype name is "chest". <LI> Second there are the permanent chests - Those are containers, they can be opened and closed again. Archetype name is "chest_2". </UL>'
1477     },
1478     Converter => {
1479 root 1.7 attr => [
1480     [
1481     'no_pick',
1482     {
1483     type => 'fixed',
1484     value => 1
1485     }
1486     ],
1487     [
1488     'slaying',
1489     {
1490     desc => '<cost arch> is the name of the archetype the player has to put on the converter, as payment.',
1491     name => 'cost arch',
1492     type => 'string'
1493     }
1494     ],
1495     [
1496     'food',
1497     {
1498     desc => 'The player has to put <cost number> items of <cost arch> on the converter, in order to get <receive number> items of <receive arch>.',
1499     name => 'cost number',
1500     type => 'int'
1501     }
1502     ],
1503     [
1504     'other_arch',
1505     {
1506 root 1.8 desc => '<receive arch> is the name of the archetype to convert into. This field is ignored if the converter has items in inventory. In this case one of the inventory items is duplicated. The duplicated item is randomly chosen from all items present.',
1507 root 1.7 name => 'receive arch',
1508     type => 'string'
1509     }
1510     ],
1511     [
1512     'sp',
1513     {
1514     desc => 'The player has to put <cost number> items of <cost arch> on the converter, in order to get <receive number> items of <receive arch>.',
1515     name => 'receive number',
1516     type => 'int'
1517     }
1518     ],
1519     [
1520     'msg',
1521     {
1522     desc => 'This text may contain a description of the converter.',
1523     end => 'endmsg',
1524     name => 'description',
1525     type => 'text'
1526     }
1527     ]
1528     ],
1529 root 1.3 desc => 'Converters are like "exchange tables". When the player drops a specific type of items, they get converted into other items, at a predefined exchange-ratio.',
1530     ignore => [
1531     'value',
1532     'nrof',
1533     'name_pl',
1534     'no_pick',
1535     'unpaid',
1536     'title'
1537     ],
1538 root 1.5 name => 'Converter',
1539 root 1.3 use => 'Converters are better than shopping with doormats, because the converters never get sold out. For some items like food or jewels those "exchange tables" are really nice, while for the more important stuff like potions converters should not exist. <br><br> VERY IMPORTANT: Be careful with the exchange-ratio! When you drop items on a converter, the stuff you get must be of equal or lesser value than before! (Except if you are using "rare" items like dragonscales for payment). The code will not check if your ratio is sane, so the player could gain infinite wealth by using your converter.'
1540     },
1541     Creator => {
1542 root 1.7 attr => [
1543     [
1544     'no_pick',
1545     {
1546     type => 'fixed',
1547     value => 1
1548     }
1549     ],
1550     [
1551     'other_arch',
1552     {
1553 root 1.8 desc => 'This string defines the object that will be created. You can choose any of the existing arches. This field is ignored if the creator has items in inventory. In this case one of the inventory items is duplicated. The duplicated item is randomly chosen from all items present.',
1554 root 1.7 name => 'create arch',
1555     type => 'string'
1556     }
1557     ],
1558     [
1559     'connected',
1560     {
1561     desc => 'Whenever the connection value is activated, the creator gets triggered.',
1562     name => 'connection',
1563     type => 'int'
1564     }
1565     ],
1566     [
1567     'lifesave',
1568     {
1569 root 1.9 desc => 'If <infinit uses> is set, the creator will work infinitely, regardless of the value in <number of uses>.',
1570 root 1.7 name => 'infinit uses',
1571     type => 'bool'
1572     }
1573     ],
1574     [
1575     'hp',
1576     {
1577     desc => 'The creator can be triggered <number of uses> times, thus creating that many objects, before it dissappears. Default is <number of uses> 1 (-> one-time usage).',
1578     name => 'number of uses',
1579     type => 'int'
1580     }
1581     ],
1582     [
1583     'slaying',
1584     {
1585 root 1.8 desc => 'The created object will bear the name and title specified in <name of creation>. If nothing is set, the standard name and title of the archetype is used.',
1586 root 1.7 name => 'name of creation',
1587     type => 'string'
1588     }
1589     ],
1590     [
1591     'level',
1592     {
1593     desc => 'The created object will be of that level. If zero/unset, the standard level of the archetype is used.',
1594     name => 'level of creation',
1595     type => 'int'
1596     }
1597     ]
1598     ],
1599 root 1.3 desc => 'A creator is an object which creates another object when it is triggered. The child object can be anything. Creators are VERY useful for all kinds of map-mechanisms.',
1600     ignore => [
1601     $IGNORE_LIST{system_object}
1602     ],
1603 root 1.5 name => 'Creator',
1604 root 1.3 use => 'Don\'t hesitate to hide your creators under the floor. The created items will still always appear ontop of the floor.'
1605     },
1606     Detector => {
1607 root 1.7 attr => [
1608     [
1609     'no_pick',
1610     {
1611     type => 'fixed',
1612     value => 1
1613     }
1614     ],
1615     [
1616     'slaying',
1617     {
1618     desc => '<match name> specifies the name of the object we are looking for. Actually it does also check for the <key string> in key-objects, but for this case inventory checkers are often more powerful to use.',
1619     name => 'match name',
1620     type => 'string'
1621     }
1622     ],
1623     [
1624     'connected',
1625     {
1626     desc => 'When the detector is triggered, all objects with the same connection value get activated.',
1627     name => 'connection',
1628     type => 'int'
1629     }
1630     ],
1631     [
1632     'speed',
1633     {
1634     desc => 'This value defines the time between two detector-checks. If you want the detector to behave almost like pedestals/buttons, set speed rather high, like <detection speed> 1.0.',
1635     name => 'detection speed',
1636     type => 'float'
1637     }
1638 root 1.17 ],
1639     [
1640     'speed_left',
1641     {
1642     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
1643     name => 'speed left',
1644     type => 'float'
1645     }
1646     ],
1647     [
1648     'speed_left',
1649     {
1650     desc => 'The speed left. This value is incremented by <speed> on every tick. If it is larger than 0, the detector checks, and the speed is decremented by 1.',
1651     name => 'speed left',
1652     type => 'float'
1653     }
1654 root 1.7 ]
1655     ],
1656 root 1.3 desc => 'Detectors work quite much like inv. checkers/pedestals: If the detector finds a specific object, it toggles its connected value. <br><br> What is "unique" about them, compared to inv. checkers/ pedestals? - First, detectors check their square for a match periodically, not instantly. Second, detectors check directly for object names. Third, detectors do not check the inventory of players/monsters.',
1657     ignore => [
1658     $IGNORE_LIST{system_object}
1659     ],
1660 root 1.5 name => 'Detector',
1661 root 1.3 use => 'There is one major speciality about detectors: You can detect spells blown over a detector! To detect a lighting bolt for example, set "slaying ligthing" and "speed 1.0". In combination with spellcasting walls, this can be very useful for map-mechanisms.'
1662     },
1663     Director => {
1664 root 1.7 attr => [
1665     [
1666     'sp',
1667     {
1668     desc => 'Projectiles will leave the director flying in the selected <direction>. A director with direction <none> simply stops projectiles. (The latter works out a bit strange for some spells).',
1669     name => 'direction',
1670     type => 'list',
1671     value => $LIST{direction}
1672     }
1673     ],
1674     [
1675 root 1.14 'move_on',
1676 root 1.7 {
1677 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
1678     name => 'movement type',
1679     type => 'bitmask',
1680     value => $BITMASK{movement_type}
1681 root 1.7 }
1682     ]
1683     ],
1684 root 1.3 desc => 'Directors change the direction of spell objects and other projectiles that fly past. Unlike spinners, directors always move objects in the same direction. It does not make a difference from what angle you shoot into it.<br> Directors are visible per default.',
1685     ignore => [
1686     $IGNORE_LIST{non_pickable}
1687     ],
1688 root 1.5 name => 'Director',
1689 root 1.3 use => 'Directors are rarely used in maps. Sometimes they are placed to change the direction of spells coming out of magic walls, "channeling" spell-projectiles in some direction. When doing this, <B>never place directors facing each other with magic walls fireing into them!</B> The spell-projectiles bouncing between the directors would accumulate to huge numbers and at some point slow down the server by eating memory- and CPU-time. <br><br> You\'d better not place directors in monster vs. player combat areas too much, because that freaks out wizard-type players.'
1690     },
1691     Disease => {
1692 root 1.7 attr => [
1693     [
1694     'invisible',
1695     {
1696     type => 'fixed',
1697     value => 1
1698     }
1699     ],
1700     [
1701     'level',
1702     {
1703     desc => 'The <plaque level> is proportional to the disease\'s deadliness. This mainly reflects in the <damage>. It has no effect on most other symptoms. Neverthless, it is a very important value for all damage-inflicting diseases.',
1704     name => 'plaque level',
1705     type => 'int'
1706     }
1707     ],
1708     [
1709     'race',
1710     {
1711     desc => 'The disease will only infect creatures of the specified <race>. "<race> *" means every creature can be infected.',
1712     name => 'infect race',
1713     type => 'string'
1714     }
1715     ],
1716     [
1717     'ac',
1718     {
1719     desc => 'Every time the disease "moves" the severity of the symptoms are increased by <progressiveness>/100. (severity = 1 + (accumlated progression)/100)',
1720     name => 'progressiveness',
1721     type => 'int'
1722     }
1723     ],
1724     [
1725     'msg',
1726     {
1727     desc => 'This text is displayed to the player every time the symptoms strike.',
1728     end => 'endmsg',
1729     name => 'message',
1730     type => 'text'
1731     }
1732     ]
1733     ],
1734 root 1.3 desc => 'Diseases are an intersting form of spellcraft in Crossfire. Once casted, they can spread out and infect creatures in a large area. Being infected can have various effects, from amusing farts to horrible damage - almost everything is possible.',
1735     ignore => [
1736     $IGNORE_LIST{system_object}
1737     ],
1738 root 1.5 name => 'Disease',
1739 root 1.4 section => [
1740     [
1741     'spreading',
1742 root 1.7 [
1743     [
1744     'wc',
1745     {
1746     desc => 'The <infectiosness> defines the chance of new creatures getting infected. If you set this too high, the disease is very likely to be too effective. <infectiosness>/127 is the chance of someone in range catching it.',
1747     name => 'infectiosness',
1748     type => 'int'
1749     }
1750     ],
1751     [
1752     'last_grace',
1753     {
1754     desc => 'The <attenuation> value reduces the diseases\' <infectiosness> everytime it infects someone new. This limits how many generations a disease can propagate.',
1755     name => 'attenuation',
1756     type => 'int'
1757     }
1758     ],
1759     [
1760     'magic',
1761     {
1762     desc => '<infection range> sets the range at which infection may occur. If positive, the <infection range> is level dependant - If negative, it is not: E.g. "<infection range> -6" means creatures can be infected in six square range, and <plaque level> doesn\'t modify that.',
1763     name => 'infection range',
1764     type => 'int'
1765     }
1766     ],
1767     [
1768     'maxhp',
1769     {
1770     desc => '<persistence> defines how long the disease can persist OUTSIDE a host. The disease can "move" <persistence> times outside a host before it vanishes. A negative value means the disease lasts for permanent (which is only recommended to use in maps without monsters).',
1771     name => 'persistence',
1772     type => 'int'
1773     }
1774     ],
1775     [
1776     'maxgrace',
1777     {
1778     desc => 'The disease will last in the host for <curing duration> "disease moves" (Assuming the host survives and doesn\'t use a curing spell). After this period the disease is naturally cured, which provides the host with immunity from this particular disease of lower or equal level. A negative value means the disease can never be cured naturally. Note that this value can be further modulated by spell-parameters, if the disease is registered as spell in the code. Due to that, most default diseases take a lot longer to cure than it seems.',
1779     name => 'curing duration',
1780     type => 'int'
1781     }
1782     ],
1783     [
1784     'speed',
1785     {
1786     desc => 'The <speed> of the disease determines how fast the disease will "move", thus how fast the symptoms strike the host.',
1787     name => 'moving speed',
1788     type => 'float'
1789     }
1790 root 1.17 ],
1791     [
1792     'speed_left',
1793     {
1794     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
1795     name => 'speed left',
1796     type => 'float'
1797     }
1798 root 1.7 ]
1799     ]
1800     ],
1801     [
1802     'symptoms',
1803     [
1804     [
1805     'attacktype',
1806     {
1807     desc => 'The disease will attack the host with the given <attacktype>. Godpower attacktype is commonly used for "unresistable" diseases.',
1808     name => 'attacktype',
1809     type => 'bitmask',
1810     value => $BITMASK{attacktype}
1811     }
1812     ],
1813     [
1814     'dam',
1815     {
1816     desc => 'A disease with a positive <damage> value will strike the player for that amount of damage every time the symptoms occur. A negative <damage> value produces %-based damage: "<damage> -10" means the player\'s health is reduced by 10% every time the symptoms strike. Diseases with %-based damage can be dangerous - but not deadly - for players of all levels.',
1817     name => 'damage',
1818     type => 'int'
1819     }
1820     ],
1821     [
1822     'other_arch',
1823     {
1824     desc => 'If set, the specified arch is created and dropped every time the symptoms strike. This can be various things: farts, body pieces, eggs ... Even monsters can be created that way. You could also make a disease where some exotic stuff like money/gems is created.',
1825     name => 'create arch',
1826     type => 'string'
1827     }
1828     ],
1829     [
1830     'last_sp',
1831     {
1832     desc => 'If set, the disease imposes a <slowdown penalty> while being infected. The player\'s speed is reduced by <slowdown penalty> % of normal value.',
1833     name => 'slowdown penalty',
1834     type => 'int'
1835     }
1836     ],
1837     [
1838     'exp',
1839     {
1840     desc => 'When the player manages to cure this disease (with a curing spell), he is awarded with <exp. for curing> experience.',
1841     name => 'exp. for curing',
1842     type => 'int'
1843     }
1844     ],
1845     [
1846     'maxsp',
1847     {
1848     desc => 'Every time the disease "moves", the player\'s mana is reduced by the value of <mana depletion>. For negative values, a %-based amount is taken.',
1849     name => 'mana depletion',
1850     type => 'int'
1851     }
1852     ],
1853     [
1854     'last_eat',
1855     {
1856     desc => 'Every time the disease "moves", the player\'s food is reduced by the value of <food depletion>. For negative values, a %-based amount is taken.',
1857     name => 'food depletion',
1858     type => 'int'
1859     }
1860     ],
1861     [
1862     'hp',
1863     {
1864     desc => 'This value increases the player\'s healing rate. Negative values decrease it.',
1865     name => 'health regen.',
1866     type => 'int'
1867     }
1868     ],
1869     [
1870     'sp',
1871     {
1872     desc => 'This value increases the player\'s rate of mana regeneration. Negative values decrease it.',
1873     name => 'mana regen.',
1874     type => 'int'
1875     }
1876     ]
1877     ]
1878     ],
1879     [
1880     'disability',
1881     [
1882     [
1883     'Str',
1884     {
1885     desc => 'The player\'s strength will rise by the given value while being infected. (Negative values make strength fall)',
1886     name => 'strength',
1887     type => 'int'
1888     }
1889     ],
1890     [
1891     'Dex',
1892     {
1893     desc => 'The player\'s dexterity will rise by the given value while being infected. (Negative values make dexterity fall)',
1894     name => 'dexterity',
1895     type => 'int'
1896     }
1897     ],
1898     [
1899     'Con',
1900     {
1901     desc => 'The player\'s constitution will rise by the given value while being infected. (Negative values make constitution fall)',
1902     name => 'constitution',
1903     type => 'int'
1904     }
1905     ],
1906     [
1907     'Int',
1908     {
1909     desc => 'The player\'s intelligence will rise by the given value while being infected. (Negative values make intelligence fall)',
1910     name => 'intelligence',
1911     type => 'int'
1912     }
1913     ],
1914     [
1915     'Pow',
1916     {
1917     desc => 'The player\'s power will rise by the given value while being infected. (Negative values make power fall)',
1918     name => 'power',
1919     type => 'int'
1920     }
1921     ],
1922     [
1923     'Wis',
1924     {
1925     desc => 'The player\'s wisdom will rise by the given value while being infected. (Negative values make wisdom fall)',
1926     name => 'wisdom',
1927     type => 'int'
1928     }
1929     ],
1930     [
1931     'Cha',
1932     {
1933     desc => 'The player\'s charisma will rise by the given value while being infected. (Negative values make charisma fall)',
1934     name => 'charisma',
1935     type => 'int'
1936     }
1937     ]
1938     ]
1939     ]
1940     ],
1941     use => 'Diseases are extremely flexible and usable in a many ways. So far they are mostly used for causing bad, unwanted effects. You could just as well create a disease which helps the player (recharging mana for example). Infection with a "positive disease" could even be a quest reward.'
1942     },
1943 root 1.9 Door => {
1944     attr => [
1945     [
1946     'no_pick',
1947     {
1948     type => 'fixed',
1949     value => 1
1950     }
1951     ],
1952     [
1953     'alive',
1954     {
1955     type => 'fixed',
1956     value => 1
1957     }
1958     ],
1959     [
1960 root 1.14 'move_block',
1961 root 1.9 {
1962 root 1.14 desc => 'Objects using these movement types cannot move over this space.',
1963     name => 'blocked movement',
1964     type => 'bitmask',
1965     value => $BITMASK{movement_type}
1966     }
1967     ],
1968     [
1969     'move_allow',
1970     {
1971     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
1972     name => 'allowed movement',
1973     type => 'bitmask',
1974     value => $BITMASK{movement_type}
1975     }
1976     ],
1977     [
1978     'move_slow',
1979     {
1980     desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
1981     name => 'slowed movement',
1982     type => 'bitmask',
1983     value => $BITMASK{movement_type}
1984     }
1985     ],
1986     [
1987     'move_slow_penalty',
1988     {
1989     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
1990     name => 'slow movement penalty',
1991     type => 'int'
1992 root 1.9 }
1993     ],
1994     [
1995     'hp',
1996     {
1997     desc => 'The more <hitpoints> the door has, the longer it takes to be broken.',
1998     name => 'hitpoints',
1999     type => 'int'
2000     }
2001     ],
2002     [
2003     'ac',
2004     {
2005     desc => 'Doors of high <armour class> are less likely to get hit. <armour class> can be considered the "counterpiece" to <weapon class>.',
2006     name => 'armour class',
2007     type => 'int'
2008     }
2009     ],
2010     [
2011     'other_arch',
2012     {
2013     desc => 'This string defines the object that will be created when the door was defeated.',
2014     name => 'drop arch',
2015     type => 'string'
2016     }
2017     ],
2018     [
2019     'randomitems',
2020     {
2021     desc => 'This entry determines what kind of traps will appear in the door.',
2022     name => 'treasurelist',
2023     type => 'treasurelist'
2024     }
2025     ]
2026     ],
2027     desc => 'A door can be opened with a normal key. It also can be broken by attacking it, and it can be defeated with the lockpicking skill. If a door is defeated, horizontally and vertically adjacent doors are automatically removed.',
2028     ignore => [
2029     $IGNORE_LIST{non_pickable}
2030     ],
2031     name => 'Door'
2032     },
2033 root 1.7 Duplicator => {
2034     attr => [
2035     [
2036     'other_arch',
2037 root 1.4 {
2038 root 1.7 desc => 'Only objects of matching archtype, lying ontop of the dublicator will be dublicated, multiplied or removed. All other objects will be ignored.',
2039     name => 'target arch',
2040     type => 'string'
2041 root 1.4 }
2042     ],
2043     [
2044 root 1.7 'level',
2045 root 1.4 {
2046 root 1.7 desc => 'The number of items in the target pile will be multiplied by the <multiply factor>. If it is set to zero, all target objects will be destroyed.',
2047     name => 'multiply factor',
2048     type => 'int'
2049 root 1.4 }
2050     ],
2051     [
2052 root 1.7 'connected',
2053 root 1.4 {
2054 root 1.7 desc => 'An activator (lever, altar, button, etc) with matching connection value is able to trigger this duplicator. Be very careful that players cannot abuse it to create endless amounts of money or other valuable stuff!',
2055     name => 'connection',
2056     type => 'int'
2057 root 1.4 }
2058     ]
2059     ],
2060 root 1.3 desc => 'When activated, a duplicator can duplicate, multiply or destroy a pile of objects which lies somewhere on top of the duplicator. The duplicator has one arch name specified as &lt;target arch&gt;, and only objects of this archetype can be affected.<br> It will multiply the number of items in the pile, by the &lt;multiply factor&gt;. If the latter is set to zero, it will destroy objects.',
2061     ignore => [
2062     $IGNORE_LIST{system_object}
2063     ],
2064 root 1.5 name => 'Duplicator',
2065 root 1.3 use => 'I hope it is clear that one must be very cautious when inserting a duplicator anywhere with &lt;multiply factor&gt; greater than one. It is designed to be used for betting mechanisms only (bet -&gt; win/loose). It is <b>not acceptable</b> to allow duplication of anything other than coins, gold and jewels. Besides, it is very important that the chance to loose the input matches the chance to earn winnings.<br> A duplicator with &lt;multiply factor&gt; 3 for example should have a loosing rate of 2/3 = 67%.'
2066     },
2067 root 1.10 'Event Connector' => {
2068     attr => [
2069     [
2070     'subtype',
2071     {
2072     desc => 'The type of event that triggers a notify to the plug-in.',
2073     name => 'event type',
2074     type => 'list',
2075     value => $LIST{event_type}
2076     }
2077     ],
2078     [
2079     'title',
2080     {
2081     desc => 'The name of the plug-in that should be notified of the event, e.g. "cfpython" for python and "perl" for the Crossfire-Perl plug-in.',
2082     name => 'plug-in',
2083 root 1.11 type => 'string'
2084 root 1.10 }
2085     ],
2086     [
2087     'slaying',
2088     {
2089     desc => 'The name of the extension to invoke (for python, this is the path to a script, for perl this is the name of a extension package without the ".ext" extension.',
2090     name => 'extension',
2091 root 1.11 type => 'string'
2092 root 1.10 }
2093     ],
2094     [
2095     'name',
2096     {
2097     desc => 'A string that is passed unaltered to the extension above. Often used to pass options to the extension that alter its behaviour.',
2098     name => 'options',
2099 root 1.11 type => 'string'
2100 root 1.10 }
2101     ]
2102     ],
2103     desc => 'Event connectors link specific events that happen to objects to a crossfire plug-in.',
2104     name => 'Event Connector'
2105     },
2106 root 1.3 Exit => {
2107 root 1.7 attr => [
2108     [
2109     'slaying',
2110     {
2111     desc => 'The exit path defines the map that the player is transferred to. You can enter an absolute path, beginning with \'/\' (for example "/peterm/FireTemple/fire1"). It can also be a relative path, not beginning with \'/\' (On the map "/peterm/FireTemple/Fire2" for example I could use the relative path "Fire1"). Use relative paths whenever possible! Note that upper/lower case must always be set correctly. However, please use lower case only. It is well possible to have an exit pointing to the same map that the exit is on. If slaying is not set in an exit, the player will see a message like "the exit is closed".',
2112     name => 'exit path',
2113     type => 'string'
2114     }
2115     ],
2116     [
2117     'hp',
2118     {
2119     desc => 'The exit destinations define the (x, y)-coordinates where the exit leads to. If both are set to zero, the player will be transferred to the "default enter location" of the destined map. The latter can be set in the map- properties as "Enter X/Y". Though, please DO NOT use that. It turned out to be a source for numerous map-bugs.',
2120     name => 'destination X',
2121     type => 'int'
2122     }
2123     ],
2124     [
2125     'sp',
2126     {
2127     desc => 'The exit destinations define the (x, y)-coordinates where the exit leads to. If both are set to zero, the player will be transferred to the "default enter location" of the destined map. The latter can be set in the map- properties as "Enter X/Y". Though, please DO NOT use that. It turned out to be a source for numerous map-bugs.',
2128     name => 'destination Y',
2129     type => 'int'
2130     }
2131     ],
2132     [
2133 root 1.14 'move_on',
2134 root 1.7 {
2135 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
2136     name => 'movement type',
2137     type => 'bitmask',
2138     value => $BITMASK{movement_type}
2139 root 1.7 }
2140     ],
2141     [
2142     'msg',
2143     {
2144     desc => 'If set, this message will be displayed to the player when he applies the exit. This is quite useful to throw in some "role-play feeling": "As you enter the dark cave you hear the sound of rustling dragonscales...". Well, my english is poor, but you get the point. =)',
2145     end => 'endmsg',
2146     name => 'exit message',
2147     type => 'text'
2148     }
2149     ],
2150     [
2151     'unique',
2152     {
2153     desc => 'This flag defines the destined map as "personal unique map". If set, there will be a seperate version of that map for every player out there. This feature is used for the permanent apartments (in Scorn/Nuernberg/Caterham...). It should not be used for anything else than apartments, since Crossfire is a *multi*player game. In such a permanent apartment don\'t forget to set the unique-flag for all floor tiles too (see floors). An exit pointing outside of a personal unique map must have the "unique destination"-flag unset.',
2154     name => 'unique destination',
2155     type => 'bool'
2156     }
2157     ]
2158     ],
2159 root 1.3 desc => 'When the player applies an exit, he is transferred to a different location. (Monsters cannot use exits.) Depending on how it is set, the player applies the exit just by walking into it, or by pressing &lt;a&gt;pply when standing on the exit.',
2160     ignore => [
2161     $IGNORE_LIST{non_pickable}
2162     ],
2163 root 1.5 name => 'Exit',
2164 root 1.3 use => 'If you want to have an invisible exit, set &lt;invisible&gt; (, of course &lt;apply by walking&gt;), and put it *under* the floor. Otherwise it could be detected with the show_invisible spell. <br><br> You can be quite creative with the outlook of secret exits (their "face"). Don\'t forget to give the player relyable hints about them though.'
2165     },
2166     Flesh => {
2167 root 1.7 attr => [
2168     [
2169     'food',
2170     {
2171     desc => 'The player\'s stomache will get filled with this amount of foodpoints. The player\'s health will increase by <foodpoints>/50 hp.',
2172     name => 'foodpoints',
2173     type => 'int'
2174     }
2175     ],
2176     [
2177     'level',
2178     {
2179     desc => 'The <flesh level> is not visible to the players and it affects only dragon players. Normally this value reflects the level of the monster from which the flesh item originates. Dragon players always search for flesh of highest level possible, because it bears the best chance to gain high resistances.',
2180     name => 'flesh level',
2181     type => 'int'
2182     }
2183     ],
2184     [
2185     'startequip',
2186     {
2187     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
2188     name => 'godgiven item',
2189     type => 'bool'
2190     }
2191     ],
2192     [
2193     'msg',
2194     {
2195     desc => 'This text may describe the item.',
2196     end => 'endmsg',
2197     name => 'description',
2198     type => 'text'
2199     }
2200     ]
2201     ],
2202 root 1.17 desc => 'Just like with food, the player can fill his stomache and gain a little health by eating flesh-objects. <br> For dragon players, flesh plays a very special role though: If the flesh has resistances set, a dragon player has a chance to gain resistance in those categories. The only constraint to this process is the &lt;flesh level&gt;. Don\'t forget that flesh items with resistances have to be balanced according to map/monster difficulty.',
2203 root 1.5 name => 'Flesh',
2204 root 1.4 section => [
2205     [
2206     'resistance',
2207 root 1.7 [
2208     [
2209     'resist_physical',
2210     {
2211     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2212     name => 'resist physical %',
2213     type => 'int'
2214     }
2215     ],
2216     [
2217     'resist_magic',
2218     {
2219     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2220     name => 'resist magic %',
2221     type => 'int'
2222     }
2223     ],
2224     [
2225     'resist_fire',
2226     {
2227     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2228     name => 'resist fire %',
2229     type => 'int'
2230     }
2231     ],
2232     [
2233     'resist_electricity',
2234     {
2235     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2236     name => 'resist electricity %',
2237     type => 'int'
2238     }
2239     ],
2240     [
2241     'resist_cold',
2242     {
2243     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2244     name => 'resist cold %',
2245     type => 'int'
2246     }
2247     ],
2248     [
2249     'resist_confusion',
2250     {
2251     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2252     name => 'resist confusion %',
2253     type => 'int'
2254     }
2255     ],
2256     [
2257     'resist_acid',
2258     {
2259     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2260     name => 'resist acid %',
2261     type => 'int'
2262     }
2263     ],
2264     [
2265     'resist_drain',
2266     {
2267     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2268     name => 'resist draining %',
2269     type => 'int'
2270     }
2271     ],
2272     [
2273     'resist_weaponmagic',
2274     {
2275     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2276     name => 'resist weaponmagic %',
2277     type => 'int'
2278     }
2279     ],
2280     [
2281     'resist_ghosthit',
2282     {
2283     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2284     name => 'resist ghosthit %',
2285     type => 'int'
2286     }
2287     ],
2288     [
2289     'resist_poison',
2290     {
2291     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2292     name => 'resist poison %',
2293     type => 'int'
2294     }
2295     ],
2296     [
2297     'resist_slow',
2298     {
2299     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2300     name => 'resist slow %',
2301     type => 'int'
2302     }
2303     ],
2304     [
2305     'resist_paralyze',
2306     {
2307     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2308     name => 'resist paralyze %',
2309     type => 'int'
2310     }
2311     ],
2312     [
2313     'resist_fear',
2314     {
2315     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2316     name => 'resist fear %',
2317     type => 'int'
2318     }
2319     ],
2320     [
2321     'resist_deplete',
2322     {
2323     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2324     name => 'resist depletion %',
2325     type => 'int'
2326     }
2327     ],
2328     [
2329     'resist_death',
2330     {
2331     desc => 'RResistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2332     name => 'resist death-attack %',
2333     type => 'int'
2334     }
2335     ],
2336     [
2337     'resist_chaos',
2338     {
2339     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2340     name => 'resist chaos %',
2341     type => 'int'
2342     }
2343     ],
2344     [
2345     'resist_blind',
2346     {
2347     desc => 'Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster\'s inventory.',
2348     name => 'resist blinding %',
2349     type => 'int'
2350     }
2351     ]
2352     ]
2353 root 1.4 ]
2354     ],
2355 root 1.3 use => 'For dragon players, flesh items can be highly valuable. Note that many standard monsters carry flesh items from their &lt;treasurelist&gt;. These flesh items "inherit" resistances and level from the monster they belong to. When you add special flesh items to the inventory of a monster, this is not the case - so you have to set it manually. <br><br> Generally adding special flesh-treaties for dragon players is a great thing to do. Always consider that dragon players might really not be interested in that special piece of weapon or armour, so don\'t let the dragon-fellows miss out on the reward completely.'
2356     },
2357     Floor => {
2358 root 1.7 attr => [
2359     [
2360     'is_floor',
2361     {
2362     type => 'fixed',
2363     value => 1
2364     }
2365     ],
2366     [
2367     'no_pick',
2368     {
2369     type => 'fixed',
2370     value => 1
2371     }
2372     ],
2373     [
2374     'no_magic',
2375     {
2376     desc => 'If enabled, it is impossible for players to use (wizard-) spells on that spot.',
2377     name => 'no spells',
2378     type => 'bool'
2379     }
2380     ],
2381     [
2382     'damned',
2383     {
2384     desc => 'If enabled, it is impossible for players to use prayers on that spot. It also prevents players from saving.',
2385     name => 'no prayers',
2386     type => 'bool'
2387     }
2388     ],
2389     [
2390     'unique',
2391     {
2392     desc => 'Unique floor means that any items dropped on that spot will be saved byond map reset. For permanent apartments, all floor tiles must be set <unique map>.',
2393     name => 'unique map',
2394     type => 'bool'
2395     }
2396     ],
2397     [
2398     'msg',
2399     {
2400     desc => 'This text may describe the object.',
2401     end => 'endmsg',
2402     name => 'description',
2403     type => 'text'
2404     }
2405     ]
2406     ],
2407 root 1.3 desc => 'Floor is a very basic thing whithout too much functionality. It\'s a floor - you stand on it.',
2408     ignore => [
2409     $IGNORE_LIST{non_pickable}
2410     ],
2411 root 1.5 name => 'Floor',
2412 root 1.4 section => [
2413     [
2414     'terrain',
2415 root 1.7 [
2416     [
2417 root 1.14 'move_block',
2418     {
2419     desc => 'Objects using these movement types cannot move over this space.',
2420     name => 'blocked movement',
2421     type => 'bitmask',
2422     value => $BITMASK{movement_type}
2423     }
2424     ],
2425     [
2426     'move_allow',
2427     {
2428     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
2429     name => 'allowed movement',
2430     type => 'bitmask',
2431     value => $BITMASK{movement_type}
2432     }
2433     ],
2434     [
2435     'move_slow',
2436     {
2437     desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
2438     name => 'slowed movement',
2439     type => 'bitmask',
2440     value => $BITMASK{movement_type}
2441     }
2442     ],
2443     [
2444     'move_slow_penalty',
2445 root 1.7 {
2446 root 1.14 desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
2447     name => 'slow movement penalty',
2448 root 1.7 type => 'int'
2449     }
2450     ],
2451     [
2452     'is_wooded',
2453     {
2454     desc => 'This flag indicates this spot contains wood or high grass. Players with activated woodsman skill can move faster here.',
2455     name => 'wooded terrain',
2456     type => 'bool'
2457     }
2458     ],
2459     [
2460     'is_hilly',
2461     {
2462     desc => 'This flag indicates this spot contains hills or large rocks. Players with activated mountaineer skill can move faster here.',
2463     name => 'hilly terrain',
2464     type => 'bool'
2465     }
2466     ]
2467     ]
2468 root 1.4 ]
2469     ]
2470 root 1.3 },
2471     'Floor (Encounter)' => {
2472 root 1.7 attr => [
2473     [
2474     'is_floor',
2475     {
2476     type => 'fixed',
2477     value => 1
2478     }
2479     ],
2480     [
2481     'no_pick',
2482     {
2483     type => 'fixed',
2484     value => 1
2485     }
2486     ],
2487     [
2488     'no_magic',
2489     {
2490     desc => 'If enabled, it is impossible for players to use (wizard-) spells on that spot.',
2491     name => 'no spells',
2492     type => 'bool'
2493     }
2494     ],
2495     [
2496     'damned',
2497     {
2498     desc => 'If enabled, it is impossible for players to use prayers on that spot. It also prevents players from saving.',
2499     name => 'no prayers',
2500     type => 'bool'
2501     }
2502     ],
2503     [
2504     'unique',
2505     {
2506     desc => 'Unique floor means that any items dropped on that spot will be saved byond map reset. For permanent apartments, all floor tiles must be set <unique map>.',
2507     name => 'unique map',
2508     type => 'bool'
2509     }
2510     ],
2511     [
2512     'msg',
2513     {
2514     desc => 'This text may describe the object.',
2515     end => 'endmsg',
2516     name => 'description',
2517     type => 'text'
2518     }
2519     ]
2520     ],
2521 root 1.3 desc => 'Encounter-Floor is pretty much the same as normal floor. Most outdoor floor/ground-arches are set to be "encounters". That is kind of a relict from former code: When walking over encounter-floor, players sometimes got beamed to little maps with monsters on them. Nowadays this feature is disabled - Hence encounter floor is not different from normal floor.',
2522     ignore => [
2523     $IGNORE_LIST{non_pickable}
2524 root 1.4 ],
2525 root 1.5 name => 'Floor (Encounter)',
2526 root 1.4 section => [
2527     [
2528     'terrain',
2529 root 1.7 [
2530     [
2531 root 1.14 'move_block',
2532     {
2533     desc => 'Objects using these movement types cannot move over this space.',
2534     name => 'blocked movement',
2535     type => 'bitmask',
2536     value => $BITMASK{movement_type}
2537     }
2538     ],
2539     [
2540     'move_allow',
2541 root 1.7 {
2542 root 1.14 desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
2543     name => 'allowed movement',
2544     type => 'bitmask',
2545     value => $BITMASK{movement_type}
2546     }
2547     ],
2548     [
2549     'move_slow',
2550     {
2551     desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
2552     name => 'slowed movement',
2553     type => 'bitmask',
2554     value => $BITMASK{movement_type}
2555     }
2556     ],
2557     [
2558     'move_slow_penalty',
2559     {
2560     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
2561     name => 'slow movement penalty',
2562 root 1.7 type => 'int'
2563     }
2564     ],
2565     [
2566     'is_wooded',
2567     {
2568     desc => 'This flag indicates this spot contains wood or high grass. Players with activated woodsman skill can move faster here.',
2569     name => 'wooded terrain',
2570     type => 'bool'
2571     }
2572     ],
2573     [
2574     'is_hilly',
2575     {
2576     desc => 'This flag indicates this spot contains hills or large rocks. Players with activated mountaineer skill can move faster here.',
2577     name => 'hilly terrain',
2578     type => 'bool'
2579     }
2580     ]
2581     ]
2582 root 1.4 ]
2583 root 1.3 ]
2584     },
2585     Food => {
2586 root 1.7 attr => [
2587     [
2588     'food',
2589     {
2590     desc => 'The player\'s stomache will get filled with this amount of foodpoints. The player\'s health will increase by <foodpoints>/50 hp.',
2591     name => 'foodpoints',
2592     type => 'int'
2593     }
2594     ],
2595     [
2596     'startequip',
2597     {
2598     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
2599     name => 'godgiven item',
2600     type => 'bool'
2601     }
2602     ]
2603     ],
2604 root 1.5 desc => 'By eating/drinking food-objects, the player can fill his stomache and gain a little health.',
2605     name => 'Food'
2606 root 1.1 },
2607 root 1.3 Gate => {
2608 root 1.7 attr => [
2609     [
2610     'no_pick',
2611     {
2612     type => 'fixed',
2613     value => 1
2614     }
2615     ],
2616     [
2617     'connected',
2618     {
2619     desc => 'Whenever the inventory checker is triggered, all objects with identical <connection> value get activated. This only makes sense together with <blocking passage> disabled.',
2620     name => 'connection',
2621     type => 'int'
2622     }
2623     ],
2624     [
2625     'wc',
2626     {
2627     desc => 'The <position state> defines the position of the gate: Zero means completely open/down, the "number of animation-steps" (usually about 6 or 7) means completely closed/up state. I suggest you don\'t mess with this value - Leave the default in place.',
2628     name => 'position state',
2629     type => 'int'
2630     }
2631     ],
2632     [
2633 root 1.14 'move_block',
2634     {
2635     desc => 'Objects using these movement types cannot move over this space.',
2636     name => 'blocked movement',
2637     type => 'bitmask',
2638     value => $BITMASK{movement_type}
2639     }
2640     ],
2641     [
2642     'move_allow',
2643     {
2644     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
2645     name => 'allowed movement',
2646     type => 'bitmask',
2647     value => $BITMASK{movement_type}
2648     }
2649     ],
2650     [
2651     'move_slow',
2652 root 1.7 {
2653 root 1.14 desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
2654     name => 'slowed movement',
2655     type => 'bitmask',
2656     value => $BITMASK{movement_type}
2657     }
2658     ],
2659     [
2660     'move_slow_penalty',
2661     {
2662     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
2663     name => 'slow movement penalty',
2664     type => 'int'
2665 root 1.7 }
2666     ],
2667     [
2668     'no_magic',
2669     {
2670     desc => 'Restricting the use of spells to pass this gate. This has an effect only if <block view> is disabled.',
2671     name => 'restrict spells',
2672     type => 'bool'
2673     }
2674     ],
2675     [
2676     'damned',
2677     {
2678     desc => 'Restricting the use of prayers to pass this door. This has an effect only if <block view> is disabled.',
2679     name => 'restrict prayers',
2680     type => 'bool'
2681     }
2682     ]
2683     ],
2684 root 1.3 desc => 'Gates play an important role in Crossfire. Gates can be opened by activating a button/trigger, by speaking passwords (-> magic_ear) or carrying special key-objects (-> inventory checker). Unlike locked doors, gates can get shut again after a player has passed, which makes them more practical in many cases.',
2685     ignore => [
2686     $IGNORE_LIST{non_pickable}
2687     ],
2688 root 1.5 name => 'Gate',
2689 root 1.3 use => 'Use gates to divide your maps into seperated areas. After solving area A, the player gains access to area B, and so on. Make your maps more complex than "one-way".'
2690     },
2691     Girdle => {
2692 root 1.7 attr => [
2693     [
2694     'magic',
2695     {
2696     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the helmet. Important: <magic bonus> on girdles has no effect if there is no <armour class> set. Girdles shouldn\'t have <armour class>, thus <magic bonus> is pointless here.',
2697     name => 'magic bonus',
2698     type => 'int'
2699     }
2700     ]
2701     ],
2702     desc => 'Wearing a girdle, the object\'s stats will directly be inherited to the player. Girdles usually provide stats- or damage bonuses and no defense.',
2703     import => [
2704     $TYPE{Amulet}
2705     ],
2706     name => 'Girdle',
2707     use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
2708     },
2709     Gloves => {
2710     attr => [
2711     [
2712     'magic',
2713     {
2714     desc => 'If the gloves provide <armour class>, <magic bonus> will increase it. If the gloves have <weapon class> instead, then <magic bonus> will increase that.',
2715     name => 'magic bonus',
2716     type => 'int'
2717     }
2718     ]
2719     ],
2720     desc => 'Wearing gloves, the object\'s stats will directly be inherited to the player. Gloves can add defense or damage bonuses.',
2721     import => [
2722     $TYPE{Amulet}
2723     ],
2724     name => 'Gloves',
2725     use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
2726     },
2727     Handle => {
2728     attr => [
2729     [
2730     'no_pick',
2731     {
2732     type => 'fixed',
2733     value => 1
2734     }
2735     ],
2736     [
2737     'connected',
2738     {
2739     desc => 'Every time the handle is applied, all objects with the same <connection> value are activated.',
2740     name => 'connection',
2741     type => 'int'
2742     }
2743     ],
2744     [
2745     'msg',
2746     {
2747     desc => 'This text may describe the item. You can use this message to explain the handle\'s purpose to the player.',
2748     end => 'endmsg',
2749     name => 'description',
2750     type => 'text'
2751     }
2752     ]
2753     ],
2754     desc => 'A handle can be applied by players and (certain) monsters. Every time it is applied, the &lt;connection&gt; value is triggered.',
2755     ignore => [
2756     $IGNORE_LIST{non_pickable}
2757     ],
2758     name => 'Handle',
2759     use => 'Handles are commonly used to move gates. When placing your lever, don\'t forget that some monsters are able to apply it. The ability to apply levers is rare among monsters - but vampires can do it for example.'
2760     },
2761     'Handle Trigger' => {
2762     desc => 'Handle triggers are handles which reset after a short period of time. Every time it is either applied or reset, the &lt;connection&gt; value is triggered.',
2763     ignore => [
2764     $IGNORE_LIST{non_pickable}
2765     ],
2766     import => [
2767     $TYPE{Handle}
2768     ],
2769     name => 'Handle Trigger',
2770     use => 'When you connect an ordinary handle to a gate, the gate normally remains opened after the first player passed. If you want to keep the gate shut, connecting it to a handle trigger is an easy solution.'
2771     },
2772     'Hazard Floor' => {
2773     attr => [
2774     [
2775     'is_floor',
2776     {
2777     type => 'fixed',
2778     value => 1
2779     }
2780     ],
2781     [
2782     'lifesave',
2783     {
2784     type => 'fixed',
2785     value => 1
2786     }
2787     ],
2788     [
2789 root 1.14 'move_on',
2790 root 1.7 {
2791 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
2792     name => 'movement type',
2793     type => 'bitmask',
2794     value => $BITMASK{movement_type}
2795 root 1.7 }
2796     ],
2797     [
2798     'no_pick',
2799     {
2800     type => 'fixed',
2801     value => 1
2802     }
2803     ],
2804     [
2805     'attacktype',
2806     {
2807     desc => 'This attribute specifys the attacktypes that this floor uses to damage it\'s victims. Attacktypes are: physical, fire, cold.. etc. If you want a real tough hazard floor, add more than just one attacktype.',
2808     name => 'attacktype',
2809     type => 'bitmask',
2810     value => $BITMASK{attacktype}
2811     }
2812     ],
2813     [
2814     'dam',
2815     {
2816     desc => 'The <base damage> defines how much damage is inflicted to the victim per hit. The final damage is influenced by several other factors like the victim\'s resistance and level.',
2817     name => 'base damage',
2818     type => 'int'
2819     }
2820     ],
2821     [
2822     'wc',
2823     {
2824     desc => '<weapon class> improves the chance of hitting the victim. Lower values are better. Usually, hazard floors like lava are supposed to hit the victim all the time. Therefore, <weaponclass> should be set to something like -30.',
2825     name => 'weaponclass',
2826     type => 'int'
2827     }
2828     ],
2829     [
2830     'level',
2831     {
2832     desc => 'I guess this value is supposed to work similar to monster levels. But in fact, it does not seem to have an effect. Set any non-zero value to be on the safe side.',
2833     name => 'attack level',
2834     type => 'int'
2835     }
2836     ],
2837     [
2838     'no_magic',
2839     {
2840     desc => 'If enabled, it is impossible for players to use (wizard-) spells on that spot.',
2841     name => 'no spells',
2842     type => 'bool'
2843     }
2844     ],
2845     [
2846     'damned',
2847     {
2848     desc => 'If enabled, it is impossible for players to use prayers on that spot. It also prevents players from saving.',
2849     name => 'no prayers',
2850     type => 'bool'
2851     }
2852     ],
2853     [
2854     'unique',
2855     {
2856     desc => 'Unique floor means that any items dropped on that spot will be saved byond map reset. For permanent apartments, all floor tiles must be set <unique map>.',
2857     name => 'unique map',
2858     type => 'bool'
2859     }
2860     ]
2861 root 1.3 ],
2862     desc => 'The best example for Hazard Floor is lava. It works like standard floor, but damages all creatures standing on it. Damage is taken in regular time intervals.',
2863     ignore => [
2864     $IGNORE_LIST{non_pickable}
2865     ],
2866 root 1.5 name => 'Hazard Floor',
2867 root 1.4 section => [
2868     [
2869     'terrain',
2870 root 1.7 [
2871     [
2872 root 1.14 'move_block',
2873     {
2874     desc => 'Objects using these movement types cannot move over this space.',
2875     name => 'blocked movement',
2876     type => 'bitmask',
2877     value => $BITMASK{movement_type}
2878     }
2879     ],
2880     [
2881     'move_allow',
2882 root 1.7 {
2883 root 1.14 desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
2884     name => 'allowed movement',
2885     type => 'bitmask',
2886     value => $BITMASK{movement_type}
2887     }
2888     ],
2889     [
2890     'move_slow',
2891     {
2892     desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
2893     name => 'slowed movement',
2894     type => 'bitmask',
2895     value => $BITMASK{movement_type}
2896     }
2897     ],
2898     [
2899     'move_slow_penalty',
2900     {
2901     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
2902     name => 'slow movement penalty',
2903 root 1.7 type => 'int'
2904     }
2905     ],
2906     [
2907     'is_wooded',
2908     {
2909     desc => 'This flag indicates this spot contains wood or high grass. Players with activated woodsman skill can move faster here.',
2910     name => 'wooded terrain',
2911     type => 'bool'
2912     }
2913     ],
2914     [
2915     'is_hilly',
2916     {
2917     desc => 'This flag indicates this spot contains hills or large rocks. Players with activated mountaineer skill can move faster here.',
2918     name => 'hilly terrain',
2919     type => 'bool'
2920     }
2921     ]
2922     ]
2923 root 1.4 ]
2924     ],
2925 root 1.3 use => 'The default lava for example does minor damage. But you can turn it up so that your hazard floor poses a real threat.<br> Like magic walls, such floors add a permanent thrill to your map. You can use that to safely chase off too-weak players, or just to have something different.'
2926     },
2927     Helmet => {
2928 root 1.7 attr => [
2929     [
2930     'magic',
2931     {
2932     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the helmet. Important: <magic bonus> on helmets has no effect if there is no <armour class> set. It only works in combination with <armour class>. Crowns for instance typically provide no <amour class>.',
2933     name => 'magic bonus',
2934     type => 'int'
2935     }
2936     ]
2937     ],
2938 root 1.3 desc => 'Wearing a helmet, the object\'s stats will directly be inherited to the player. Normal helmets usually increase defense, while crowns add more special bonuses like stats/resistances paired with low defense.',
2939     import => [
2940     $TYPE{Amulet}
2941     ],
2942 root 1.5 name => 'Helmet',
2943 root 1.3 use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
2944     },
2945     'Holy Altar' => {
2946 root 1.7 attr => [
2947     [
2948     'no_pick',
2949     {
2950     type => 'fixed',
2951     value => 1
2952     }
2953     ],
2954     [
2955     'other_arch',
2956     {
2957     desc => 'The altar belongs to the god of the given name. Possible options for <god name> are: Devourers, Lythander, Mostrai, Gaea, Ruggilli, Gnarg, Gorokh, Valriel and Sorig. If you want to have an unconsecrated altar, set <god name> 0 and eventually <reconsecrate level> 0.',
2958     name => 'god name',
2959     type => 'string'
2960     }
2961     ],
2962     [
2963     'level',
2964     {
2965     desc => 'To re-consecrate an altar, the player\'s wisdom level must be as high or higher than this value. In that way, some altars can not be re-consecrated, while other altars, like those in dungeons, could be. Altars located in temples should have at least <reconsecrate level> 100. Some characters might need those altars, they would be very unhappy to see them re-consecrated to another cult.',
2966     name => 'reconsecrate level',
2967     type => 'int'
2968     }
2969     ]
2970     ],
2971 root 1.3 desc => 'Holy_altars are altars for the various religions. Praying at a Holy_altar will make you a follower of that god, and if you already follow that god, you may get some extra bonus.',
2972     ignore => [
2973     $IGNORE_LIST{non_pickable}
2974 root 1.5 ],
2975     name => 'Holy Altar'
2976 root 1.3 },
2977     Horn => {
2978 root 1.7 attr => [
2979     [
2980     'sp',
2981     {
2982     desc => 'Sets the <spell> of the horn. Consider twice before handing out any horns to players, since they can be used endlessly without any mana cost! Horns with heal/ restoration/ protection spells, IF available, MUST be very very VERY hard to get!',
2983     name => 'spell',
2984     type => 'spell'
2985     }
2986     ],
2987     [
2988     'level',
2989     {
2990     desc => 'The casting level of the <spell> determines it\'s power. For attack spells, level should not be set too high.',
2991     name => 'casting level',
2992     type => 'int'
2993     }
2994     ],
2995     [
2996     'hp',
2997     {
2998     desc => 'This value represents the initial amount of spellpoints in the horn. Naturally, this is quite unimportant.',
2999     name => 'initial spellpoints',
3000     type => 'int'
3001     }
3002     ],
3003     [
3004     'maxhp',
3005     {
3006     desc => 'When the horn is fully charged up, it will hold this maximum amount of spellpoints. Make sure it is enough to cast the contained spell at least once. But don\'t set the value too high, as that might make the horn way too effective.',
3007     name => 'max. spellpoints',
3008     type => 'int'
3009     }
3010     ],
3011     [
3012     'startequip',
3013     {
3014     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
3015     name => 'godgiven item',
3016     type => 'bool'
3017     }
3018     ],
3019     [
3020     'msg',
3021     {
3022     desc => 'This text may contain a description of the horn.',
3023     end => 'endmsg',
3024     name => 'description',
3025     type => 'text'
3026     }
3027     ]
3028     ],
3029 root 1.3 desc => 'Horns are very similar to rods. The difference is that horns regenerate spellpoints faster and thus are more valuable than rods. <br><br> A horn contains a spell. The player can use this spell by applying and "fireing" (blowing) the horn. Unlike wands/scrolls, horns can be used endlessly.',
3030     ignore => [
3031     'title'
3032     ],
3033 root 1.5 name => 'Horn',
3034 root 1.3 use => 'Horns are powerful due to their fast recharge rate. They should never contain high level attacking spells. Even curing/healing spells are almost too good on a horn.'
3035     },
3036     Inorganic => {
3037 root 1.7 attr => [
3038     [
3039     'is_dust',
3040     {
3041     name => 'is dust',
3042     type => 'bool'
3043     }
3044     ]
3045     ],
3046 root 1.4 desc => 'Inorganic materials are generally used as ingredients for alchemical receipes. By themselves, they have no special functionalities.',
3047 root 1.5 name => 'Inorganic',
3048 root 1.4 section => [
3049     [
3050     'resistance',
3051 root 1.7 [
3052     [
3053     'resist_physical',
3054     {
3055     name => 'resist physical %',
3056     type => 'int'
3057     }
3058     ],
3059     [
3060     'resist_magic',
3061     {
3062     name => 'resist magic %',
3063     type => 'int'
3064     }
3065     ],
3066     [
3067     'resist_fire',
3068     {
3069     name => 'resist fire %',
3070     type => 'int'
3071     }
3072     ],
3073     [
3074     'resist_electricity',
3075     {
3076     name => 'resist electricity %',
3077     type => 'int'
3078     }
3079     ],
3080     [
3081     'resist_cold',
3082     {
3083     name => 'resist cold %',
3084     type => 'int'
3085     }
3086     ],
3087     [
3088     'resist_acid',
3089     {
3090     name => 'resist acid %',
3091     type => 'int'
3092     }
3093     ],
3094     [
3095     'resist_weaponmagic',
3096     {
3097     name => 'resist weaponmagic %',
3098     type => 'int'
3099     }
3100     ],
3101     [
3102     'resist_ghosthit',
3103     {
3104     name => 'resist ghosthit %',
3105     type => 'int'
3106     }
3107     ],
3108     [
3109     'resist_poison',
3110     {
3111     name => 'resist poison %',
3112     type => 'int'
3113     }
3114     ],
3115     [
3116     'resist_death',
3117     {
3118     name => 'resist death-attack %',
3119     type => 'int'
3120     }
3121     ],
3122     [
3123     'resist_chaos',
3124     {
3125     name => 'resist chaos %',
3126     type => 'int'
3127     }
3128     ],
3129     [
3130     'resist_holyword',
3131     {
3132     name => 'resist holy power %',
3133     type => 'int'
3134     }
3135     ]
3136     ]
3137 root 1.4 ]
3138     ]
3139 root 1.1 },
3140 root 1.3 'Inventory Checker' => {
3141 root 1.7 attr => [
3142     [
3143     'no_pick',
3144     {
3145     type => 'fixed',
3146     value => 1
3147     }
3148     ],
3149     [
3150     'slaying',
3151     {
3152     desc => 'This string specifies the object we are looking for: We have a match if the player does/don\'t carry a key object or a mark with identical <key string>. Note that key objects usually appear as "passports" in this context. A typical example is the city gate mechanism of scorn.',
3153     name => 'match key string',
3154     type => 'string'
3155     }
3156     ],
3157     [
3158     'race',
3159     {
3160     desc => 'This string specifies the object we are looking for: We have a match if the player does/don\'t carry an object of archtype <match arch name>.',
3161     name => 'match arch name',
3162     type => 'string'
3163     }
3164     ],
3165     [
3166     'hp',
3167     {
3168     desc => 'This value specifies the object we are looking for: We have a match if the player does/don\'t carry an object that is of type <match type>. Example: Set <match type> 15 (type 15 => weapon) and <blocking passage> enabled. Now you have an inv. checker blocking all players that carry any kind of melee weapon. To pass, a player is forced to leave behind all his weaponry... bad news for a warrior. ;)',
3169     name => 'match type',
3170     type => 'int'
3171     }
3172     ],
3173     [
3174     'last_sp',
3175     {
3176     desc => 'Enabled means having that object is a match. Disabled means not having that object is a match.',
3177     name => 'match = having',
3178     type => 'bool'
3179     }
3180     ],
3181     [
3182     'connected',
3183     {
3184     desc => 'Whenever the inventory checker is triggered, all objects with identical <connection> value get activated. This only makes sense together with <blocking passage> disabled.',
3185     name => 'connection',
3186     type => 'int'
3187     }
3188     ],
3189     [
3190 root 1.14 'move_block',
3191 root 1.7 {
3192 root 1.14 desc => 'Objects using these movement types cannot move over this space.',
3193     name => 'blocked movement',
3194     type => 'bitmask',
3195     value => $BITMASK{movement_type}
3196     }
3197     ],
3198     [
3199     'move_allow',
3200     {
3201     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
3202     name => 'allowed movement',
3203     type => 'bitmask',
3204     value => $BITMASK{movement_type}
3205     }
3206     ],
3207     [
3208     'move_slow',
3209     {
3210     desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
3211     name => 'slowed movement',
3212     type => 'bitmask',
3213     value => $BITMASK{movement_type}
3214     }
3215     ],
3216     [
3217     'move_slow_penalty',
3218     {
3219     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
3220     name => 'slow movement penalty',
3221     type => 'int'
3222 root 1.7 }
3223     ],
3224     [
3225     'last_heal',
3226     {
3227     desc => '<remove match> means remove object if found. Setting this is usually not recommended because inv. checkers are in general invisible. So, unlike for altars/ locked doors, the player won\'t expect to lose an object when walking over that square. And he doesn\'t even get a message either. So, *if* you enable <remove match>, make sure to inform the player what\'s going on!',
3228     name => 'remove match',
3229     type => 'bool'
3230     }
3231     ]
3232     ],
3233 root 1.14 desc => 'Inventory checkers passively check the players inventory for a specific object. You can set a connected value that is triggered either if that object is present or missing (-&gt; "last_sp") when a player walks over the inv. checker. A valid option is to remove the matching object (usually not recommended, see "last_heal"). <br><br> Alternatively, you can set your inv. checker to block all players that do/don\'t carry the matching object. <br><br> As you can see, inv. checkers are quite powerful, holding a great variety of possibilities.',
3234 root 1.3 ignore => [
3235     $IGNORE_LIST{system_object}
3236     ],
3237 root 1.5 name => 'Inventory Checker',
3238 root 1.3 use => 'Putting a check_inventory space in front of a gate (one below) and one on the opposite side works reasonably well as a control mechanism. Unlike the key/door-combo, this one works infinite since it is independant from map reset. Use it to put a "structure" into your maps: Player must solve area A to gain access to area B. This concept can be found in nearly every RPG - simple but effective.'
3239     },
3240 root 1.8 'Item Transformer' => {
3241     attr => [
3242     [
3243     'food',
3244     {
3245     desc => '<number of uses> controls how many times the item transformer can be used. The value 0 means "unlimited"',
3246     name => 'number of uses',
3247     type => 'int'
3248     }
3249     ],
3250     [
3251     'slaying',
3252     {
3253     desc => 'Contains the verb that is used to construct a message to the player applying the item transformer.',
3254     name => 'verb',
3255     type => 'string'
3256     }
3257     ],
3258     [
3259     'startequip',
3260     {
3261     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
3262     name => 'godgiven item',
3263     type => 'bool'
3264     }
3265     ],
3266     [
3267     'msg',
3268     {
3269     desc => 'This text may contain a description of the item transformer.',
3270     end => 'endmsg',
3271     name => 'description',
3272     type => 'text'
3273     }
3274     ]
3275     ],
3276     desc => 'An item transformer is simply applied, after having marked a \'victim\' item. If the victim is suitable, it will be transformed into something else.',
3277     name => 'Item Transformer',
3278     use => 'To make an item transformable, you just have to fill the \'slaying\' field. The syntax is: <br> <pre>slaying slayer:[yield ]new_item[;slayer:[yield ]new_item]*</pre> <br> with [] denoting optional part, and * any number of preceding []. \'new_item\' must be the name of an existing archetype. <br><br> Example, for object apple: slaying knife:2 half_apple <br><br> This means that, when applying a knife (should be an Item Transformer), one \'apple\' will be transformed into 2 \'half_apple\'.'
3279     },
3280 root 1.3 Jewel => {
3281 root 1.7 attr => [
3282     [
3283     'race',
3284     {
3285     type => 'fixed',
3286     value => 'gold and jewels'
3287     }
3288     ],
3289     [
3290     'msg',
3291     {
3292     desc => 'This text may describe the object.',
3293     end => 'endmsg',
3294     name => 'description',
3295     type => 'text'
3296     }
3297     ]
3298     ],
3299 root 1.5 desc => 'Items of the type Gold &amp; Jewels are handled like a currency. Unlike for any other type of item, in shops, the buy- and selling prices differ only marginally.',
3300     name => 'Jewel'
3301 root 1.1 },
3302 root 1.9 Key => {
3303     attr => [
3304     [
3305     'startequip',
3306     {
3307     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
3308     name => 'godgiven item',
3309     type => 'bool'
3310     }
3311     ]
3312     ],
3313     desc => 'When carrying a key, a normal door can be opened. The key will disappear.',
3314     name => 'Key'
3315     },
3316 root 1.3 'Locked Door' => {
3317 root 1.7 attr => [
3318     [
3319 root 1.14 'move_type',
3320 root 1.7 {
3321     type => 'fixed',
3322 root 1.14 value => 0
3323 root 1.7 }
3324     ],
3325     [
3326     'no_pick',
3327     {
3328     type => 'fixed',
3329     value => 1
3330     }
3331     ],
3332     [
3333     'slaying',
3334     {
3335     desc => 'The <key string> in the door must be identical with the <key string> in the special key, then the door is unlocked. It is VERY important to set the <key string> to something that is unique among the CF mapset. DONT EVER USE the default string "set_individual_value".',
3336     name => 'key string',
3337     type => 'string'
3338     }
3339     ],
3340     [
3341     'no_magic',
3342     {
3343     desc => 'Restricting the use of spells to pass this door. This should be set in most cases. (Don\'t forget that the spell "dimension door" is easily available at about wisdom level 10).',
3344     name => 'restrict spells',
3345     type => 'bool'
3346     }
3347     ],
3348     [
3349     'damned',
3350     {
3351     desc => 'Restricting the use of prayers to pass this door. This should be set in most cases.',
3352     name => 'restrict prayers',
3353     type => 'bool'
3354     }
3355     ],
3356     [
3357     'msg',
3358     {
3359     desc => 'When a player is trying to open the door without carrying the appropriate key, this text is displayed to the player. This is a good opportunity to place hints about the special key needed to unlock the door.',
3360     end => 'endmsg',
3361     name => 'lock message',
3362     type => 'text'
3363     }
3364     ]
3365     ],
3366     desc => 'A locked door can be opened only when carrying the appropriate special key.',
3367     ignore => [
3368     $IGNORE_LIST{non_pickable}
3369     ],
3370     name => 'Locked Door',
3371     use => 'If you want to create a locked door that cannot be opened (no key), set a &lt;key string&gt; like "no_key_available". This will clearify things and only a fool would create a key matching that string. Door-objects can not only be used for "doors". In many maps these are used with all kinds of faces/names, especially often as "magic force". A good example is the map "Lake_Country/ebony/masterlev". There you have magic forces (door objects) put under certain artifact items. To get your hands on the artifacts, you need to bring up the appropriate quest items (key objects).'
3372     },
3373     'Magic Ear' => {
3374     attr => [
3375     [
3376     'no_pick',
3377     {
3378     type => 'fixed',
3379     value => 1
3380     }
3381     ],
3382     [
3383     'connected',
3384     {
3385     desc => 'The Magic_ear will trigger all objects with the same connection value, every time it is activated.',
3386     name => 'connection',
3387     type => 'int'
3388     }
3389     ],
3390     [
3391     'msg',
3392     {
3393     desc => 'This textfield contains the keyword-matching-syntax. The text should have the following format: "@match <keyword1>|<keyword2>|... ". Any number of keywords from one to infinite is allowed. Make sure they are seperated by a \'|\'. Examples: "@match yes", "@match gold|treasure". The connected value will be triggerd when the player speaks any of the given keywords within a two-square radius. IMPORTANT: Upper/lower case does not make a difference!',
3394     end => 'endmsg',
3395     name => 'keyword-matching',
3396     type => 'text'
3397     }
3398     ]
3399     ],
3400     desc => 'Magic_ears trigger a connected value when the player speaks a specific keyword.',
3401     ignore => [
3402     $IGNORE_LIST{system_object}
3403     ],
3404     name => 'Magic Ear',
3405     use => 'Whenever you put magic_ears on your maps, make sure there are CLEAR and RELYABLE hints about the keywords somewhere. Don\'t make something like a gate that is opened by speaking "open" or "sesame", expecting the player to figure this out all by himself. <br><br> Magic_ears are typically used for interaction with NPCs. You can create the impression that the NPC actually *does* something according to his conversation with a player. Mostly this means opening a gate or handing out some item, but you could be quite creative here.'
3406     },
3407     'Magic Wall' => {
3408     attr => [
3409     [
3410     'dam',
3411     {
3412     desc => 'The magic wall will cast this <spell>.',
3413     name => 'spell',
3414     type => 'spell'
3415     }
3416     ],
3417     [
3418     'level',
3419     {
3420     desc => 'The wall will cast it\'s spells at level <spell level>. "level 1" walls cast spells at minimal strength. "level 100" walls cast deadly spells. Arch default is level 1 - you should always set this value to meet the overall difficulty of your map.',
3421     name => 'spell level',
3422     type => 'int'
3423     }
3424     ],
3425     [
3426     'connected',
3427     {
3428     desc => 'Every time the <connection> value is triggered, the wall will cast it\'s spell. You should set <casting speed> to zero, or this won\'t have much visible effect.',
3429     name => 'connection',
3430     type => 'int'
3431     }
3432     ],
3433     [
3434     'speed',
3435     {
3436     desc => 'The <casting speed> defines the spellcasting speed of the wall. You can fine-tune how long the duration between two casts shall be. If you want to create a wall that can be activated (cast per trigger) via connected lever/button/etc, you must set "speed 0".',
3437     name => 'casting speed',
3438     type => 'float'
3439     }
3440     ],
3441     [
3442 root 1.17 'speed_left',
3443     {
3444     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
3445     name => 'speed left',
3446     type => 'float'
3447     }
3448     ],
3449     [
3450 root 1.7 'sp',
3451     {
3452     desc => 'The magic wall will cast it\'s spells always in the specified <direction>. A magic wall with direction set to <none> will always fire in a random direction.',
3453     name => 'direction',
3454     type => 'list',
3455     value => $LIST{direction}
3456     }
3457     ],
3458     [
3459 root 1.14 'move_block',
3460     {
3461     desc => 'Objects using these movement types cannot move over this space.',
3462     name => 'blocked movement',
3463     type => 'bitmask',
3464     value => $BITMASK{movement_type}
3465     }
3466     ],
3467     [
3468     'move_allow',
3469     {
3470     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
3471     name => 'allowed movement',
3472     type => 'bitmask',
3473     value => $BITMASK{movement_type}
3474     }
3475     ],
3476     [
3477     'move_slow',
3478 root 1.7 {
3479 root 1.14 desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
3480     name => 'slowed movement',
3481     type => 'bitmask',
3482     value => $BITMASK{movement_type}
3483     }
3484     ],
3485     [
3486     'move_slow_penalty',
3487     {
3488     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
3489     name => 'slow movement penalty',
3490     type => 'int'
3491 root 1.7 }
3492     ]
3493 root 1.3 ],
3494     desc => 'Magic walls fire spells in a given direction, in regular intervals. Magic walls can contain any spell. However, some spells do not operate very successfully in them. The only way to know is to test the spell you want to use with a wall. <br><br> Several types of magical walls are predefined for you in the archetypes, and can be found on the "connected" Pickmap.',
3495     ignore => [
3496     $IGNORE_LIST{non_pickable}
3497     ],
3498 root 1.5 name => 'Magic Wall',
3499 root 1.4 section => [
3500     [
3501     'destroyable',
3502 root 1.7 [
3503     [
3504     'alive',
3505     {
3506     desc => 'Walls with <is destroyable> enabled can be attacked and (eventually) destroyed by the player. If disabled, all other attributes on this tab, as well as resistances, are meaningless.',
3507     name => 'is destroyable',
3508     type => 'bool'
3509     }
3510     ],
3511     [
3512     'hp',
3513     {
3514     desc => 'The more <hitpoints> the wall has, the longer it takes to be destroyed.',
3515     name => 'hitpoints',
3516     type => 'int'
3517     }
3518     ],
3519     [
3520     'maxhp',
3521     {
3522     desc => '<max hitpoints> are the maximum amount of hitpoints the wall can have. This only makes sense if the wall can regain health.',
3523     name => 'max hitpoints',
3524     type => 'int'
3525     }
3526     ],
3527     [
3528     'ac',
3529     {
3530     desc => 'A magic wall of high <armour class> is less likely to get hit from an opponent. <armour class> can be considered the "counterpiece" to <weapon class>.',
3531     name => 'armour class',
3532     type => 'int'
3533     }
3534     ]
3535     ]
3536     ],
3537     [
3538     'resistance',
3539     [
3540     [
3541     'resist_physical',
3542     {
3543     name => 'resist physical %',
3544     type => 'int'
3545     }
3546     ],
3547     [
3548     'resist_magic',
3549     {
3550     name => 'resist magic %',
3551     type => 'int'
3552     }
3553     ],
3554     [
3555     'resist_fire',
3556     {
3557     name => 'resist fire %',
3558     type => 'int'
3559     }
3560     ],
3561     [
3562     'resist_electricity',
3563     {
3564     name => 'resist electricity %',
3565     type => 'int'
3566     }
3567     ],
3568     [
3569     'resist_cold',
3570     {
3571     name => 'resist cold %',
3572     type => 'int'
3573     }
3574     ],
3575     [
3576     'resist_confusion',
3577     {
3578     name => 'resist confusion %',
3579     type => 'int'
3580     }
3581     ],
3582     [
3583     'resist_acid',
3584     {
3585     name => 'resist acid %',
3586     type => 'int'
3587     }
3588     ],
3589     [
3590     'resist_drain',
3591     {
3592     name => 'resist draining %',
3593     type => 'int'
3594     }
3595     ],
3596     [
3597     'resist_weaponmagic',
3598     {
3599     name => 'resist weaponmagic %',
3600     type => 'int'
3601     }
3602     ],
3603     [
3604     'resist_ghosthit',
3605     {
3606     name => 'resist ghosthit %',
3607     type => 'int'
3608     }
3609     ],
3610     [
3611     'resist_poison',
3612     {
3613     name => 'resist poison %',
3614     type => 'int'
3615     }
3616     ],
3617     [
3618     'resist_slow',
3619     {
3620     name => 'resist slow %',
3621     type => 'int'
3622     }
3623     ],
3624     [
3625     'resist_paralyze',
3626     {
3627     name => 'resist paralyze %',
3628     type => 'int'
3629     }
3630     ],
3631     [
3632     'resist_fear',
3633     {
3634     name => 'resist fear %',
3635     type => 'int'
3636     }
3637     ],
3638     [
3639     'resist_deplete',
3640     {
3641     name => 'resist depletion %',
3642     type => 'int'
3643     }
3644     ],
3645     [
3646     'resist_turn_undead',
3647     {
3648     name => 'resist turn undead %',
3649     type => 'int'
3650     }
3651     ],
3652     [
3653     'resist_death',
3654     {
3655     name => 'resist death-attack %',
3656     type => 'int'
3657     }
3658     ],
3659     [
3660     'resist_chaos',
3661     {
3662     name => 'resist chaos %',
3663     type => 'int'
3664     }
3665     ],
3666     [
3667     'resist_blind',
3668     {
3669     name => 'resist blinding %',
3670     type => 'int'
3671     }
3672     ],
3673     [
3674     'resist_holyword',
3675     {
3676     name => 'resist holy power %',
3677     type => 'int'
3678     }
3679     ],
3680     [
3681     'resist_godpower',
3682     {
3683     name => 'resist godpower %',
3684     type => 'int'
3685     }
3686     ]
3687     ]
3688     ]
3689     ],
3690     use => 'Spellcasting walls pose an interesting alternative to monsters. Usually they are set to be undestroyable. Thus, while monsters in a map can be cleared out, the magic walls remain. Low level characters for example will not be able to pass through their spell-area, hence they cannot loot a map that a high level character might have cleared out. <br><br> Another point of magic walls is that if the player dies, he has to face them all again. Magic walls can add a kind of "permanent thrill" to your maps. <br><br> Be careful that your magic walls don\'t kill the monsters on a map. If placing monsters, eventually take ones that are immune to the walls\' spell(s). <br><br> It is possible to make walls rotate when triggered. But that is so confusing (and useless IMHO) that I did not mention it above. You can find a working example on the map "/pup_land/castle_eureca/castle_eureca8".'
3691     },
3692     Marker => {
3693     attr => [
3694     [
3695     'no_pick',
3696     {
3697     type => 'fixed',
3698     value => 1
3699     }
3700     ],
3701     [
3702     'slaying',
3703     {
3704     desc => 'The <key string> can be detected by inv. checkers/detectors. If the player already has a force with that <key string>, there won\'t be inserted a second one.',
3705     name => 'key string',
3706     type => 'string'
3707     }
3708     ],
3709     [
3710     'connected',
3711     {
3712     desc => 'When the detector is triggered, all objects with the same connection value get activated.',
3713     name => 'connection',
3714     type => 'int'
3715     }
3716     ],
3717     [
3718     'speed',
3719 root 1.4 {
3720 root 1.7 desc => 'The <marking speed> defines how quickly it will mark something standing on the marker. Set this value rather high to make sure the player really gets his mark. I think <marking speed> 1.0 should do fine.',
3721     name => 'marking speed',
3722     type => 'float'
3723 root 1.4 }
3724     ],
3725     [
3726 root 1.17 'speed_left',
3727     {
3728     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
3729     name => 'speed left',
3730     type => 'float'
3731     }
3732     ],
3733     [
3734 root 1.7 'food',
3735     {
3736     desc => 'This value defines the duration of the force it inserts. If nonzero, the duration of the player\'s mark is finite: about 1 food per 10 seconds. <mark duration> zero/unset means the mark will stay on the player forever.',
3737     name => 'mark duration',
3738     type => 'int'
3739     }
3740     ],
3741     [
3742     'name',
3743     {
3744     desc => 'When the player steps onto the marker, all existing forces in the players inventory with a <key string> matching <delete mark> will be removed. If you don\'t want to remove any marks, leave this textfield empty. Note that the string <delete mark> is set as the name of this marker. So don\'t be confused, and remember changing the name will take effect on the marker\'s functionality.',
3745     name => 'delete mark',
3746     type => 'string'
3747     }
3748     ],
3749     [
3750     'msg',
3751 root 1.4 {
3752 root 1.7 desc => 'In the moment when the player gets marked, this text is displayed to him. You should really set a message in any marker you create, because it\'s the only way for the player to notice what\'s going on.',
3753     end => 'endmsg',
3754     name => 'marking message',
3755     type => 'text'
3756 root 1.4 }
3757     ]
3758     ],
3759 root 1.3 desc => 'A marker is an object that inserts an invisible force (a mark) into a player stepping on it. This force does nothing except containing a &lt;key string&gt; which can be discovered by detectors or inventory checkers. It is also possible to use markers for removing marks again. <br><br> Note that the player has no possibility to "see" his own marks, except by the effect that they cause on the maps.',
3760     ignore => [
3761     $IGNORE_LIST{system_object}
3762     ],
3763 root 1.5 name => 'Marker',
3764 root 1.3 use => 'Markers hold real cool possibilities for map-making. I encourage you to use them frequently. However there is one negative point about markers: Players don\'t "see" what\'s going on with them. It is your task, as map-creator, to make sure the player is always well informed and never confused. <br><br> Please avoid infinite markers when they aren\'t needed. They\'re using a little space in the player file after all, so if there is no real purpose, set an expire time.'
3765     },
3766     Misc => {
3767 root 1.7 attr => [
3768     [
3769 root 1.14 'move_block',
3770     {
3771     desc => 'Objects using these movement types cannot move over this space.',
3772     name => 'blocked movement',
3773     type => 'bitmask',
3774     value => $BITMASK{movement_type}
3775     }
3776     ],
3777     [
3778     'move_allow',
3779     {
3780     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
3781     name => 'allowed movement',
3782     type => 'bitmask',
3783     value => $BITMASK{movement_type}
3784     }
3785     ],
3786     [
3787     'move_slow',
3788 root 1.7 {
3789 root 1.14 desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
3790     name => 'slowed movement',
3791     type => 'bitmask',
3792     value => $BITMASK{movement_type}
3793     }
3794     ],
3795     [
3796     'move_slow_penalty',
3797     {
3798     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
3799     name => 'slow movement penalty',
3800     type => 'int'
3801 root 1.7 }
3802     ],
3803     [
3804     'cursed',
3805     {
3806     desc => 'Curses can have various effects: On equipment and food, they generally harm the player in some way.',
3807     name => 'cursed',
3808     type => 'bool'
3809     }
3810     ],
3811     [
3812     'damned',
3813     {
3814     desc => 'A damned item/floor on the ground makes it impossible for players to use prayers on that spot. It also prevents players from saving. Damnation on equipment works similar to a curse.',
3815     name => 'damned',
3816     type => 'bool'
3817     }
3818     ],
3819     [
3820     'unique',
3821     {
3822     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good.',
3823     name => 'unique item',
3824     type => 'bool'
3825     }
3826     ],
3827     [
3828     'startequip',
3829     {
3830     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
3831     name => 'godgiven item',
3832     type => 'bool'
3833     }
3834     ],
3835     [
3836     'msg',
3837     {
3838     desc => 'This text may describe the object.',
3839     end => 'endmsg',
3840     name => 'description',
3841     type => 'text'
3842     }
3843     ]
3844     ],
3845 root 1.5 name => 'Misc'
3846 root 1.1 },
3847 root 1.3 Money => {
3848 root 1.7 attr => [
3849     [
3850     'race',
3851     {
3852     type => 'fixed',
3853     value => 'gold and jewels'
3854     }
3855     ]
3856     ],
3857 root 1.3 desc => 'Items of the type Money are handled as currency. Money cannot be sold/bought in shops. When money is dropped in a shop, it stays the same.<br> When a player picks an item from a shop and attempts to walk over the shop mat, the item\'s selling-price is automatically subtracted from the player\'s money. <br><br> For money, always use the default arches. Don\'t modify them.',
3858     ignore => [
3859     'unpaid'
3860 root 1.5 ],
3861     name => 'Money'
3862 root 1.3 },
3863     'Monster & NPC' => {
3864 root 1.7 attr => [
3865     [
3866     'alive',
3867     {
3868     type => 'fixed',
3869     value => 1
3870     }
3871     ],
3872     [
3873     'randomitems',
3874     {
3875     desc => 'When the monster is killed, items from the treasurelist will drop to the ground. This is a common way to reward players for killing (masses of) monsters. Note that you can always put items into the monster\'s inventory. Those will drop-at-kill just like the stuff from the <treasurelist>.',
3876     name => 'treasurelist',
3877     type => 'treasurelist'
3878     }
3879     ],
3880     [
3881     'level',
3882     {
3883     desc => 'A monster\'s <level> is the most important attribute. <level> affects the power of a monster in various ways.',
3884     name => 'level',
3885     type => 'int'
3886     }
3887     ],
3888     [
3889     'race',
3890     {
3891 root 1.17 desc => 'Every monster should have a race set to categorize it. The monster\'s <race> can have different effects: Slaying weapons inflict tripple damage against enemy races and holy word kills only enemy races of the god.',
3892 root 1.7 name => 'race',
3893     type => 'string'
3894     }
3895     ],
3896     [
3897     'exp',
3898     {
3899 root 1.17 desc => 'When a player kills this monster, he will get exactly this amount of <experience>. The experience will flow into the skill-category the player used for the kill. If you create special monsters of tweaked strenght/abilities, always make sure that the <experience> is set to a reasonable value. Compare with existing arches to get a feeling what reasonable means. Keep in mind that spellcasting monsters are a lot harder to kill than non-spellcasters!',
3900 root 1.7 name => 'experience',
3901     type => 'int'
3902     }
3903     ],
3904     [
3905     'speed',
3906     {
3907     desc => 'The <speed> determines how fast a monster will both move and fight. High <speed> makes a monster considerably stronger.',
3908     name => 'speed',
3909     type => 'float'
3910     }
3911     ],
3912     [
3913 root 1.17 'speed_left',
3914     {
3915     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
3916     name => 'speed left',
3917     type => 'float'
3918     }
3919     ],
3920     [
3921 root 1.7 'other_arch',
3922     {
3923     desc => 'This only takes effect if <multiply> is enabled. The monster will create a <breed monster> every once in a while. <breed monster> can be set to any valid arch-name of a monster. Multipart monster should not be used.',
3924     name => 'breed monster',
3925     type => 'string'
3926     }
3927     ],
3928     [
3929     'generator',
3930     {
3931     desc => 'Monsters with <generator> enabled will create a <breed monster> every once in a while. Mice are a good example for this effect. If enabled, you must also set <breed monster> or check <template generation> and put other monsters in the inventory.',
3932     name => 'multiply',
3933     type => 'bool'
3934     }
3935     ],
3936     [
3937     'use_content_on_gen',
3938     {
3939     desc => 'This only takes effect if <multiply> is enabled. The monster will create a new monster every once in a while by duplicating it\'s inventory. In this case, the <breed monster> value is never used and can be forgotten. Each time the monster need to generate an object, it will be a randomly chosen item from the inventory. When generator is destroyed, inventory is destroyed.',
3940     name => 'template generation',
3941     type => 'bool'
3942     }
3943     ],
3944     [
3945 root 1.14 'move_type',
3946 root 1.7 {
3947 root 1.14 desc => 'Determines which kinds of movement this object can use (e.g. for monsters) or grants (e.g. for amulets).',
3948     name => 'movement type',
3949     type => 'bitmask',
3950     value => $BITMASK{movement_type}
3951 root 1.7 }
3952     ],
3953     [
3954     'undead',
3955     {
3956     desc => 'Several spells only affect undead monsters: turn undead, banish undead, holy word, etc.',
3957     name => 'undead',
3958     type => 'bool'
3959     }
3960     ],
3961     [
3962     'carrying',
3963     {
3964     desc => 'If a monster has something in the inventory, this value can be set to reflect the slowdown due to the carried weight.',
3965     name => 'carries weight',
3966     type => 'int'
3967     }
3968     ],
3969     [
3970     'msg',
3971     {
3972     end => 'endmsg',
3973     name => 'npc message',
3974     type => 'text'
3975     }
3976     ]
3977     ],
3978 root 1.3 desc => 'Monsters can behave in various kinds of ways. They can be aggressive, attacking the player. Or peaceful, helping the player - maybe joining him as pet. The unagressive creatures who communicate with players are usually called "NPCs" (Non Player Character), a well-known term in role-play environments.',
3979     ignore => [
3980     'material',
3981     'name_pl',
3982     'nrof',
3983     'value',
3984     'unpaid'
3985     ],
3986 root 1.5 name => 'Monster & NPC',
3987 root 1.4 section => [
3988     [
3989     'melee',
3990 root 1.7 [
3991     [
3992     'attacktype',
3993     {
3994     desc => 'This number is a bitmask, specifying the monster\'s attacktypes for melee damage. Attacktypes are: physical, magical, fire, cold.. etc. Strong monsters often have more than just physical attacktype. When a monster with multiple attacktypes hits aan oponent, it will do as much damage as the "best" of it\'s attacktypes does. So, the more attacktypes, the more dangerous. Attacktypes "magic" and "chaos" are somehow exceptions.',
3995     name => 'attacktype',
3996     type => 'bitmask',
3997     value => $BITMASK{attacktype}
3998     }
3999     ],
4000     [
4001     'dam',
4002     {
4003     desc => 'Among other parameters, <damage> affects how much melee damage a monster inflicts. <damage> is used as base value for damage per hit. <level>, <speed>, <weapon class> and resistances also take effect on the melee damage of a monster.',
4004     name => 'damage',
4005     type => 'int'
4006     }
4007     ],
4008     [
4009     'wc',
4010     {
4011     desc => 'Monsters of high <weapon class> are more likely to really hit their opponent. <weapon class> can be considered the "counterpiece" to <armour class>.',
4012     name => 'weapon class',
4013     type => 'int'
4014     }
4015     ],
4016     [
4017     'hp',
4018     {
4019     desc => 'The <health points> of a monster define how long it takes to kill it. With every successful hit from an opponent, <health points> get drained - The monster dies by zero <health points>.',
4020     name => 'health points',
4021     type => 'int'
4022     }
4023     ],
4024     [
4025     'maxhp',
4026     {
4027     desc => '<max health> is the maximum amount of <health points> this monster can have.',
4028     name => 'max health',
4029     type => 'int'
4030     }
4031     ],
4032     [
4033     'ac',
4034     {
4035     desc => 'Monsters of low <armour class> are less likely to get hit from their opponent. <armour class> can be considered the "counterpiece" to <weapon class>. Values typically range between +20 (very bad) to -20 (quite good).',
4036     name => 'armour class',
4037     type => 'int'
4038     }
4039     ],
4040     [
4041     'Con',
4042     {
4043 root 1.8 desc => 'Monsters regenerate this many health points each 4 ticks. Hence, the healing rate is independent of <speed>.',
4044 root 1.7 name => 'healing rate',
4045     type => 'int'
4046     }
4047     ],
4048     [
4049     'reflect_missile',
4050     {
4051     desc => 'A monster with this flag has the ability to <reflect missiles>, all kinds of projectiles (e.g. arrows, bolts, boulders) will bounce off.',
4052     name => 'reflect missiles',
4053     type => 'bool'
4054     }
4055     ],
4056     [
4057     'hitback',
4058     {
4059     desc => 'Monsters with <hitback> enabled hurt the attacker in proportion to the amount of damage the *attacker* inflicted. This damage is additional to the regular melee damage of the monster. As far as I know, hitback uses acid attacktype, and it only takes effect if the monster actually has acid attacktype at it\'s disposal. Acid spheres for example use this feature.',
4060     name => 'hitback',
4061     type => 'bool'
4062     }
4063     ],
4064     [
4065     'one_hit',
4066     {
4067     desc => 'Monsters with <one hit only> dissapear after one successful hit to a player.',
4068     name => 'one hit only',
4069     type => 'bool'
4070     }
4071     ]
4072     ]
4073     ],
4074     [
4075     'spellcraft',
4076     [
4077     [
4078     'can_cast_spell',
4079     {
4080     desc => 'If <can cast spell> is disabled, the monster cannot cast any spell. Only wands/rods/etc can be used, given the appropriate abilities.',
4081     name => 'can cast spell',
4082     type => 'bool'
4083     }
4084     ],
4085     [
4086     'reflect_spell',
4087     {
4088     desc => 'A monster with this flag has the ability to <reflect spells>, all kinds of spell-bullets and -beams will bounce off. Generally this flag should not be set because it puts wizard-type players at an unfair disadvantage.',
4089     name => 'reflect spells',
4090     type => 'bool'
4091     }
4092     ],
4093     [
4094     'sp',
4095     {
4096     desc => 'Like players, monsters need <spellpoints> to do magic. Monsters use them for both wizard- and prayer-spells. However, this value defines only the amount of *initial* spellpoints the monster starts with. When creating a spellcasting monster, remember that <max spellpoints> and <spellpoint regen.> are more important than just initial <spellpoints>.',
4097     name => 'spellpoints',
4098     type => 'int'
4099     }
4100     ],
4101     [
4102     'maxsp',
4103     {
4104     desc => '<max spellpoints> is the maximum number of spellpoints a monster can hold. Setting this to high values has little effect unless the monster has a decent <spellpoint regen.>, or the spell "regenerate mana" at it\'s disposal.',
4105     name => 'max spellpoints',
4106     type => 'int'
4107     }
4108     ],
4109     [
4110     'Pow',
4111     {
4112 root 1.8 desc => 'Monsters regenerate this many spellpoints each 16 ticks. Hence, the spellpoint regeneration rate is independent of <speed>. To make a real tough spellcasting monster, the rate of spellpoint regeneration is most important. If your monster is still not casting fast enough, give it the spell-ability of "regenerate mana". That, paired with high <max spellpoints>, is the ultimate thing.',
4113 root 1.7 name => 'spellpoint regen.',
4114     type => 'int'
4115     }
4116     ],
4117     [
4118     'path_attuned',
4119     {
4120     desc => 'Click on the <attuned paths> button to select spellpaths. The creature will get attuned to the specified spellpaths.',
4121     name => 'attuned paths',
4122     type => 'bitmask',
4123     value => $BITMASK{spellpath}
4124     }
4125     ],
4126     [
4127     'path_repelled',
4128     {
4129     desc => 'Click on the <repelled paths> button to select spellpaths. The creature will get repelled to the specified spellpaths.',
4130     name => 'repelled paths',
4131     type => 'bitmask',
4132     value => $BITMASK{spellpath}
4133     }
4134     ],
4135     [
4136     'path_denied',
4137     {
4138     desc => 'Click on the <denied paths> button to select spellpaths. The creature won\'t be able to cast spells of the specified paths.',
4139     name => 'denied paths',
4140     type => 'bitmask',
4141     value => $BITMASK{spellpath}
4142     }
4143     ]
4144     ]
4145     ],
4146     [
4147     'ability',
4148     [
4149     [
4150     'Int',
4151     {
4152     desc => 'The <detect hidden> value gives monsters the ablitity to find hidden/invisible creatures. Higher values make for better detection-skills. Enabling <see invisible> makes this value obsolete.',
4153     name => 'detect hidden',
4154     type => 'int'
4155     }
4156     ],
4157     [
4158     'see_invisible',
4159     {
4160     desc => 'A monster with the ability to <see invisible> cannot be fooled with by invisible or hiding players. This flag is a must-have for high-level monsters. When a monster is unable to detect invisible players, it can be killed without fighting back.',
4161     name => 'see invisible',
4162     type => 'bool'
4163     }
4164     ],
4165     [
4166     'can_see_in_dark',
4167     {
4168     desc => 'A monster with the ability to <see in darkness> cannot be fooled by spells of darkness or dark maps. This flag is a "should-have" for high-level monsters. When a monster is unable to see in darkness, players can cast darkness and sneak around it safely.',
4169     name => 'see in darkness',
4170     type => 'bool'
4171     }
4172     ],
4173     [
4174     'can_use_weapon',
4175     {
4176     desc => 'Monster is able to wield weapon type objects.',
4177     name => 'can use weapons',
4178     type => 'bool'
4179     }
4180     ],
4181     [
4182     'can_use_bow',
4183     {
4184     desc => 'Monster is able to use missile-weapon type objects.',
4185     name => 'can use bows',
4186     type => 'bool'
4187     }
4188     ],
4189     [
4190     'can_use_armour',
4191     {
4192     desc => 'Monster is able to wear protective equipment like brestplate armour, shields, helmets etc.',
4193     name => 'can use armour',
4194     type => 'bool'
4195     }
4196     ],
4197     [
4198     'can_use_ring',
4199     {
4200     desc => 'Monster is able to wear rings.',
4201     name => 'can use rings',
4202     type => 'bool'
4203     }
4204     ],
4205     [
4206     'can_use_wand',
4207     {
4208     desc => 'Monster is able to use wands and staves.',
4209     name => 'can use wands',
4210     type => 'bool'
4211     }
4212     ],
4213     [
4214     'can_use_rod',
4215     {
4216     desc => 'Monster is able to use rods.',
4217     name => 'can use rods',
4218     type => 'bool'
4219     }
4220     ],
4221     [
4222     'can_use_scroll',
4223     {
4224     desc => 'Monster is able to read scrolls.',
4225     name => 'can use scrolls',
4226     type => 'bool'
4227     }
4228     ],
4229     [
4230     'can_use_skill',
4231     {
4232     desc => 'Monster is able to use skills from it\'s inventory. For example, you can put a throwing skill object and some boulders into the monster\'s object and set <can use skills>.',
4233     name => 'can use skills',
4234     type => 'bool'
4235     }
4236     ]
4237     ]
4238     ],
4239     [
4240     'behave',
4241     [
4242     [
4243     'monster',
4244     {
4245     desc => 'When <monster behaviour> is enabled, this object will behave like a monster: It can move and attack enemies (which are typically players). This flag should be set for all monsters as-such. Monsters which don\'t move, like guards, should also have <monster behaviour>, but in combination with <stand still>. It should *not* be set for things like immobile generators.',
4246     name => 'monster behaviour',
4247     type => 'bool'
4248     }
4249     ],
4250     [
4251     'unaggressive',
4252     {
4253     desc => '<unaggressive> monsters do not attack players unless attacked first.',
4254     name => 'unaggressive',
4255     type => 'bool'
4256     }
4257     ],
4258     [
4259     'friendly',
4260     {
4261     desc => '<friendly> monsters help the player, attacking any non-friendly monsters in range.',
4262     name => 'friendly',
4263     type => 'bool'
4264     }
4265     ],
4266     [
4267     'stand_still',
4268     {
4269     desc => 'Monsters which <stand still> won\'t move to leave their position. When agressive, they will attack all enemies who get close to them. This behaviour is commonly known from castle guards. In older versions of Crossfire it was possible to eventually push a <stand still>-monster out of position by force. I believe this is no longer possible. Neverthless, you should still be cautious when lining up <stand still>-monster in order to "defend" something: Such monsters are rather easy to kill. It\'s good for low level maps, but not much more.',
4270     name => 'stand still',
4271     type => 'bool'
4272     }
4273     ],
4274     [
4275     'sleep',
4276     {
4277     desc => 'Being <asleep>, a monster won\'t move unless a player enters the <sensing range> of the monster. Usually the sensing range is larger than the players line of sight. Due to that, in most cases the player won\'t ever notice weither a monster was asleep or not.',
4278     name => 'asleep',
4279     type => 'bool'
4280     }
4281     ],
4282     [
4283     'will_apply',
4284     {
4285     desc => 'This entry defines which kinds of environment actions the creature is able to perform.',
4286     name => 'misc. actions',
4287     type => 'bitmask',
4288     value => $BITMASK{will_apply}
4289     }
4290     ],
4291     [
4292     'pick_up',
4293     {
4294     desc => 'Click on the <pick up> button and select which types of objects the creature should try to pick up. Note also that if <can use armor>, <can use weapon>, <can use ring>... etc are set, then the creature will pick up the matching items even if this is not set here.',
4295     name => 'pick up',
4296     type => 'bitmask',
4297     value => $BITMASK{pick_up}
4298     }
4299     ],
4300     [
4301     'Wis',
4302     {
4303     desc => '<sensing range> determines how close a player needs to be before the creature wakes up. This is done as a square, for reasons of speed. Thus, if the <sensing range> is 11, any player that moves within the 11x11 square of the monster will wake the monster up. If the player has stealth, the size of this square is reduced in half plus 1.',
4304     name => 'sensing range',
4305     type => 'int'
4306     }
4307     ],
4308     [
4309 root 1.15 'attack_movement_bits_0_3',
4310 root 1.7 {
4311 root 1.15 desc => 'If this is set to default, the standard mode of movement will be used.',
4312 root 1.7 name => 'attack movement',
4313 root 1.15 type => 'list',
4314     value => $LIST{attack_movement_bits_0_3}
4315     }
4316     ],
4317     [
4318     'attack_movement_bits_4_7',
4319     {
4320     desc => 'This movement is not in effect when the monster has an enemy and should only be used for non agressive monsters.',
4321     name => 'normal movement',
4322     type => 'list',
4323     value => $LIST{attack_movement_bits_4_7}
4324 root 1.7 }
4325     ],
4326     [
4327     'run_away',
4328     {
4329     desc => 'This is a percentage value in the range 0-100. When the monster\'s health points drop below this percentage (relative to max health), it attempts to run away from the attacker.',
4330     name => 'run at % health',
4331     type => 'int'
4332     }
4333     ]
4334     ]
4335     ],
4336     [
4337     'resistance',
4338     [
4339     [
4340     'resist_physical',
4341     {
4342     name => 'resist physical %',
4343     type => 'int'
4344     }
4345     ],
4346     [
4347     'resist_magic',
4348     {
4349     name => 'resist magic %',
4350     type => 'int'
4351     }
4352     ],
4353     [
4354     'resist_fire',
4355     {
4356     name => 'resist fire %',
4357     type => 'int'
4358     }
4359     ],
4360     [
4361     'resist_electricity',
4362     {
4363     name => 'resist electricity %',
4364     type => 'int'
4365     }
4366     ],
4367     [
4368     'resist_cold',
4369     {
4370     name => 'resist cold %',
4371     type => 'int'
4372     }
4373     ],
4374     [
4375     'resist_confusion',
4376     {
4377     name => 'resist confusion %',
4378     type => 'int'
4379     }
4380     ],
4381     [
4382     'resist_acid',
4383     {
4384     name => 'resist acid %',
4385     type => 'int'
4386     }
4387     ],
4388     [
4389     'resist_drain',
4390     {
4391     name => 'resist draining %',
4392     type => 'int'
4393     }
4394     ],
4395     [
4396     'resist_weaponmagic',
4397     {
4398     name => 'resist weaponmagic %',
4399     type => 'int'
4400     }
4401     ],
4402     [
4403     'resist_ghosthit',
4404     {
4405     name => 'resist ghosthit %',
4406     type => 'int'
4407     }
4408     ],
4409     [
4410     'resist_poison',
4411     {
4412     name => 'resist poison %',
4413     type => 'int'
4414     }
4415     ],
4416     [
4417     'resist_slow',
4418     {
4419     name => 'resist slow %',
4420     type => 'int'
4421     }
4422     ],
4423     [
4424     'resist_paralyze',
4425     {
4426     name => 'resist paralyze %',
4427     type => 'int'
4428     }
4429     ],
4430     [
4431     'resist_fear',
4432     {
4433     name => 'resist fear %',
4434     type => 'int'
4435     }
4436     ],
4437     [
4438     'resist_deplete',
4439     {
4440     name => 'resist depletion %',
4441     type => 'int'
4442     }
4443     ],
4444     [
4445     'resist_turn_undead',
4446     {
4447     name => 'resist turn undead %',
4448     type => 'int'
4449     }
4450     ],
4451     [
4452     'resist_death',
4453     {
4454     name => 'resist death-attack %',
4455     type => 'int'
4456     }
4457     ],
4458     [
4459     'resist_chaos',
4460     {
4461     name => 'resist chaos %',
4462     type => 'int'
4463     }
4464     ],
4465     [
4466     'resist_blind',
4467     {
4468     name => 'resist blinding %',
4469     type => 'int'
4470     }
4471     ],
4472     [
4473     'resist_holyword',
4474     {
4475     name => 'resist holy power %',
4476     type => 'int'
4477     }
4478     ],
4479     [
4480     'resist_godpower',
4481     {
4482     name => 'resist godpower %',
4483     type => 'int'
4484     }
4485     ]
4486     ]
4487     ]
4488     ],
4489     use => 'Monsters play a central role in most maps. Choosing the right combination of monsters for your map is vital: <UL> <LI> Place only monsters of slightly varying (increasing) strength. It\'s no fun to play for two hours just to find out the last monster is unbeatable. Similar, it\'s not exciting to fight orcs after passing a room of dragons.<br> This rule applies only for linear maps (one room after the other), with treasure at the end. You can sprinkle the treasure around, or make non-linear maps - That is often more entertaining. <LI> Places with high level monsters must not be easy to reach. Balrogs, Dragonmen and the likes should be at the end of a quest, not at the beginning. <LI> Don\'t stick monsters together that tend to kill each other. Fire- and cold dragons in one room for example is a bad idea. By weakening and killing each other they are easy prey for players, not worth the experience they hold. <LI> Create your own monsters, especially for "boss"-type monsters. Having stage-bosses guarding treasure is a lot of fun when done right. Avoid to create monsters with completely non-intuitive abilities: Don\'t give ice-spells to firedragons or vice versa. Don\'t add draining attack to trolls, etc. Additionally, you should inform the player before he bumps right into some very special/unusual monster. <LI> Last but not least: Always keep an eye on the experience your monsters hold. Design your maps in a way that high experience is always well-defended. Don\'t make large rooms full with only one kind of monster. Keep in mind the different abilities/techniques players can use. </UL> I know it\'s impossible to make the perfectly balanced map. There\'s always some part which is found too easy or too hard for a certain kind of player. Just give it your best shot. And listen to feedback from players if you receive some. :-)'
4490     },
4491 root 1.9 'Monster (Grimreaper)' => {
4492     desc => 'A grimreaper is a monster that vanishes after it did some number of draining attacks.',
4493     ignore => [
4494     'material',
4495     'name_pl',
4496     'nrof',
4497     'value',
4498     'unpaid'
4499     ],
4500     import => [
4501     $TYPE{'Monster & NPC'}
4502     ],
4503     name => 'Monster (Grimreaper)',
4504     section => [
4505     [
4506     'grimreaper',
4507     [
4508     [
4509     'value',
4510     {
4511     desc => 'The object vanishes after this number of draining attacks.',
4512     name => 'attacks',
4513     type => 'int'
4514     }
4515     ]
4516     ]
4517     ]
4518     ]
4519     },
4520 root 1.7 'Mood Floor' => {
4521     attr => [
4522     [
4523     'no_pick',
4524 root 1.4 {
4525 root 1.7 type => 'fixed',
4526     value => 1
4527 root 1.4 }
4528     ],
4529     [
4530 root 1.7 'last_sp',
4531     {
4532     desc => '<mood> is used to determine what will happen to the monster when affected by the mood floor: <mood> \'furious\': Makes all monsters aggressive <mood> \'angry\': As above but pets are unaffected <mood> \'calm\': Makes all monsters unaggressive <mood> \'sleep\': Puts all monsters to sleep <mood> \'charm\': Turns monster into a pet of person who triggers the square. This setting is not enabled for continous operation, you need to insert a <connection> value!',
4533     name => 'mood',
4534     type => 'list',
4535     value => $LIST{mood}
4536     }
4537     ],
4538     [
4539     'connected',
4540     {
4541     desc => 'This should only be set in combination with <mood number> 4. Normally, monsters are affected by the mood floor as soon as they step on it. But charming (monster -> pet) is too powerful, so it needs to be activated. Typically it is connected to an altar, for buying a "hireling". But a powerful pet could as well be the reward for solving a quest. Or even better: It could be *part* of a quest!',
4542     name => 'connection',
4543     type => 'int'
4544     }
4545     ],
4546     [
4547     'no_magic',
4548     {
4549     desc => 'If enabled, it is impossible for players to use (wizard-) spells on that spot.',
4550     name => 'no spells',
4551     type => 'bool'
4552     }
4553     ],
4554     [
4555     'damned',
4556     {
4557     desc => 'If enabled, it is impossible for players to use prayers on that spot. It also prevents players from saving.',
4558     name => 'no prayers',
4559     type => 'bool'
4560     }
4561     ]
4562     ],
4563     desc => 'As the name implies, mood floors can change the "mood" of a monsters/NPC. For example, an unagressive monster could be turned mad to start attacking. Similar, an agressive monster could be calmed.',
4564     ignore => [
4565     $IGNORE_LIST{system_object}
4566     ],
4567     name => 'Mood Floor',
4568     use => 'Mood floors are absolutely cool for NPC interaction. To make an unaggressive monster/NPC attack, put a creator with "other_arch furious_floor" under it. Connect the creator to a magic_ear, so the player speaks a keyword like "stupid sucker" - and the monster attacks. <br><br> To turn an NPC into a pet, put a charm_floor under it and connect it directly to a magic_ear. Then the player speaks a keyword like "help me" - and the NPC joins him as pet. <br><br> (Of course you must always give clear hints about keywords! And there is no reason why you couldn\'t use a button/lever/pedestal etc. instead of a magic_ear.)'
4569     },
4570     Mover => {
4571     attr => [
4572     [
4573     'attacktype',
4574     {
4575     desc => 'If forced movement is enabled, the mover "freezes" anyone it moves (so they are forced to move along a chain). For players there is no way to escape this forced movement, except being pushed by a second player.',
4576     name => 'forced movement',
4577     type => 'bool'
4578     }
4579     ],
4580     [
4581     'maxsp',
4582     {
4583     desc => 'The player will be "frozen" for that many moves. If <freeze duration> is zero, with <forced movement> enabled, then <freeze duration> gets assigned the "default value" 2 automatically.',
4584     name => 'freeze duration',
4585     type => 'int'
4586     }
4587     ],
4588     [
4589     'speed',
4590     {
4591     desc => 'The movement speed value determines how fast a chain of these movers will push a player along (default is -0.2).',
4592     name => 'movement speed',
4593     type => 'float'
4594     }
4595     ],
4596     [
4597 root 1.17 'speed_left',
4598     {
4599     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
4600     name => 'speed left',
4601     type => 'float'
4602     }
4603     ],
4604     [
4605 root 1.7 'sp',
4606     {
4607     desc => 'The mover will push creatures in the specified <direction>. A mover with direction set to <none> will spin clockwise, thus pushing creatures in unpredictable directions.',
4608     name => 'direction',
4609     type => 'list',
4610     value => $LIST{direction}
4611     }
4612     ],
4613     [
4614     'lifesave',
4615     {
4616 root 1.9 desc => 'If enabled, the mover gets "used up" after a certain number of moves (specified by <number of uses>). If disabled, the mover works infinitely.',
4617 root 1.7 name => 'gets used up',
4618     type => 'bool'
4619     }
4620     ],
4621     [
4622     'hp',
4623     {
4624     desc => 'This value has only a meaning if <gets used up> is set: <number of uses> is the number of times minus one, that it will move a creature before disappearing. (It will move someone <number of uses>+1 times, then vanish).',
4625     name => 'number of uses',
4626     type => 'int'
4627     }
4628     ]
4629     ],
4630     desc => 'Movers move the objects above them. However, only living objects are affected (monsters/NPCs always, players optional). Movers have a direction, so players can be made to move in a pattern, and so can monsters. Motion is involuntary. Additionally, players or monsters can be "frozen" while ontop of movers so that they MUST move along a chain of them. <br><br> Multisquare monsters can be moved as well, given enough space. Movers are usually invisible.',
4631     ignore => [
4632     $IGNORE_LIST{non_pickable}
4633     ],
4634     name => 'Mover',
4635     section => [
4636     [
4637     'targets',
4638     [
4639     [
4640     'level',
4641     {
4642     desc => 'If <move players> is enabled, both players and monsters will be moved. In the arches\' default it is disabled - thus ONLY monsters get moved. Remember that "monsters" includes NPCs! This feature provides you with the possibility to make NPCs literally "come to life". Example: The player is talking with an NPC, speaking a certain keyword. This triggers a magic_ear and activates creators, creating (per default: monster-only) movers under the NPC\'s feet. The NPC starts "walking" on a predefined route! Note that it\'s useful to set this NPC immune to everything, preventing the player to push the NPC off his trace.',
4643     name => 'move players',
4644     type => 'bool'
4645     }
4646     ],
4647     [
4648 root 1.14 'move_on',
4649 root 1.7 {
4650 root 1.14 desc => 'Which movement types activate the mover.',
4651     name => 'movement type',
4652     type => 'movement_type'
4653 root 1.7 }
4654     ]
4655     ]
4656     ]
4657     ],
4658     use => 'NEVER EVER consider a mover being unpassable in the backwards direction. Setting "forced movement" makes it seemingly impossible but there is still a trick: One player can push a second player past the mover, in opposite to the mover\'s direction! The more movers, the more players needed. Hence, don\'t make a treasure room that is surrounded by movers instead of solid walls/gates. <br><br> Btw, it does not make a difference putting movers above or below the floor. Moreover, movers that are set to be invisible cannot be discovered with the show_invisible spell. <br><br> Note that Movers and Directors are seperate objects, even though they look and act similar. Directors only do spells/missiles, while movers only do living creatures (depending on how it is set: monsters and players).'
4659     },
4660     Pedestal => {
4661     attr => [
4662     [
4663     'no_pick',
4664 root 1.4 {
4665 root 1.7 type => 'fixed',
4666     value => 1
4667 root 1.4 }
4668     ],
4669     [
4670 root 1.7 'slaying',
4671 root 1.4 {
4672 root 1.7 desc => 'the <match race> defines the object we\'re looking for. If <match race> matches the monster\'s or the player\'s race, we have a match. Yes, pedestals can detect a player\'s race! E.g. you could create a place where only fireborns can enter, by setting "slaying unnatural". If it is set to "player", any player stepping on the pedestal is a match. Very useful if you want to open a gate for players but not for monsters.',
4673     name => 'match race',
4674     type => 'string'
4675 root 1.4 }
4676     ],
4677     [
4678 root 1.7 'connected',
4679 root 1.4 {
4680 root 1.7 desc => 'When the pedestal is triggered, all objects with the same connection value get activated.',
4681     name => 'connection',
4682     type => 'int'
4683 root 1.4 }
4684     ],
4685     [
4686 root 1.14 'move_on',
4687 root 1.4 {
4688 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
4689     name => 'movement type',
4690     type => 'bitmask',
4691     value => $BITMASK{movement_type}
4692 root 1.4 }
4693     ]
4694     ],
4695 root 1.3 desc => 'Pedestals are designed to detect certain types of living objects. When a predefined type of living creature steps on the pedestal, the connected value is triggered.',
4696     ignore => [
4697     $IGNORE_LIST{non_pickable}
4698     ],
4699 root 1.5 name => 'Pedestal',
4700 root 1.3 use => 'If you want to create a place where only players of a certain race can enter, put a teleporter over your pedestal. So the teleporter is only activated for players of the matching race. Do not use gates, because many other players could sneak in. If you put powerful artifacts into such places, generally set "startequip 1", so that they are preserved for that one race and can\'t be traded to others.'
4701     },
4702     Pit => {
4703 root 1.7 attr => [
4704     [
4705     'no_pick',
4706     {
4707     type => 'fixed',
4708     value => 1
4709     }
4710     ],
4711     [
4712     'connected',
4713     {
4714     desc => 'When a <connection> value is set, the pit can be opened/closed by activating the connection.',
4715     name => 'connection',
4716     type => 'int'
4717     }
4718     ],
4719     [
4720     'hp',
4721     {
4722     desc => 'The pit will transport creatures (and items) randomly into a two-square radius of the destination coordinates. If the destination square becomes blocked, the pit will act like being filled up and not work anymore!',
4723     name => 'destination X',
4724     type => 'int'
4725     }
4726     ],
4727     [
4728     'sp',
4729     {
4730     desc => 'The pit will transport creatures (and items) randomly into a two-square radius of the destination coordinates. If the destination square becomes blocked, the pit will act like being filled up and not work anymore!',
4731     name => 'destination Y',
4732     type => 'int'
4733     }
4734     ],
4735     [
4736     'wc',
4737     {
4738     desc => 'The <position state> defines the position of the gate: Zero means completely open/down, the "number of animation-steps" (usually about 6 or 7) means completely closed/up state. I suggest you don\'t mess with this value - Leave the default in place.',
4739     name => 'position state',
4740     type => 'int'
4741     }
4742     ],
4743     [
4744 root 1.14 'move_on',
4745 root 1.7 {
4746 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
4747     name => 'movement type',
4748     type => 'bitmask',
4749     value => $BITMASK{movement_type}
4750 root 1.7 }
4751     ]
4752     ],
4753 root 1.3 desc => 'Pits are holes, transporting the player when he walks (and falls) into them. A speciality about pits is that they don\'t transport the player to the exact destination, but within a two-square radius of the destination (never on blocked squares).<br> Optionally, pits can get closed and opened, similar to gates.<br><br> Monsters and items are affected by pits just as well as players. Even multipart monsters can fall through them, given enough space.',
4754     ignore => [
4755     $IGNORE_LIST{non_pickable}
4756     ],
4757 root 1.5 name => 'Pit',
4758 root 1.3 use => 'Pits can add interesting effects to your map. When using them, make sure to use them in a "logical way": Pits should always drop the player to some kind of lower level. They should not be used to randomly interconnect maps like teleporters do.'
4759     },
4760     'Poison Food' => {
4761 root 1.5 desc => 'When eating, the player\'s stomache is drained by 1/4 of food. If his food drops to zero, the player might even die.',
4762     name => 'Poison Food'
4763 root 1.3 },
4764     Potion => {
4765 root 1.7 attr => [
4766     [
4767     'level',
4768     {
4769     desc => 'If the potion contains a spell, the spell is cast at this level. For other potions it should be set at least to 1.',
4770     name => 'potion level',
4771     type => 'int'
4772     }
4773     ],
4774     [
4775     'sp',
4776     {
4777     desc => 'When a player drinks this potion, the selected spell will be casted (once). This should work for any given spell. E.g. heal is "sp 35", magic power is "sp 67".',
4778     name => 'spell',
4779     type => 'spell'
4780     }
4781     ],
4782     [
4783     'attacktype',
4784     {
4785     desc => 'There are two types of special effects for potions: \'life restoration\' - restore the player\'s stats lost by death or draining (this has nothing in common with the restoration spell!) \'improvement\' - increase the player\'s maximum health/mana/grace by a very small amount.',
4786     name => 'special effect',
4787     type => 'list',
4788     value => $LIST{potion_effect}
4789     }
4790     ],
4791     [
4792     'cursed',
4793     {
4794     desc => 'If a potion is cursed, benefits generally turn into penalties. Note that potions can be "uncursed" by praying over an altar, with relative ease. *But* the potion must be identified to notice that it is cursed >:)',
4795     name => 'cursed',
4796     type => 'bool'
4797     }
4798     ],
4799     [
4800     'startequip',
4801     {
4802     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
4803     name => 'godgiven item',
4804     type => 'bool'
4805     }
4806     ]
4807     ],
4808 root 1.3 desc => 'The player can drink these and gain various kinds of benefits (/penalties) by doing so.',
4809 root 1.5 name => 'Potion',
4810 root 1.4 section => [
4811     [
4812     'stats',
4813 root 1.7 [
4814     [
4815     'Str',
4816     {
4817     desc => 'The player\'s strentgh will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4818     name => 'strength',
4819     type => 'int'
4820     }
4821     ],
4822     [
4823     'Dex',
4824     {
4825     desc => 'The player\'s dexterity will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4826     name => 'dexterity',
4827     type => 'int'
4828     }
4829     ],
4830     [
4831     'Con',
4832     {
4833     desc => 'The player\'s constitution will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4834     name => 'constitution',
4835     type => 'int'
4836     }
4837     ],
4838     [
4839     'Int',
4840     {
4841     desc => 'The player\'s intelligence will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4842     name => 'intelligence',
4843     type => 'int'
4844     }
4845     ],
4846     [
4847     'Pow',
4848     {
4849     desc => 'The player\'s power will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4850     name => 'power',
4851     type => 'int'
4852     }
4853     ],
4854     [
4855     'Wis',
4856     {
4857     desc => 'The player\'s wisdom will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4858     name => 'wisdom',
4859     type => 'int'
4860     }
4861     ],
4862     [
4863     'Cha',
4864     {
4865     desc => 'The player\'s charisma will rise/fall by the given value for permanent (of course there is an upper limit). Generally there shouldn\'t be stat potions granting more than one stat. Cursed potions will subtract the stats if positive.',
4866     name => 'charisma',
4867     type => 'int'
4868     }
4869     ]
4870     ]
4871     ],
4872     [
4873     'resistance',
4874     [
4875     [
4876     'resist_physical',
4877     {
4878     desc => 'The player\'s resistance to physical will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4879     name => 'resist physical %',
4880     type => 'int'
4881     }
4882     ],
4883     [
4884     'resist_magic',
4885     {
4886     desc => 'The player\'s resistance to magic will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4887     name => 'resist magic %',
4888     type => 'int'
4889     }
4890     ],
4891     [
4892     'resist_fire',
4893     {
4894     desc => 'The player\'s resistance to fire will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4895     name => 'resist fire %',
4896     type => 'int'
4897     }
4898     ],
4899     [
4900     'resist_electricity',
4901     {
4902     desc => 'The player\'s resistance to electricity will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4903     name => 'resist electricity %',
4904     type => 'int'
4905     }
4906     ],
4907     [
4908     'resist_cold',
4909     {
4910     desc => 'The player\'s resistance to cold will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4911     name => 'resist cold %',
4912     type => 'int'
4913     }
4914     ],
4915     [
4916     'resist_acid',
4917     {
4918     desc => 'The player\'s resistance to acid will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4919     name => 'resist acid %',
4920     type => 'int'
4921     }
4922     ],
4923     [
4924     'resist_confusion',
4925     {
4926     desc => 'The player\'s resistance to confusion will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4927     name => 'resist confusion %',
4928     type => 'int'
4929     }
4930     ],
4931     [
4932     'resist_weaponmagic',
4933     {
4934     desc => 'The player\'s resistance to weaponmagic will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4935     name => 'resist weaponmagic %',
4936     type => 'int'
4937     }
4938     ],
4939     [
4940     'resist_paralyze',
4941     {
4942     desc => 'The player\'s resistance to paralyze will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4943     name => 'resist paralyze %',
4944     type => 'int'
4945     }
4946     ],
4947     [
4948     'resist_drain',
4949     {
4950     desc => 'The player\'s resistance to draining will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4951     name => 'resist draining %',
4952     type => 'int'
4953     }
4954     ],
4955     [
4956     'resist_deplete',
4957     {
4958     desc => 'The player\'s resistance to depletion will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4959     name => 'resist depletion %',
4960     type => 'int'
4961     }
4962     ],
4963     [
4964     'resist_poison',
4965     {
4966     desc => 'The player\'s resistance to poison will rise by this value in percent (range -100 till +100). The effect is only temporare, and it does NOT add on the values from the player\'s equipment. Cursed potions will make negative resistance.. very nasty in combat!',
4967     name => 'resist poison %',
4968     type => 'int'
4969     }
4970     ]
4971     ]
4972     ]
4973     ],
4974     use => 'One potion should never give multiple benefits at once.'
4975     },
4976     'Power Crystal' => {
4977     attr => [
4978     [
4979     'sp',
4980 root 1.4 {
4981 root 1.7 desc => '<initial mana> is the amount of spellpoints that the crystal holds when the map is loaded.',
4982     name => 'initial mana',
4983     type => 'int'
4984 root 1.4 }
4985     ],
4986     [
4987 root 1.7 'maxsp',
4988 root 1.4 {
4989 root 1.7 desc => 'The <mana capacity> defines how much mana can be stored in the crystal. This is what makes the crystal interesting. Wizard-players will always seek for crystals with large capacities.',
4990     name => 'mana capacity',
4991     type => 'int'
4992 root 1.4 }
4993     ]
4994     ],
4995 root 1.5 desc => 'Power crystals can store a player\'s mana: When the player applies the crystal with full mana, half of it flows into the crystal. When the player applies it with lacking mana, the crystal replenishes the player\'s mana.',
4996     name => 'Power Crystal'
4997 root 1.1 },
4998 root 1.3 Projectile => {
4999 root 1.7 attr => [
5000     [
5001     'attacktype',
5002     {
5003     desc => 'This number is a bitmask, specifying the projectile\'s attacktypes. Attacktypes are: physical, magical, fire, cold.. etc. This works identical to melee weapons. Note that shooting weapons cannot have attacktypes.',
5004     name => 'attacktype',
5005     type => 'bitmask',
5006     value => $BITMASK{attacktype}
5007     }
5008     ],
5009     [
5010     'race',
5011     {
5012     desc => 'Only shooting weapons with matching <ammunition class> can fire these projectiles. For arrows set "arrows", for crossbow bolts set "crossbow bolts" (big surprise). In certain cases, the ammunition class is displayed in the game. Hence, when you create a new ammunition class, choose an intuitive name like "missiles", "spirit bolts" - whatever. You can also make special containers holding these projectiles by setting the <container class> to match your <ammunition class>.',
5013     name => 'ammunition class',
5014     type => 'string'
5015     }
5016     ],
5017     [
5018     'slaying',
5019     {
5020     desc => 'Slaying means the weapon does tripple (3x) damage to monsters of the specified race. If <slaying race> matches an arch name, only monsters of that archtype receive tripple damage. Tripple damage is very effective.',
5021     name => 'slaying race',
5022     type => 'string'
5023     }
5024     ],
5025     [
5026     'dam',
5027     {
5028     desc => 'The projectile <damage> significantly affects the damage done. Damage can be further increased by the shooting weapon\'s attributes.',
5029     name => 'damage',
5030     type => 'int'
5031     }
5032     ],
5033     [
5034     'wc',
5035     {
5036     desc => 'This value is supposed to be the base <weaponclass>, but it seems to have rather little effect. High values are good here, low values bad.',
5037     name => 'weaponclass',
5038     type => 'int'
5039     }
5040     ],
5041     [
5042     'food',
5043     {
5044     desc => 'The <chance to break> defines the breaking probability when this projectile hits an obstacle, e.g. wall or monster. The value is the %-chance to break, ranging from 0 (never breaking) to 100 (breaking at first shot).',
5045     name => 'chance to break',
5046     type => 'int'
5047     }
5048     ],
5049     [
5050     'magic',
5051     {
5052     desc => 'Magic bonus increases chance to hit and damage a little bit.',
5053     name => 'magic bonus',
5054     type => 'int'
5055     }
5056     ],
5057     [
5058     'unique',
5059     {
5060     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good.',
5061     name => 'unique item',
5062     type => 'bool'
5063     }
5064     ],
5065     [
5066     'startequip',
5067     {
5068     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
5069     name => 'godgiven item',
5070     type => 'bool'
5071     }
5072     ],
5073     [
5074     'no_drop',
5075     {
5076     desc => 'When a monster carries a projectile with <don\'t drop>, this item will never drop to the ground but vanish instead. If this object is shot, it can still drop after hitting an obstacle. You can prevent this by setting <chance to break> 100.',
5077     name => 'don\'t drop',
5078     type => 'bool'
5079     }
5080     ],
5081     [
5082     'msg',
5083     {
5084     desc => 'This text may describe the projectile. This could be nice for very special ones.',
5085     end => 'endmsg',
5086     name => 'description',
5087     type => 'text'
5088     }
5089     ]
5090     ],
5091     desc => 'Projectiles like arrows/crossbow bolts are used as ammunition for shooting weapons. <br><br> It\'s very easy to add new pairs of weapons &amp; projectiles. Just set matching &lt;ammunition class&gt; both for shooting weapon and projectile.',
5092     name => 'Projectile',
5093     use => 'If you want to create new kinds of projectiles, you could add an alchemical receipe to create these. Don\'t create new pairs of weapons &amp; projectiles unless they really fullfill a useful purpose. In fact, even bows and crossbows are rarely ever used.'
5094     },
5095     Ring => {
5096     desc => 'Rings are worn on the hands - one ring each. Wearing rings, the object\'s stats will directly be inherited to the player. Usually enhancing his spellcasting potential.',
5097     import => [
5098     $TYPE{Amulet}
5099     ],
5100     name => 'Ring',
5101     use => 'When you create an artifact ring, never forget that players can wear <B>two</B> rings! Due to that it is extremely important to keep rings in balance with the game. <br><br> Also keep in mind that rings are generally the wizard\'s tools. They should primarily grant bonuses to spellcasting abilities and non-physical resistances.'
5102     },
5103     Rod => {
5104     attr => [
5105     [
5106     'sp',
5107     {
5108     desc => 'Sets the <spell> of the rod. Consider twice before handing out special rods to players, since they can be used endlessly without any mana cost! Rods with heal/ restoration/ protection spells, IF available, MUST be very very VERY hard to get!',
5109     name => 'spell',
5110     type => 'spell'
5111     }
5112     ],
5113     [
5114     'level',
5115     {
5116     desc => 'The casting level of the <spell> determines it\'s power. For attack spells, level should be set to something reasonable.',
5117     name => 'casting level',
5118     type => 'int'
5119     }
5120     ],
5121     [
5122     'hp',
5123     {
5124     desc => 'This value represents the initial amount of spellpoints in the rod. Naturally, this is quite unimportant.',
5125     name => 'initial spellpoints',
5126     type => 'int'
5127     }
5128     ],
5129     [
5130     'maxhp',
5131     {
5132     desc => 'When the rod is fully charged up, it will hold this maximum amount of spellpoints. Make sure it is enough to cast the contained spell at least once. But don\'t set the value too high, as that might make the rod too effective.',
5133     name => 'max. spellpoints',
5134     type => 'int'
5135     }
5136     ],
5137     [
5138     'startequip',
5139     {
5140     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
5141     name => 'godgiven item',
5142     type => 'bool'
5143     }
5144     ],
5145     [
5146     'msg',
5147     {
5148     desc => 'This text may contain a description of the rod.',
5149     end => 'endmsg',
5150     name => 'description',
5151     type => 'text'
5152     }
5153     ]
5154     ],
5155     desc => 'A rod contains a spell. The player can use this spell by applying and fireing the rod. Rods need time to regenerate their "internal" spellpoints, lowering the effectiveness in combat. But unlike wands/scrolls, rods can be used endlessly.',
5156     ignore => [
5157     'title'
5158     ],
5159     name => 'Rod',
5160     use => 'Rods with healing/curing spells are extremely powerful. Usually, potions have to be used for that purpose. Though, potions are expensive and only good for one-time-use.<br>'
5161     },
5162     Rune => {
5163     attr => [
5164     [
5165     'no_pick',
5166     {
5167     type => 'fixed',
5168     value => 1
5169     }
5170     ],
5171     [
5172 root 1.14 'move_on',
5173 root 1.7 {
5174 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
5175     name => 'movement type',
5176     type => 'bitmask',
5177     value => $BITMASK{movement_type}
5178 root 1.7 }
5179     ],
5180     [
5181     'level',
5182     {
5183     desc => 'This value sets the level the rune will cast the spell it contains at, if applicable. A level 99 rune casts a very, very mean spell of whatever. (<rune level> 0 runes won\'t detonate at all!) Level Also effects how easily a rune may be found and disarmed, and how much experience the player gets for doing so. Beware: High level runes can be quite a cheap source of experience! So either make them tough, or keep the level low.',
5184     name => 'rune level',
5185     type => 'int'
5186     }
5187     ],
5188     [
5189     'Cha',
5190     {
5191     desc => 'This value determines what fraction of the time the rune is visible: It\'ll be randomly visible 1/<visibility> of the time. Also effects how easily the rune may be found.',
5192     name => 'visibility',
5193     type => 'int'
5194     }
5195     ],
5196     [
5197     'hp',
5198     {
5199     desc => 'The rune will detonate <number of charges> times before disappearing.',
5200     name => 'number of charges',
5201     type => 'int'
5202     }
5203     ],
5204     [
5205     'dam',
5206     {
5207     desc => '<direct damage> specifies how much damage is done by the rune, if it doesn\'t contain a spell. This should be set in reasonable relation to the rune\'s level.',
5208     name => 'direct damage',
5209     type => 'int'
5210     }
5211     ],
5212     [
5213     'attacktype',
5214     {
5215     desc => 'If there isn\'t any spell (and <summon monster> is unset), this attribute defines what attacktype to use for direct damage when the rune detonates.',
5216     name => 'attacktype',
5217     type => 'bitmask',
5218     value => $BITMASK{attacktype}
5219     }
5220     ],
5221     [
5222     'msg',
5223     {
5224     desc => 'When the rune detonates, this text is displayed to the victim. For especially powerful runes, create an appropriate thrilling description. ;)',
5225     end => 'endmsg',
5226     name => 'detonation text',
5227     type => 'text'
5228     }
5229     ]
5230 root 1.3 ],
5231     desc => 'A rune is a magical enscription on the dungeon floor. <br><br> Runes hit any monster or person who steps on them for \'dam\' damage in \'attacktype\' attacktype. Alternatively, the rune could contain any spell, and will cast this spell when it detonates. Yet another kind is the "summoning rune", summoning predefined monsters of any kind, at detonation. <br><br> Many runes are already defined in the archetypes.',
5232     ignore => [
5233     'no_pick',
5234     'title',
5235     'name_pl',
5236     'weight',
5237     'value',
5238     'material',
5239     'unpaid'
5240     ],
5241 root 1.5 name => 'Rune',
5242 root 1.4 section => [
5243     [
5244     'spellcraft',
5245 root 1.7 [
5246     [
5247     'sp',
5248     {
5249     desc => 'The selected <spell> defines the spell in the rune, if any. (Many runes do direct damage).',
5250     name => 'spell',
5251     type => 'spell'
5252     }
5253     ],
5254     [
5255     'slaying',
5256     {
5257     desc => 'Name of the spell in the rune, if any. <spell name> is optional, but if present, overrides the <spell> setting.',
5258     name => 'spell name',
5259     type => 'string'
5260     }
5261     ],
5262     [
5263     'other_arch',
5264     {
5265     desc => 'This string defines the spell in the rune, if any. <spell arch> is optional, but if present, overrides the <spell> setting. You can choose any of the existing arches.',
5266     name => 'spell arch',
5267     type => 'string'
5268     }
5269     ],
5270     [
5271     'maxsp',
5272     {
5273     desc => 'If set, the rune will cast it\'s containing spell (if any) in this <direction>.In most cases this appears useless because the spell directly hits the player.',
5274     name => 'direction',
5275     type => 'list',
5276     value => $LIST{direction}
5277     }
5278     ],
5279     [
5280     'race',
5281     {
5282     desc => 'If this is set to the arch name of any monster, together with <spell name> "summon evil monster", the rune will summon a bunch of those on detonation. (dam and attacktype will still be ignored in this case). Runes are even capable of summoning multi-square monsters, given enough space. You\'d better test it though.',
5283     name => 'summon monster',
5284     type => 'string'
5285     }
5286     ],
5287     [
5288     'maxhp',
5289     {
5290     desc => 'This should only be set to a summoning rune. It will then summon that many creatures of the kind <summon monster>.',
5291     name => 'summon amount',
5292     type => 'int'
5293     }
5294     ]
5295     ]
5296 root 1.4 ]
5297     ],
5298 root 1.3 use => 'Avoid monsters stepping on your runes. For example, summoning runes together with spellcasting- and attack-runes is usually a bad idea.'
5299     },
5300     Savebed => {
5301 root 1.7 attr => [
5302     [
5303     'no_pick',
5304     {
5305     type => 'fixed',
5306     value => 1
5307     }
5308     ],
5309     [
5310     'no_magic',
5311     {
5312     type => 'fixed',
5313     value => 1
5314     }
5315     ],
5316     [
5317     'damned',
5318     {
5319     type => 'fixed',
5320     value => 1
5321     }
5322     ]
5323     ],
5324 root 1.3 desc => 'When the player applies a savebed, he is not only saved. Both his respawn-after-death and his word-of-recall positions are pointing to the last-applied savebed.',
5325     ignore => [
5326     $IGNORE_LIST{non_pickable}
5327     ],
5328 root 1.5 name => 'Savebed',
5329 root 1.3 use => 'Put savebed locations in towns, do not put them into dungeons. It is absolutely neccessary that a place with savebeds is 100% secure. That means: <UL> <LI> Monsters must not be able to reach the savebeds under any circumstances! <LI> If there are NPCs around, make sure they have the friendly-flag set. <LI> Insert a relyable exit! Make sure there is no possibility that players get trapped in a savebed location. <LI> If possible, mark the whole site as no-spell area (Insert this arch called "dungeon_magic" everywhere). This is not required, but it makes the place much more safe. </UL>'
5330     },
5331     Scroll => {
5332 root 1.7 attr => [
5333     [
5334     'level',
5335     {
5336     desc => 'The spell of the scroll will be casted at this level. This value should always be set, at least to 1.',
5337     name => 'casting level',
5338     type => 'int'
5339     }
5340     ],
5341     [
5342     'sp',
5343     {
5344     desc => 'When a player/monster applies this scroll, the selected <spell> will be casted (once). This should work for any given spell.',
5345     name => 'spell',
5346     type => 'spell'
5347     }
5348     ],
5349     [
5350     'startequip',
5351     {
5352     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
5353     name => 'godgiven item',
5354     type => 'bool'
5355     }
5356     ]
5357     ],
5358 root 1.3 desc => 'Scrolls contain spells (similar to spell-potions). Unlike potions, scrolls require a certain literacy skill to read successfully. Accordingly, for a successful reading, a small amount of experience is gained. Scrolls allow only one time usage, but usually they are sold in bulks.',
5359     ignore => [
5360     'title'
5361     ],
5362 root 1.5 name => 'Scroll',
5363 root 1.3 use => 'For low level quests, scrolls of healing/curing-spells can be a nice reward. At higher levels, scrolls become less and less useful.'
5364     },
5365     Shield => {
5366 root 1.7 attr => [
5367     [
5368     'magic',
5369     {
5370     desc => '<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armour-class bonus on the shield.',
5371     name => 'magic bonus',
5372     type => 'int'
5373     }
5374     ]
5375     ],
5376 root 1.3 desc => 'Wearing a shield, the object\'s stats will directly be inherited to the player. Shields usually provide good defense, only surpassed by brestplate armour. Resistances on shields aren\'t uncommon either.',
5377     import => [
5378     $TYPE{Amulet}
5379     ],
5380 root 1.5 name => 'Shield',
5381 root 1.3 use => 'Feel free to create your own special artifacts. However, it is very important that you keep your artifact in balance with existing maps.'
5382     },
5383     'Shooting Weapon' => {
5384 root 1.7 attr => [
5385     [
5386     'race',
5387     {
5388     desc => 'Only projectiles with matching <ammunition class> can be fired with this weapon. For normal bows set "arrows", for normal crossbows set "crossbow bolts". In certain cases, the ammunition class is displayed in the game. Hence, when you create a new ammunition class, choose an intuitive name like "missiles", "spirit bolts" - whatever.',
5389     name => 'ammunition class',
5390     type => 'string'
5391     }
5392     ],
5393     [
5394     'sp',
5395     {
5396     desc => 'After shooting a projectile, the player is frozen for a short period of time (to prevent shooting arrows machine-gun-like). The greater <shooting speed>, the shorter this period of time. 1 is minimum (=worst) and 100 is maximum (=best) value. You shouldn\'t set <shooting speed> lower than 10. YOU MUST NOT SET IT TO ZERO! (That would freeze the player for eternety).',
5397     name => 'shooting speed',
5398     type => 'int'
5399     }
5400     ],
5401     [
5402     'dam',
5403     {
5404     desc => 'The <base damage> significantly affects the damage done by using this weapon. This damage is added to the projectile damage and then (if <ignore strength> disabled) a bonus according to the player\'s strength is added.',
5405     name => 'base damage',
5406     type => 'int'
5407     }
5408     ],
5409     [
5410     'wc',
5411     {
5412     desc => 'This value is supposed to be the base <weaponclass>, but it seems to have rather little effect. High values are good here, low values bad.',
5413     name => 'weaponclass',
5414     type => 'int'
5415     }
5416     ],
5417     [
5418     'item_power',
5419     {
5420     desc => 'The <item power> value measures how "powerful" an artifact is. Players will only be able to wear equipment with a certain total amount of <item power>, depending on their own level. This is the only way to prevent low level players to wear "undeserved" equipment (like gifts from other players or cheated items). It is very important to adjust the <item power> value carefully for every artifact you create! If zero/unset, the CF server will calculate a provisional value at runtime, but this is never going to be an accurate measurement of <item power>.',
5421     name => 'item power',
5422     type => 'int'
5423     }
5424     ],
5425     [
5426     'no_strength',
5427     {
5428     desc => 'Usually the player\'s strentgh takes effect on the damage done by the shooting weapon. If <ignore strength> is set, the player\'s strength is ignored.',
5429     name => 'ignore strength',
5430     type => 'bool'
5431     }
5432     ],
5433     [
5434     'damned',
5435     {
5436     desc => 'A damned shooting weapon cannot be unwielded unless the curse is removed. Removing damnations is a tick harder than removing curses.',
5437     name => 'damnation',
5438     type => 'bool'
5439     }
5440     ],
5441     [
5442     'cursed',
5443     {
5444     desc => 'A cursed shooting weapon cannot be unwielded unless the curse is removed.',
5445     name => 'curse',
5446     type => 'bool'
5447     }
5448     ],
5449     [
5450     'unique',
5451     {
5452     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good.',
5453     name => 'unique item',
5454     type => 'bool'
5455     }
5456     ],
5457     [
5458     'startequip',
5459     {
5460     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
5461     name => 'godgiven item',
5462     type => 'bool'
5463     }
5464     ],
5465     [
5466     'msg',
5467     {
5468     desc => 'This text describes the weapons\'s "story". Every decent artifact weapon should have such a description.',
5469     end => 'endmsg',
5470     name => 'description',
5471     type => 'text'
5472     }
5473     ]
5474     ],
5475 root 1.3 desc => 'Schooting weapons like bows/crossbows are used to shoot projectiles (arrows/bolts). Shooting weapons and normal (melee) weapons can be wielded both at the same time. Like with any other equipment, stats/bonuses from shooting weapons are directly inherited to the player. <br><br> It\'s very easy to add new pairs of weapons &amp; projectiles. Just set matching &lt;ammunition class&gt; both for shooting weapon and projectile.',
5476 root 1.5 name => 'Shooting Weapon',
5477 root 1.4 section => [
5478     [
5479     'stats',
5480 root 1.7 [
5481     [
5482     'Str',
5483     {
5484     desc => 'The player\'s strentgh will rise/fall by the given value while wearing this shooting weapon.',
5485     name => 'strength',
5486     type => 'int'
5487     }
5488     ],
5489     [
5490     'Dex',
5491     {
5492     desc => 'The player\'s dexterity will rise/fall by the given value while wearing this shooting weapon.',
5493     name => 'dexterity',
5494     type => 'int'
5495     }
5496     ],
5497     [
5498     'Con',
5499     {
5500     desc => 'The player\'s constitution will rise/fall by the given value while wearing this shooting weapon.',
5501     name => 'constitution',
5502     type => 'int'
5503     }
5504     ],
5505     [
5506     'Int',
5507     {
5508     desc => 'The player\'s intelligence will rise/fall by the given value while wearing this shooting weapon.',
5509     name => 'intelligence',
5510     type => 'int'
5511     }
5512     ],
5513     [
5514     'Pow',
5515     {
5516     desc => 'The player\'s power will rise/fall by the given value while wearing this shooting weapon.',
5517     name => 'power',
5518     type => 'int'
5519     }
5520     ],
5521     [
5522     'Wis',
5523     {
5524     desc => 'The player\'s wisdom will rise/fall by the given value while wearing this shooting weapon.',
5525     name => 'wisdom',
5526     type => 'int'
5527     }
5528     ],
5529     [
5530     'Cha',
5531     {
5532     desc => 'The player\'s charisma will rise/fall by the given value while wearing this shooting weapon.',
5533     name => 'charisma',
5534     type => 'int'
5535     }
5536     ]
5537     ]
5538     ],
5539     [
5540     'bonus',
5541     [
5542     [
5543     'luck',
5544     {
5545     desc => 'With positive luck bonus, the player is more likely to succeed in all sorts of things (spellcasting, praying,...). Unless the <luck bonus> is very high, the effect will be barely visible in-game. Luck bonus on one piece of equipment should never exceed 3, and such bonus should not be too frequently available.',
5546     name => 'luck bonus',
5547     type => 'int'
5548     }
5549     ],
5550     [
5551     'magic',
5552     {
5553     desc => '<Magic bonus> improves the quality of the shooting weapon. I\'m not sure what exactly is increased - maybe weaponclass? However, <magic bonus> seems to have a little bit of positive influence on your chance to hit.',
5554     name => 'magic bonus',
5555     type => 'int'
5556     }
5557     ]
5558     ]
5559     ]
5560     ],
5561     use => 'Shooting weapons should not add bonuses in general. There\'s already enough "equipment-slots" doing that: swords, rings, amulets, girdles etc. Schooting weapons should especially not add bonuses to the player that have nothing to do with schooting. A Wisdom bonus on a bow is crap for example! A name like "Longbow of great Wisdom" doesn\'t help - still crap.'
5562     },
5563     'Shop Floor' => {
5564     attr => [
5565     [
5566     'is_floor',
5567     {
5568     type => 'fixed',
5569     value => 1
5570     }
5571     ],
5572     [
5573     'no_pick',
5574     {
5575     type => 'fixed',
5576     value => 1
5577     }
5578     ],
5579     [
5580     'no_magic',
5581     {
5582     type => 'fixed',
5583     value => 1
5584     }
5585     ],
5586     [
5587     'auto_apply',
5588 root 1.4 {
5589 root 1.7 desc => 'If enabled, items will appear on this square when the map is loaded. You need to specify a <treasurelist> to define what kinds of items are generated. The items will be unpaid.',
5590     name => 'generate goods',
5591     type => 'bool'
5592 root 1.4 }
5593     ],
5594     [
5595 root 1.7 'randomitems',
5596     {
5597     desc => 'This entry determines what kind of treasure will appear, when <generate goods> is enabled. Look into /crossfire/share/crossfire/treasures for details about existing treasurelists.',
5598     name => 'treasurelist',
5599     type => 'treasurelist'
5600     }
5601     ],
5602     [
5603     'exp',
5604     {
5605     desc => 'The <quality level> will be used for the quality of the generated goods. If zero/unset, <quality level> 5 is used. Usually this value doesn\'t need to be set, unless you want extraordinarily good/bad quality. If you want to make a shop with very high quality, meaybe charge an entrance fee, or make the shop hard-to-come-by. Note that <quality level> mainly affects chance of magic bonus and appearance of artifact-items.',
5606     name => 'quality level',
5607     type => 'int'
5608     }
5609     ],
5610     [
5611     'damned',
5612 root 1.4 {
5613 root 1.7 desc => 'If enabled, it is impossible for players to use prayers on that spot. It also prevents players from saving. (Remember that <no magic> is always set for shop floors.)',
5614     name => 'no prayers',
5615     type => 'bool'
5616 root 1.4 }
5617     ]
5618     ],
5619 root 1.3 desc => 'Shop floor is used for shops. It acts like a combination of the common floor- and the treasure type: When the map is loaded, randomitems (depending on the setings) are generated on it. These items are all flagged as unpaid. When a player drops an item onto shop floor, the item becomes unpaid and the player receives payment according to the item\'s selling-value. Shopfloor always prevents magic (To hinder players from burning or freezing the goods).',
5620     ignore => [
5621     $IGNORE_LIST{non_pickable}
5622     ],
5623 root 1.5 name => 'Shop Floor',
5624 root 1.3 use => 'Tile your whole shop-interior space which shop floor. (That assures players receive payment for dropping items). Place shop mats to enter/leave the shop, and make sure there is no other exit than the shop mat.'
5625     },
5626     'Shop Mat' => {
5627 root 1.7 attr => [
5628     [
5629     'no_pick',
5630     {
5631     type => 'fixed',
5632     value => 1
5633     }
5634     ],
5635     [
5636 root 1.14 'move_on',
5637 root 1.7 {
5638 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
5639     name => 'movement type',
5640     type => 'bitmask',
5641     value => $BITMASK{movement_type}
5642 root 1.7 }
5643     ]
5644     ],
5645 root 1.3 desc => 'Shop mats are used for entering/leaving shops. You should always have exactly TWO shop mats on your shop-map: One inside the "shopping-area" and one outside. Shop mats don\'t use exit paths/ or -destinations. When stepping onto a shopmat the player gets beamed to the nearest other mat. If the player has unpaid items in his inventory, the price gets charged from his coins automatically. If the player has insufficient coins to buy his unpaid items, he is unable to pass any shopmat (So he has to drop unpaid items).',
5646     ignore => [
5647     $IGNORE_LIST{non_pickable}
5648     ],
5649 root 1.5 name => 'Shop Mat',
5650 root 1.3 use => 'As stated above, always place TWO shop mats into your shop. Not more and not less than that.'
5651     },
5652     'Sign & MagicMouth' => {
5653 root 1.7 attr => [
5654     [
5655     'connected',
5656     {
5657     desc => 'When a connection value is set, the message will be printed whenever the connection is triggered. This should be used in combination with <invisible> enabled and <activate by walking/flying> disabled. If activating your magic_mouth this way, the message will not only be printed to one player, but all players on the current map.',
5658     name => 'connection',
5659     type => 'int'
5660     }
5661     ],
5662     [
5663 root 1.14 'move_on',
5664 root 1.7 {
5665 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
5666     name => 'movement type',
5667     type => 'bitmask',
5668     value => $BITMASK{movement_type}
5669 root 1.7 }
5670     ],
5671     [
5672     'food',
5673     {
5674     desc => 'If a counter-value is set (greater zero), the sign/magic_mouth can be applied (printing the message) only that many times. For signs this really shouldn\'t be used, while for magic_mouths it is extremely helpful. Monsters walking over the magic_mouth do not decrease the counter. Often, you might want to have a message displayed only one time. For example: The player enters your map and you put a magic_mouth to tell him about the monsters and how dangerous they look and all. Later, when all the monsters are killed and the player leaves the map, displaying the same message a second time would be silly. <counter> 1 does a perfect job in such cases. Otherwise set <counter> zero/unset for infinite use (that is the default).',
5675     name => 'counter',
5676     type => 'int'
5677     }
5678     ],
5679     [
5680     'msg',
5681     {
5682     desc => 'This text will be displayed to the player.',
5683     end => 'endmsg',
5684     name => 'message',
5685     type => 'text'
5686     }
5687     ]
5688     ],
5689     desc => 'The purpose of a sign or magic_mouth is to display a certain message to the player. There are three ways to have the player get this message: The player walking onto it (-&gt; magic_mouth), the player pressing &lt;a&gt;pply (-&gt; sign) or the player triggering a button/handle/etc (-&gt; magic_mouth).',
5690     ignore => [
5691     $IGNORE_LIST{non_pickable}
5692     ],
5693     name => 'Sign & MagicMouth',
5694     use => 'Use signs and magic_mouths, plenty of them! Place magic_mouths to add some true roleplay feeling to your maps, support your storyline or give hints about hidden secrets/dangers. Place signs to provide the player with all kinds of useful information for getting along in your maps.'
5695     },
5696     Skill => {
5697     attr => [
5698     [
5699     'invisible',
5700     {
5701     type => 'fixed',
5702     value => 1
5703     }
5704     ],
5705     [
5706     'no_drop',
5707     {
5708     type => 'fixed',
5709     value => 1
5710     }
5711     ],
5712     [
5713     'skill',
5714     {
5715     desc => 'The <skill name> is used for matchings. When a usable object has an identical <skill name>, players (or monsters) will need this skill to apply/use the object.',
5716     name => 'skill name',
5717     type => 'string'
5718     }
5719     ],
5720     [
5721     'expmul',
5722     {
5723     desc => 'This is the ratio of experience the players total should increase by when this skill is used. If this is zero, then experience only goes to to the skill. Values higher than 1 are allowed. Note that experience rewarded to the players total is in addition to that given to the skill. Eg, if player should get 500 exp for using a skill, and expmul is 1, the player will get 500 added to that skill as well as 500 to their total.',
5724     name => 'exp multiplier',
5725     type => 'float'
5726     }
5727     ],
5728     [
5729     'subtype',
5730     {
5731     desc => 'The <skill type> defines the base functionality of the skill. Skill types are hardcoded in the Crossfire server. It isn\'t hard to create new skill types, but it requires a bit of server-coding.',
5732     name => 'skill type',
5733     type => 'list',
5734     value => $LIST{skill_type}
5735     }
5736     ],
5737     [
5738     'level',
5739     {
5740     name => 'level',
5741     type => 'int'
5742     }
5743     ],
5744     [
5745     'exp',
5746     {
5747     name => 'experience',
5748     type => 'int'
5749     }
5750     ],
5751     [
5752     'can_use_skill',
5753     {
5754     desc => 'The <is native skill> flag has an effect only when this skill object is placed in the inventory of a monster (or player). If it is set, the monster or player knows the skill natively, which means he does not need a skill tool to use it.',
5755     name => 'is native skill',
5756     type => 'bool'
5757     }
5758     ]
5759 root 1.3 ],
5760     desc => 'Skills are objects which exist in the player/monster inventory. Both NPC/monsters and players use the same skill archetypes. Not all skills are enabled for monster use however.',
5761     ignore => [
5762     $IGNORE_LIST{system_object}
5763     ],
5764 root 1.5 name => 'Skill',
5765 root 1.3 use => 'For mapmaking, Skill objects serve two purposes: <p>First, the predefined skill archtypes (in the \'skills\' directory) can be seen as the global skill definitions. A skill which doesn\'t exists as an archtype cannot be learned or used by players. When you want to use skills in your maps, you may need to look up the &lt;skill name&gt;s of defined skill archtypes, because those strings are used as a reference in many skill-related objects. </p><p> Secondly, in order to enable monsters to use skills, you will need to copy default skill archtypes into the monsters\' inventories. You can even customize the skills by changing stats. It is not recommended however, to use skills in your maps which are totally unrelated to any predefined skill archtype.</p>'
5766     },
5767     'Skill Scroll' => {
5768 root 1.7 attr => [
5769     [
5770     'race',
5771     {
5772     type => 'fixed',
5773     value => 'scrolls'
5774     }
5775     ],
5776     [
5777     'skill',
5778     {
5779     desc => 'The <skill name> matches the skill object that can be learned from this scroll.',
5780     name => 'skill name',
5781     type => 'string'
5782     }
5783     ]
5784     ],
5785 root 1.3 desc => 'By reading a skill scroll, a player has a chance to learn the contained skill.',
5786 root 1.5 name => 'Skill Scroll',
5787 root 1.3 use => 'Skill scrolls are very much sought for by players. Currently, all skill scrolls are sold in shops randomly, which is in fact not a good system. It would be nice to have some cool quests with skill scrolls rewarded at the end.'
5788     },
5789     'Special Key' => {
5790 root 1.7 attr => [
5791     [
5792     'slaying',
5793     {
5794     desc => 'This string must be identical with the <key string> in the locked door, then it can be unlocked. It can also be used to trigger inventory checkers.',
5795     name => 'key string',
5796     type => 'string'
5797     }
5798     ],
5799     [
5800     'material',
5801     {
5802     desc => 'For Special Keys, material should always be unset or set to Adamantite. This prevents the key from getting burned or otherwise destroyed.',
5803     name => 'material',
5804     type => 'bitmask',
5805     value => $BITMASK{material}
5806     }
5807     ],
5808     [
5809     'unique',
5810     {
5811     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good. This can be used if you want to sell apartments on your map: Simply sell a unique passport/key, and place an inventory checker at the entrance of your apartment.',
5812     name => 'unique item',
5813     type => 'bool'
5814     }
5815     ],
5816     [
5817     'startequip',
5818     {
5819     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
5820     name => 'godgiven item',
5821     type => 'bool'
5822     }
5823     ],
5824     [
5825     'msg',
5826     {
5827     desc => 'This will add a description to the object. The player can read this text by clicking on the item in his inventory. Use this message to describe what the key/passport is good for. A player might have 50 different keys on his key-ring. Don\'t expect players to recall their purpose just by their names.',
5828     end => 'endmsg',
5829     name => 'description',
5830     type => 'text'
5831     }
5832     ]
5833     ],
5834 root 1.3 desc => 'When carrying the appropriate special key, a locked door can be opened. The key will dissapear. <br><br> This object-type can also be used for "passport"-like items: When walking onto an invetory checker, a gate for example might get opened. The "passport" will stay in the player\'s inventory.',
5835     ignore => [
5836     'material'
5837     ],
5838 root 1.5 name => 'Special Key',
5839 root 1.3 use => 'How to make a "passport": You take the special key arch (archetype name is "key2"), set the face to something like card.111 and the name to "passport" - that\'s all. The &lt;key string&gt; certainly must match with the appropiate inventory checker. <br><br> Of course you can be creative with names and faces of key-objects. A "mysterious crystal" or a "big dragon claw" (with appropriate faces) appear more interesting than just a "strange key", or "passport".'
5840     },
5841     Spell => {
5842 root 1.7 attr => [
5843     [
5844     'no_drop',
5845     {
5846     type => 'fixed',
5847     value => 1
5848     }
5849     ],
5850     [
5851     'invisible',
5852     {
5853     type => 'fixed',
5854     value => 1
5855     }
5856     ],
5857     [
5858     'skill',
5859     {
5860     desc => 'The <skill name> matches the skill which is needed to cast this spell. This should be one out of "sorcery", "pyromancy", "evocation", "summoning" or "praying". If you want to fiddle with these, please take care not to upset the concept and balance of the various skills.',
5861     name => 'skill name',
5862     type => 'string'
5863     }
5864     ],
5865     [
5866     'subtype',
5867     {
5868     desc => 'The <spell type> defines the basic type of spell. Some of these types are of a more generic nature than others.',
5869     name => 'spell type',
5870     type => 'list',
5871     value => $LIST{spell_type}
5872     }
5873     ],
5874     [
5875     'level',
5876     {
5877     name => 'spell level',
5878     type => 'int'
5879     }
5880     ],
5881     [
5882     'casting_time',
5883     {
5884     name => 'casting time',
5885     type => 'int'
5886     }
5887     ],
5888     [
5889     'duration',
5890     {
5891     name => 'duration',
5892     type => 'int'
5893     }
5894     ],
5895     [
5896     'other_arch',
5897     {
5898     name => 'create object',
5899     type => 'string'
5900     }
5901     ],
5902     [
5903     'sp',
5904     {
5905     name => 'cost spellpoints',
5906     type => 'int'
5907     }
5908     ],
5909     [
5910     'grace',
5911     {
5912     name => 'cost grace',
5913     type => 'int'
5914     }
5915     ],
5916     [
5917     'maxsp',
5918     {
5919     name => 'double cost per level',
5920     type => 'int'
5921     }
5922     ]
5923     ],
5924 root 1.3 desc => 'Spell objects define a spell. When a spell is put in a spellbook, players can learn it by reading the book. Once learned, players can use the spell as often as they like. With increasing skill level of the player, spells may gain power but also increase cost.<br> Monsters can use spells which are put in their inventory (provided that certain "enabling" settings are correct). The monster\'s &lt;treasurelist&gt; can also be used to provide it with spells.',
5925     ignore => [
5926     $IGNORE_LIST{system_object}
5927     ],
5928 root 1.5 name => 'Spell',
5929 root 1.3 use => 'A lot of the spells\' settings can be tuned and customized. When creating new spells which are accessible to players, it is important to think about balance. A single spell which is too powerful and/or too easy to use can eventually toss the whole skill and magic school system out of whack. Testing new spells is quite important therefore.'
5930     },
5931     Spellbook => {
5932 root 1.7 attr => [
5933     [
5934     'skill',
5935     {
5936     type => 'fixed',
5937     value => 'literacy'
5938     }
5939     ],
5940     [
5941     'randomitems',
5942     {
5943     desc => 'There are two ways to put spells into a spellbook: 1. Put a spell object in the books inventory. In this case, treasurelist must be set to <none>. 2. Choose a treasurelist which contains spells. In that way, a spell will be chosen randomly from the list.',
5944     name => 'treasurelist',
5945     type => 'treasurelist'
5946     }
5947     ],
5948     [
5949     'startequip',
5950     {
5951     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
5952     name => 'godgiven item',
5953     type => 'bool'
5954     }
5955     ],
5956     [
5957     'msg',
5958     {
5959     desc => 'This text may contain a nice description of the spellbook\'s cover or something.',
5960     end => 'endmsg',
5961     name => 'description',
5962     type => 'text'
5963     }
5964     ]
5965     ],
5966 root 1.3 desc => 'By reading a spellbook, the player has a chance of learning the contained spell. Once learned from a book, the spell is available forever. Spellbooks with high level spells require some skill-level to read.<br><br> You can create widely customized spells only by adjusting the spell object in the spellbooks inventory. Refer to the description of spell objects for detailed information how to customize spells.<br> If you want to have a random spellbook instead, choose a &lt;treasurelist&gt; with a compilation of spells that the book may contain.',
5967 root 1.5 name => 'Spellbook',
5968 root 1.3 use => 'Don\'t put any of the godgiven spells into a spellbook! These are reserved for the followers of the appropriate cults. Handing them out in a spellbook would violate the balance between different religions. <br><br> Note that there is no fundamental difference between the spellbooks of varying schools (pyromancy, sorcery, evocation, summoning, and even praying). The difference lies only in the spells they contain. It is up to you, the mapmaker, to pick the right type of book for your spells.'
5969     },
5970     Spinner => {
5971 root 1.7 attr => [
5972     [
5973     'sp',
5974     {
5975     desc => 'The spinner will change the direction of flying objects by 45 degrees per <direction number>. Negative values spin clockwise, positive values counter clockwise. Example: <direction number> -2 means spin 90 degrees clockwise.',
5976     name => 'direction number',
5977     type => 'int'
5978     }
5979     ],
5980     [
5981 root 1.14 'move_on',
5982 root 1.7 {
5983 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
5984     name => 'movement type',
5985     type => 'bitmask',
5986     value => $BITMASK{movement_type}
5987 root 1.7 }
5988     ]
5989     ],
5990 root 1.3 desc => 'Spinners change the direction of spell objects and other projectiles that fly past. Unlike directors, it does make a difference from what angle you shoot into the spinner. The direction of objects flying past is always changed by a certain degree.',
5991     ignore => [
5992     $IGNORE_LIST{non_pickable}
5993     ],
5994 root 1.5 name => 'Spinner',
5995 root 1.3 use => 'Spinners are very rarely used. I believe they are quite confusing and pointless. The only use I can think of is building some puzzle about where to shoot into spinners to shoot somewhere you otherwise couldn\'t. When placing spinners on a map with magic walls, make sure the spell- projectiles from magic walls don\'t get to fly in loops.'
5996     },
5997     Swamp => {
5998 root 1.7 attr => [
5999     [
6000     'is_floor',
6001     {
6002     type => 'fixed',
6003     value => 1
6004     }
6005     ],
6006     [
6007     'is_wooded',
6008     {
6009     type => 'fixed',
6010     value => 1
6011     }
6012     ],
6013     [
6014     'speed',
6015     {
6016     desc => 'The higher the <drowning speed>, the faster will players and items sink into the swamp. Swamp with very high <drowning speed> can be a nasty and unexpected death-trap. Players should get a warning before such areas.',
6017     name => 'drowning speed',
6018     type => 'float'
6019     }
6020     ],
6021     [
6022 root 1.17 'speed_left',
6023     {
6024     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
6025     name => 'speed left',
6026     type => 'float'
6027     }
6028     ],
6029     [
6030 root 1.14 'move_on',
6031     {
6032     desc => 'Which movement types automatically (as opposed to manually) activate this object.',
6033     name => 'movement type',
6034     type => 'bitmask',
6035     value => $BITMASK{movement_type}
6036     }
6037     ],
6038     [
6039     'move_block',
6040 root 1.7 {
6041 root 1.14 desc => 'Objects using these movement types cannot move over this space.',
6042     name => 'blocked movement',
6043     type => 'bitmask',
6044     value => $BITMASK{movement_type}
6045     }
6046     ],
6047     [
6048     'move_allow',
6049     {
6050     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
6051     name => 'allowed movement',
6052     type => 'bitmask',
6053     value => $BITMASK{movement_type}
6054     }
6055     ],
6056     [
6057     'move_slow',
6058     {
6059     desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
6060     name => 'slowed movement',
6061     type => 'bitmask',
6062     value => $BITMASK{movement_type}
6063     }
6064     ],
6065     [
6066     'move_slow_penalty',
6067     {
6068     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
6069     name => 'slow movement penalty',
6070 root 1.7 type => 'int'
6071     }
6072     ],
6073     [
6074     'no_magic',
6075     {
6076     desc => 'If enabled, it is impossible for players to use (wizard-) spells on that spot.',
6077     name => 'no spells',
6078     type => 'bool'
6079     }
6080     ],
6081     [
6082     'damned',
6083     {
6084     desc => 'If enabled, it is impossible for players to use prayers on that spot. It also prevents players from saving.',
6085     name => 'no prayers',
6086     type => 'bool'
6087     }
6088     ]
6089     ],
6090 root 1.3 desc => 'Swamp areas show a special behaviour: When a player stands still on a swamp-square for too long, he will start to sink in and eventually drown and die. Items dropped on the swamp sink in and dissapear. Players with knowledge of the woodsman skill are a lot less likely to die in the swamp.',
6091     ignore => [
6092     $IGNORE_LIST{non_pickable}
6093 root 1.5 ],
6094     name => 'Swamp'
6095 root 1.3 },
6096     Teleporter => {
6097 root 1.7 attr => [
6098     [
6099     'slaying',
6100     {
6101     desc => 'The exit path specifies the map that the player is transferred to. <exit path> can be an absolute path, beginning with \'/\' (for example "/peterm/FireTemple/fire1"). It can also be a relative path, not beginning with \'/\' (On the map "/peterm/FireTemple/Fire2" for example I could use the relative path "Fire1"). Use relative paths whenever possible! Note that upper/lower case must always be set correctly. However, please use lower case only. If the <exit path> is set, ONLY players can get teleported. If the <exit path> is unset (empty), anything can get teleported: Players, monsters and items. In this case, the destined map is automatically the same map the teleporter is on.',
6102     name => 'exit path',
6103     type => 'string'
6104     }
6105     ],
6106     [
6107     'hp',
6108     {
6109     desc => 'The exit destinations define the (x, y)-coordinates where the exit leads to. If both are set to zero and <exit path> is empty, the player will get teleported to another, randomly chosen teleporter on the same map (Slightly confusing for the player though). Make sure there actually *is* a second one in that case. If both are set to zero and <exit path> is set, the player will be transferred to the "default enter location" of the destined map. The latter can be set in the map-properties as "Enter X/Y". Though, please DO NOT use that. It turned out to be a source for numerous map-bugs.',
6110     name => 'destination X',
6111     type => 'int'
6112     }
6113     ],
6114     [
6115     'sp',
6116     {
6117     desc => 'The exit destinations define the (x, y)-coordinates where the exit leads to. If both are set to zero and <exit path> is empty, the player will get teleported to another, randomly chosen teleporter on the same map (Slightly confusing for the player though). Make sure there actually *is* a second one in that case. If both are set to zero and <exit path> is set, the player will be transferred to the "default enter location" of the destined map. The latter can be set in the map-properties as "Enter X/Y". Though, please DO NOT use that. It turned out to be a source for numerous map-bugs.',
6118     name => 'destination Y',
6119     type => 'int'
6120     }
6121     ],
6122     [
6123     'connected',
6124     {
6125     desc => 'If a connection value is set, the teleporter will be activated whenever the connection is triggered. To use this properly, <activation speed> must be zero.',
6126     name => 'connection',
6127     type => 'int'
6128     }
6129     ],
6130     [
6131     'speed',
6132     {
6133     desc => 'If the <activation speed> is nonzero, the teleporter will automatically be activated in regular time-intervals. Hence, the player can just step on it and gets teleported sooner or later. The duration between two activates depends on the given value. Default in the teleporter arch is <activation speed> 0.1. VERY IMPORTANT: If you want to have your teleporter activated via button/handle/magic_ear/etc, you must set <activation speed> to zero!',
6134     name => 'activation speed',
6135     type => 'float'
6136     }
6137 root 1.17 ],
6138     [
6139     'speed_left',
6140     {
6141     desc => 'The speed left to the object. On every tick, if this value is higher than 0, the object acts/triggers/moves etc. and the value gets decremented by 1. Otherwise, it is incremented by <speed> on every tick.',
6142     name => 'speed left',
6143     type => 'float'
6144     }
6145 root 1.7 ]
6146     ],
6147 root 1.3 desc => 'When the player walks into a teleporter, he is transferred to a different location. The main difference to the object-type exit is the possibility to have teleporters connected to levers/buttons/etc. Sometimes teleporters are activated even against the players will. <br><br> Unlike exits, teleporters can also transfer items and monsters to different locations on the same map.',
6148     ignore => [
6149     $IGNORE_LIST{non_pickable}
6150     ],
6151 root 1.5 name => 'Teleporter',
6152 root 1.3 use => 'When creating maps, I guess sooner or later you\'ll want to have an invisible teleporter. If using "invisible 1", the teleporter can still be discovered with the show_invisible spell. And in some cases you can\'t place it under the floor to prevent this. <br><br> Fortunately, there is a cool trick to make a perfectly invisible teleporter: You simply add teleporter functionality to the floor itself. That means: You take the floor arch (e.g. "flagstone"), set "type 41", and add slaying/hp/sp/connected... everything you need.'
6153     },
6154 root 1.8 'Timed Gate' => {
6155     attr => [
6156     [
6157     'no_pick',
6158     {
6159     type => 'fixed',
6160     value => 1
6161     }
6162     ],
6163     [
6164     'connected',
6165     {
6166     desc => 'Whenever the inventory checker is triggered, all objects with identical <connection> value get activated. This only makes sense together with <blocking passage> disabled. If unset, the gate opens automatically after some time.',
6167     name => 'connection',
6168     type => 'int'
6169     }
6170     ],
6171     [
6172     'wc',
6173     {
6174     desc => 'The <position state> defines the position of the gate: Zero means completely open/down, the "number of animation-steps" (usually about 6 or 7) means completely closed/up state. I suggest you don\'t mess with this value - Leave the default in place.',
6175     name => 'position state',
6176     type => 'int'
6177     }
6178     ],
6179     [
6180 root 1.14 'move_block',
6181     {
6182     desc => 'Objects using these movement types cannot move over this space.',
6183     name => 'blocked movement',
6184     type => 'bitmask',
6185     value => $BITMASK{movement_type}
6186     }
6187     ],
6188     [
6189     'move_allow',
6190     {
6191     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
6192     name => 'allowed movement',
6193     type => 'bitmask',
6194     value => $BITMASK{movement_type}
6195     }
6196     ],
6197     [
6198     'move_slow',
6199 root 1.8 {
6200 root 1.14 desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
6201     name => 'slowed movement',
6202     type => 'bitmask',
6203     value => $BITMASK{movement_type}
6204     }
6205     ],
6206     [
6207     'move_slow_penalty',
6208     {
6209     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
6210     name => 'slow movement penalty',
6211     type => 'int'
6212 root 1.8 }
6213     ],
6214     [
6215     'no_magic',
6216     {
6217     desc => 'Restricting the use of spells to pass this gate. This has an effect only if <block view> is disabled.',
6218     name => 'restrict spells',
6219     type => 'bool'
6220     }
6221     ],
6222     [
6223     'damned',
6224     {
6225     desc => 'Restricting the use of prayers to pass this door. This has an effect only if <block view> is disabled.',
6226     name => 'restrict prayers',
6227     type => 'bool'
6228     }
6229     ],
6230     [
6231     'hp',
6232     {
6233     desc => 'Defines the duration the gate remains closed. This only takes effect if the gate is not connected.',
6234     name => 'open duration',
6235     type => 'int'
6236     }
6237     ]
6238     ],
6239     desc => 'Gates play an important role in Crossfire. Gates can be opened by activating a button/trigger, by speaking passwords (-> magic_ear) or carrying special key-objects (-> inventory checker). Unlike locked doors, gates can get shut again after a player has passed, which makes them more practical in many cases. Unlike normal gates, timed gates open when triggered but automatically close again after some time.',
6240     ignore => [
6241     $IGNORE_LIST{non_pickable}
6242     ],
6243     name => 'Timed Gate',
6244     use => 'Use gates to divide your maps into separated areas. After solving area A, the player gains access to area B, and so on. Make your maps more complex than "one-way".'
6245     },
6246 root 1.3 Trap => {
6247 root 1.7 attr => [
6248     [
6249     'no_pick',
6250     {
6251     type => 'fixed',
6252     value => 1
6253     }
6254     ],
6255     [
6256 root 1.14 'move_on',
6257 root 1.7 {
6258 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
6259     name => 'movement type',
6260     type => 'bitmask',
6261     value => $BITMASK{movement_type}
6262 root 1.7 }
6263     ],
6264     [
6265     'level',
6266     {
6267     desc => 'Level effects how easily a trap may be found and disarmed, and how much experience the player gets for doing so. Beware: High level traps can be quite a cheap source of experience! So either make them tough, or keep the level low.',
6268     name => 'trap level',
6269     type => 'int'
6270     }
6271     ],
6272     [
6273     'Cha',
6274     {
6275     desc => 'This value determines what fraction of the time the trap is visible: It\'ll be randomly visible 1/<visibility> of the time. Also effects how easily the trap may be found.',
6276     name => 'visibility',
6277     type => 'int'
6278     }
6279     ],
6280     [
6281     'hp',
6282     {
6283     desc => 'The trap will detonate <number of charges> times before disappearing.',
6284     name => 'number of charges',
6285     type => 'int'
6286     }
6287     ],
6288     [
6289     'dam',
6290     {
6291     desc => '<direct damage> specifies how much damage is done by the trap. This should be set in reasonable relation to the trap\'s level.',
6292     name => 'direct damage',
6293     type => 'int'
6294     }
6295     ],
6296     [
6297     'attacktype',
6298     {
6299     desc => 'This attribute defines what attacktype to use for direct damage when the trap detonates.',
6300     name => 'attacktype',
6301     type => 'bitmask',
6302     value => $BITMASK{attacktype}
6303     }
6304     ],
6305     [
6306     'connected',
6307     {
6308     desc => 'When the trap is detonated, all objects with the same connection value get activated.',
6309     name => 'connection',
6310     type => 'int'
6311     }
6312     ],
6313     [
6314     'msg',
6315     {
6316     desc => 'When the trap detonates, this text is displayed to the victim. For especially powerful or complex traps, create an appropriate and thrilling description. ;)',
6317     end => 'endmsg',
6318     name => 'detonation text',
6319     type => 'text'
6320     }
6321     ]
6322     ],
6323 root 1.3 desc => 'A trap is a object that can either do damage or trigger another connected object when detonated. Traps are like runes except they are not magical in nature, and generally have either a physical attack or trigger a reaction. <br><br> Traps hit any monster or person who steps on them for \'dam\' damage in \'attacktype\' attacktype and/or trigger a reaction. <br><br> Many traps are already defined in the archetypes.',
6324     ignore => [
6325     'no_pick',
6326     'title',
6327     'name_pl',
6328     'weight',
6329     'value',
6330     'material',
6331     'unpaid'
6332     ],
6333 root 1.5 name => 'Trap',
6334 root 1.3 use => 'Avoid monsters stepping on your traps. For example, a party of orcs setting off your lightning wall and pit trap is usually a bad idea.'
6335     },
6336     Trapdoor => {
6337 root 1.7 attr => [
6338     [
6339     'no_pick',
6340     {
6341     type => 'fixed',
6342     value => 1
6343     }
6344     ],
6345     [
6346 root 1.14 'move_on',
6347 root 1.7 {
6348 root 1.14 desc => 'Which movement types automatically (as opposed to manually) activate this object.',
6349     name => 'movement type',
6350     type => 'bitmask',
6351     value => $BITMASK{movement_type}
6352 root 1.7 }
6353     ],
6354     [
6355     'weight',
6356     {
6357     desc => 'This value defines how much weight the trapdoor can hold. Once items or creatures are gathered on the trapdoor, with a total weight surpassing this value, then the trapdoor will open and things start falling through.',
6358     name => 'hold weight',
6359     type => 'int'
6360     }
6361     ],
6362     [
6363     'hp',
6364     {
6365     desc => 'The trapdoor will transport creatures (and items) randomly into a two-square radius of the destination coordinates. If the destination square becomes blocked, the trapdoor will act like being filled up and not work anymore!',
6366     name => 'destination X',
6367     type => 'int'
6368     }
6369     ],
6370     [
6371     'sp',
6372     {
6373     desc => 'The trapdoor will transport creatures (and items) randomly into a two-square radius of the destination coordinates. If the destination square becomes blocked, the trapdoor will act like being filled up and not work anymore!',
6374     name => 'destination Y',
6375     type => 'int'
6376     }
6377     ]
6378     ],
6379 root 1.3 desc => 'Trapdoors are very similar to pits. The difference is that they can not be closed. Instead, the weight of the object on the trapdoor determines weither it slams the trapdoor open and falls through or not.<br> Once a trapdoor has been opened (by a creature or items of sufficient weight,) it remains open, acting like an opened pit.',
6380     ignore => [
6381     $IGNORE_LIST{non_pickable}
6382     ],
6383 root 1.5 name => 'Trapdoor',
6384 root 1.3 use => 'Trapdoors should be used in the same fashion as pits: They should always drop the victims to some kind of lower level. They are not supposed to be used to randomly interconnect maps like teleporters.'
6385     },
6386     Treasure => {
6387 root 1.7 attr => [
6388     [
6389     'randomitems',
6390     {
6391     desc => 'This entry determines what kind of treasure will appear. Look into /crossfire/share/crossfire/treasures for details about existing treasurelists.',
6392     name => 'treasurelist',
6393     type => 'treasurelist'
6394     }
6395     ],
6396     [
6397     'auto_apply',
6398     {
6399     desc => '"Auto-generate" must be set in order to have the treasure be created when the map is loaded. If you want to create a random treasure chest, you unset this flag. That way, the player has to apply the object (the chest), then the treasure is generated.',
6400     name => 'auto-generate',
6401     type => 'bool'
6402     }
6403     ],
6404     [
6405     'hp',
6406     {
6407     desc => '"Create number" specifies how many pieces of the given treasurelist will appear. Note that for every piece there is a chance that nothing is generated. Also, sometimes there can be stacks of items generated, like for gems/money.',
6408     name => 'create number',
6409     type => 'int'
6410     }
6411     ],
6412     [
6413     'exp',
6414     {
6415     desc => 'The <quality level> will be used for the quality of the generated treasure instead of the map difficulty (as was done with shops). If zero/unset, the map difficulty will instead be used. (Example for comparison: Shop floors generate treasure of <quality level> 5 per default).',
6416     name => 'quality level',
6417     type => 'int'
6418     }
6419     ]
6420     ],
6421 root 1.3 desc => 'A treasure-object turns into certain randomitems when the map is loaded into the game.',
6422     ignore => [
6423     'nrof',
6424     'title',
6425     'name_pl',
6426     'weight',
6427     'value',
6428     'material'
6429     ],
6430 root 1.5 name => 'Treasure',
6431 root 1.3 use => 'About usage of the "random-artifact" treasurelist: This will generate powerful stuff like girdles, xray helmets, special swords etc. If you put this as reward to your quest, players might be motivated to do it more than once. BUT, by doing so they will get a huge number of different artifacts! Besides, players will always seek the place with the most easy-to-get random artifact and ignore all others. My advice: Don\'t use it! Attract players with good fighting experience (from monsters), potions, spellbooks, money, and non-random artifacts.'
6432     },
6433     'Trigger Marker' => {
6434 root 1.7 attr => [
6435     [
6436     'no_pick',
6437     {
6438     type => 'fixed',
6439     value => 1
6440     }
6441     ],
6442     [
6443     'slaying',
6444     {
6445     desc => 'The <key string> can be detected by inv. checkers/detectors. If the player already has a force with that <key string>, there won\'t be inserted a second one.',
6446     name => 'key string',
6447     type => 'string'
6448     }
6449     ],
6450     [
6451     'connected',
6452     {
6453     desc => 'Unlike a regular marker this is the connection that triggers this marker to activate.',
6454     name => 'connection',
6455     type => 'int'
6456     }
6457     ],
6458     [
6459     'food',
6460     {
6461     desc => 'This value defines the duration of the force it inserts. If nonzero, the duration of the player\'s mark is finite: about 1 food per 10 seconds. <mark duration> zero/unset means the mark will stay on the player forever.',
6462     name => 'mark duration',
6463     type => 'int'
6464     }
6465     ],
6466     [
6467     'name',
6468     {
6469     desc => 'When the player steps onto the marker, all existing forces in the players inventory with a <key string> matching <delete mark> will be removed. If you don\'t want to remove any marks, leave this textfield empty. Note that the string <delete mark> is set as the name of this marker. So don\'t be confused, and remember changing the name will take effect on the marker\'s functionality.',
6470     name => 'delete mark',
6471     type => 'string'
6472     }
6473     ],
6474     [
6475     'msg',
6476     {
6477     desc => 'In the moment when the player gets marked, this text is displayed to him. You should really set a message in any marker you create, because it\'s the only way for the player to notice what\'s going on.',
6478     end => 'endmsg',
6479     name => 'marking message',
6480     type => 'text'
6481     }
6482     ]
6483     ],
6484 root 1.3 desc => 'A trigger marker is an object that inserts an invisible force (a mark) into a player stepping on it WHEN TRIGGERED. This force does nothing except containing a &lt;key string&gt; which can be discovered by detectors or inventory checkers. It is also possible to use markers for removing marks again. <br><br> Note that the player has no possibility to "see" his own marks, except by the effect that they cause on the maps.',
6485     ignore => [
6486     $IGNORE_LIST{system_object}
6487     ],
6488 root 1.5 name => 'Trigger Marker',
6489 root 1.3 use => 'Markers hold real cool possibilities for map-making. I encourage you to use them frequently. However there is one negative point about markers: Players don\'t "see" what\'s going on with them. It is your task, as map-creator, to make sure the player is always well informed and never confused. <br><br> Please avoid infinite markers when they aren\'t needed. They\'re using a little space in the player file after all, so if there is no real purpose, set an expire time.'
6490     },
6491     Wall => {
6492 root 1.7 attr => [
6493     [
6494 root 1.14 'move_block',
6495     {
6496     desc => 'Objects using these movement types cannot move over this space.',
6497     name => 'blocked movement',
6498     type => 'bitmask',
6499     value => $BITMASK{movement_type}
6500     }
6501     ],
6502     [
6503     'move_allow',
6504     {
6505     desc => 'Objects using these movement types are allowed to move over this space. Takes precedence over \'blocked movements\'.',
6506     name => 'allowed movement',
6507     type => 'bitmask',
6508     value => $BITMASK{movement_type}
6509     }
6510     ],
6511     [
6512     'move_slow',
6513 root 1.7 {
6514 root 1.14 desc => 'The types of movement that should by slowed down by the \'slow movement penalty\'.',
6515     name => 'slowed movement',
6516     type => 'bitmask',
6517     value => $BITMASK{movement_type}
6518     }
6519     ],
6520     [
6521     'move_slow_penalty',
6522     {
6523     desc => 'If <slow movement> is set to a value greater zero, all creatures matching \'slow move\' will be slower than normal on this spot. <slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp ... <slow movement> 7 - spider web (sticky as hell)',
6524     name => 'slow movement penalty',
6525     type => 'int'
6526 root 1.7 }
6527     ],
6528     [
6529     'can_roll',
6530     {
6531     desc => 'If set, the object is able to "roll", so it can be pushed around. This setting is used for boulders and barrels.',
6532     name => 'moveable',
6533     type => 'bool'
6534     }
6535     ],
6536     [
6537     'no_magic',
6538     {
6539     desc => 'This takes effect only with <blocksview> disabled. Restricting the use of spells to pass this wall.',
6540     name => 'restrict spells',
6541     type => 'bool'
6542     }
6543     ],
6544     [
6545     'damned',
6546     {
6547     desc => 'This takes effect only with <blocksview> disabled. Restricting the use of spells to pass this wall.',
6548     name => 'restrict prayers',
6549     type => 'bool'
6550     }
6551     ]
6552     ],
6553 root 1.3 desc => 'Walls usually block passage and sight.',
6554     ignore => [
6555     'nrof',
6556     'title',
6557     'name_pl',
6558     'value',
6559     'unpaid'
6560     ],
6561 root 1.19 name => 'Wall'
6562 root 1.3 },
6563     'Wand & Staff' => {
6564 root 1.7 attr => [
6565     [
6566     'sp',
6567     {
6568     desc => 'The <spell> specifies the contained spell.',
6569     name => 'spell',
6570     type => 'spell'
6571     }
6572     ],
6573     [
6574     'level',
6575     {
6576     desc => 'The <casting level> of the wand determines it\'s power. An average level for wands in shops is about 10.',
6577     name => 'casting level',
6578     type => 'int'
6579     }
6580     ],
6581     [
6582     'food',
6583     {
6584     desc => 'The wand can be used <number of charges> times before it is used up. It can be recharged with scrolls of charging.',
6585     name => 'number of charges',
6586     type => 'int'
6587     }
6588     ],
6589     [
6590     'startequip',
6591     {
6592     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
6593     name => 'godgiven item',
6594     type => 'bool'
6595     }
6596     ],
6597     [
6598     'msg',
6599     {
6600     desc => 'This text may contain a description of the wand.',
6601     end => 'endmsg',
6602     name => 'description',
6603     type => 'text'
6604     }
6605     ]
6606     ],
6607 root 1.3 desc => 'Wands contain a certain spell. The player can apply (ready) and fire the wand. After a defined number of casts, the wand is "used up". It is possible to recharge a wand with scrolls of charging, but usually that isn\'t worth the cost.',
6608 root 1.5 name => 'Wand & Staff',
6609 root 1.9 use => 'Wands are quite seldomly used. The reason prolly is that they\'re generally not cost-efficient. Handing out high-level wands with powerful special spells isn\'t a good idea either, because of the recharge ability. <br><br> For low levels, staffs of healing/cure and word of recall are quite desirable though. Ideal rewards for low level quests.'
6610 root 1.3 },
6611     'Weak Wall' => {
6612 root 1.7 attr => [
6613     [
6614     'alive',
6615     {
6616     type => 'fixed',
6617     value => 1
6618     }
6619     ],
6620     [
6621     'no_pick',
6622     {
6623     type => 'fixed',
6624     value => 1
6625     }
6626     ],
6627     [
6628     'tear_down',
6629     {
6630     type => 'fixed',
6631     value => 1
6632     }
6633     ],
6634     [
6635     'race',
6636     {
6637     desc => 'For weak walls, <race> should always be set to "wall", unless you create something fancy like a building which is in fact meant to be a huge animal. Note that shovels slay walls, so they do tripple damage against weak walls.',
6638     name => 'race',
6639     type => 'string'
6640     }
6641     ],
6642     [
6643     'level',
6644     {
6645     desc => 'The <level> of a weak wall works similar to monster levels. Due to the fact that weak walls cannot attack, the level is much less important though.',
6646     name => 'level',
6647     type => 'int'
6648     }
6649     ],
6650     [
6651     'hp',
6652     {
6653     desc => 'The <health points> of a weak wall define how long it takes to tear it down. With every successful hit from an opponent, <health points> get drained.',
6654     name => 'health points',
6655     type => 'int'
6656     }
6657     ],
6658     [
6659     'maxhp',
6660     {
6661     desc => '<max health> is the maximum amount of <health points> this weak wall can have. Since walls generally don\'t heal, I doubt this has much real effect.',
6662     name => 'max health',
6663     type => 'int'
6664     }
6665     ],
6666     [
6667     'ac',
6668     {
6669     desc => 'Weak walls of high <armour class> are less likely to get hit. <armour class> can be considered the "counterpiece" to <weapon class>.',
6670     name => 'armour class',
6671     type => 'int'
6672     }
6673     ]
6674     ],
6675 root 1.3 desc => 'A weak wall is a breakable spot amidsts a solid wall. Typically these weak walls look similar to their solid "relatives" except for a small crack or little chunks of wall on the ground.',
6676     ignore => [
6677     $IGNORE_LIST{non_pickable}
6678     ],
6679 root 1.5 name => 'Weak Wall',
6680 root 1.4 section => [
6681     [
6682     'resistance',
6683 root 1.7 [
6684     [
6685     'resist_physical',
6686     {
6687     name => 'resist physical %',
6688     type => 'int'
6689     }
6690     ],
6691     [
6692     'resist_magic',
6693     {
6694     name => 'resist magic %',
6695     type => 'int'
6696     }
6697     ],
6698     [
6699     'resist_fire',
6700     {
6701     name => 'resist fire %',
6702     type => 'int'
6703     }
6704     ],
6705     [
6706     'resist_electricity',
6707     {
6708     name => 'resist electricity %',
6709     type => 'int'
6710     }
6711     ],
6712     [
6713     'resist_cold',
6714     {
6715     name => 'resist cold %',
6716     type => 'int'
6717     }
6718     ],
6719     [
6720     'resist_confusion',
6721     {
6722     name => 'resist confusion %',
6723     type => 'int'
6724     }
6725     ],
6726     [
6727     'resist_acid',
6728     {
6729     name => 'resist acid %',
6730     type => 'int'
6731     }
6732     ],
6733     [
6734     'resist_drain',
6735     {
6736     name => 'resist draining %',
6737     type => 'int'
6738     }
6739     ],
6740     [
6741     'resist_weaponmagic',
6742     {
6743     name => 'resist weaponmagic %',
6744     type => 'int'
6745     }
6746     ],
6747     [
6748     'resist_ghosthit',
6749     {
6750     name => 'resist ghosthit %',
6751     type => 'int'
6752     }
6753     ],
6754     [
6755     'resist_poison',
6756     {
6757     name => 'resist poison %',
6758     type => 'int'
6759     }
6760     ],
6761     [
6762     'resist_slow',
6763     {
6764     name => 'resist slow %',
6765     type => 'int'
6766     }
6767     ],
6768     [
6769     'resist_paralyze',
6770     {
6771     name => 'resist paralyze %',
6772     type => 'int'
6773     }
6774     ],
6775     [
6776     'resist_fear',
6777     {
6778     name => 'resist fear %',
6779     type => 'int'
6780     }
6781     ],
6782     [
6783     'resist_deplete',
6784     {
6785     name => 'resist depletion %',
6786     type => 'int'
6787     }
6788     ],
6789     [
6790     'resist_turn_undead',
6791     {
6792     name => 'resist turn undead %',
6793     type => 'int'
6794     }
6795     ],
6796     [
6797     'resist_death',
6798     {
6799     name => 'resist death-attack %',
6800     type => 'int'
6801     }
6802     ],
6803     [
6804     'resist_chaos',
6805     {
6806     name => 'resist chaos %',
6807     type => 'int'
6808     }
6809     ],
6810     [
6811     'resist_blind',
6812     {
6813     name => 'resist blinding %',
6814     type => 'int'
6815     }
6816     ],
6817     [
6818     'resist_holyword',
6819     {
6820     name => 'resist holy power %',
6821     type => 'int'
6822     }
6823     ],
6824     [
6825     'resist_godpower',
6826     {
6827     name => 'resist godpower %',
6828     type => 'int'
6829     }
6830     ]
6831     ]
6832 root 1.4 ]
6833     ],
6834 root 1.3 use => 'If you want to create hidden rooms, using weak walls is alot better than completely indiscernible passages in a wall.<br> Anyways, there can be a lot more to weak walls than just finding them: Rising their defensive stats, weak walls can become a serious obstacle. An ice wall might only be torn down by a fire attack for example. A granite wall for instance might be very hard to destroy.'
6835     },
6836     Weapon => {
6837 root 1.7 attr => [
6838     [
6839     'attacktype',
6840     {
6841     desc => 'This number is a bitmask, specifying the weapon\'s attacktypes. Attacktypes are: physical, magical, fire, cold.. etc. Most artifact weapons have no more than one or two attacktypes. Keep in mind that all weapons can be blessed by the player\'s diety, thus adding an additional attacktype. When a player hits a monster with a weapon that has more than one attacktype, then he will do as much damage as the "best" of his attacktypes does. So, the more attacktypes you\'ve got, the better your chance to take advantage of a monster\'s vulnerabilities. (Btw: Same rule applies for monster vs. player.). Attacktypes "magic" and "chaos" are somehow exceptions.',
6842     name => 'attacktype',
6843     type => 'bitmask',
6844     value => $BITMASK{attacktype}
6845     }
6846     ],
6847     [
6848     'weapontype',
6849     {
6850     desc => 'The <weapontype> characterizes the weapon\'s type of physical attack. It could best be considered a "subclassification" of the physical attacktype. For now, this is only used for attack messages! You should always set this correctly when creating new weapons for your maps.',
6851     name => 'weapontype',
6852     type => 'list',
6853     value => $LIST{weapon_type}
6854     }
6855     ],
6856     [
6857     'skill',
6858     {
6859     desc => 'Matching <skill name> of the skill that is required to use this weapon.',
6860     name => 'skill name',
6861     type => 'string'
6862     }
6863     ],
6864     [
6865     'dam',
6866     {
6867     desc => 'The damage value is used as base value for how much damage the weapon does per hit. The actual damage involves more dependencies, like wielder\'s level and defender\'s level. Look at existing weapons to get a feel for the range of weapon damage values.',
6868     name => 'damage',
6869     type => 'int'
6870     }
6871     ],
6872     [
6873     'slaying',
6874     {
6875     desc => 'Slaying means the weapon does tripple (3x) damage to monsters of the specified race. If <slaying race> matches an arch name (e.g. "big_dragon"), only monsters of that archtype are hit with tripple damage. No god blessings are possible for weapons with a race set in this entry (That\'s because god blessings add tripple damage against their own enemy races). Tripple damage is very effective.',
6876     name => 'slaying race',
6877     type => 'string'
6878     }
6879     ],
6880     [
6881     'last_sp',
6882     {
6883     desc => 'The weapon speed determines how often the wielder can swing the weapon during a certain period of time. The lower the faster, <weapon speed> 1 is best (that is lightning- fast). A typical average value is 8. Speed and damage should be kept in reasonable relation.',
6884     name => 'weapon speed',
6885     type => 'int'
6886     }
6887     ],
6888     [
6889     'wc',
6890     {
6891     desc => 'The weapon class value adds to the overall weapon class of the wielder\'s melee attacks. Weapon class improves the chance of hitting the opponent.',
6892     name => 'weapon class',
6893     type => 'int'
6894     }
6895     ],
6896     [
6897     'magic',
6898     {
6899     desc => 'For a weapon, magic bonus works just like weapon class, except that magic bonus can be improved by the gods or reduced by acid. Hence, it is less useful than direct weapon class value on a weapon.',
6900     name => 'magic bonus',
6901     type => 'int'
6902     }
6903     ],
6904     [
6905     'item_power',
6906     {
6907     desc => 'The <item power> value measures how "powerful" an artifact is. Players will only be able to wear equipment with a certain total amount of <item power>, depending on their own level. This is the only way to prevent low level players to wear "undeserved" equipment (like gifts from other players or cheated items). It is very important to adjust the <item power> value carefully for every artifact you create! If zero/unset, the CF server will calculate a provisional value at runtime, but this is never going to be an accurate measurement of <item power>.',
6908     name => 'item power',
6909     type => 'int'
6910     }
6911     ],
6912     [
6913     'damned',
6914     {
6915     desc => 'A damned weapon cannot be unwielded unless the curse is removed. Removing damnations is a tick harder than removing curses.',
6916     name => 'damnation',
6917     type => 'bool'
6918     }
6919     ],
6920     [
6921     'cursed',
6922     {
6923     desc => 'A cursed weapon cannot be unwielded unless the curse is removed.',
6924     name => 'curse',
6925     type => 'bool'
6926     }
6927     ],
6928     [
6929     'lifesave',
6930     {
6931 root 1.9 desc => 'An item with this flag enabled will save the players life for one time: When the player is wearing this item and his health points reach zero, the item disappears, replenishing half of the player\'s health. An item with <save life> should not have any decent additional bonuses!',
6932 root 1.7 name => 'save life',
6933     type => 'bool'
6934     }
6935     ],
6936     [
6937     'unique',
6938     {
6939     desc => 'Unique items exist only one time on a server. If the item is taken, lost or destroyed - it\'s gone for good.',
6940     name => 'unique item',
6941     type => 'bool'
6942     }
6943     ],
6944     [
6945     'startequip',
6946     {
6947     desc => 'A godgiven item vanishes as soon as the player drops it to the ground.',
6948     name => 'godgiven item',
6949     type => 'bool'
6950     }
6951     ],
6952     [
6953     'msg',
6954     {
6955     desc => 'This text describes the weapons\'s "story". Every decent artifact weapon should have such a description.',
6956     end => 'endmsg',
6957     name => 'description',
6958     type => 'text'
6959     }
6960     ]
6961     ],
6962 root 1.3 desc => 'Wielding a weapon, the object\'s stats will directly be inherited to the player. Usually enhancing his fighting-abilities. Non-magical weapons can be improved with scrolls.',
6963 root 1.5 name => 'Weapon',
6964 root 1.4 section => [
6965     [
6966     'resistance',
6967 root 1.7 [
6968     [
6969     'resist_physical',
6970     {
6971     desc => 'This adds physical resistance to the weapon (= armour value). The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
6972     name => 'resist physical %',
6973     type => 'int'
6974     }
6975     ],
6976     [
6977     'resist_magic',
6978     {
6979     desc => 'This adds magic resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
6980     name => 'resist magic %',
6981     type => 'int'
6982     }
6983     ],
6984     [
6985     'resist_fire',
6986     {
6987     desc => 'This adds fire resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
6988     name => 'resist fire %',
6989     type => 'int'
6990     }
6991     ],
6992     [
6993     'resist_electricity',
6994     {
6995     desc => 'This adds electricity resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
6996     name => 'resist electricity %',
6997     type => 'int'
6998     }
6999     ],
7000     [
7001     'resist_cold',
7002     {
7003     desc => 'This adds fire resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
7004     name => 'resist cold %',
7005     type => 'int'
7006     }
7007     ],
7008     [
7009     'resist_confusion',
7010     {
7011     desc => 'This adds confusion resistance to the weapon. The number is a percent-value in the range 0-100. Confusion resistance is not very effective unless the value comes close to 100 (= perfect immunity).',
7012     name => 'resist confusion %',
7013     type => 'int'
7014     }
7015     ],
7016     [
7017     'resist_acid',
7018     {
7019     desc => 'This adds acid resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
7020     name => 'resist acid %',
7021     type => 'int'
7022     }
7023     ],
7024     [
7025     'resist_drain',
7026     {
7027     desc => 'This adds draining resistance to the weapon. The number is a percent-value in the range 0-100. Draining resistance is little effective unless the value is 100 (= perfect immunity).',
7028     name => 'resist draining %',
7029     type => 'int'
7030     }
7031     ],
7032     [
7033     'resist_weaponmagic',
7034     {
7035     desc => 'This adds weaponmagic resistance to the weapon. The number is a percent-value in the range 0-100. Weaponmagic resistance generally should not exist on equipment at all. Spells/Monsters doing weaponmagic damage (e.g. comet spell) are not meant to be easily resisted.',
7036     name => 'resist weaponmagic %',
7037     type => 'int'
7038     }
7039     ],
7040     [
7041     'resist_ghosthit',
7042     {
7043     desc => 'This adds ghosthit resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
7044     name => 'resist ghosthit %',
7045     type => 'int'
7046     }
7047     ],
7048     [
7049     'resist_poison',
7050     {
7051     desc => 'This adds poison resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
7052     name => 'resist poison %',
7053     type => 'int'
7054     }
7055     ],
7056     [
7057     'resist_slow',
7058     {
7059     desc => 'This adds fear resistance to the weapon. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.',
7060     name => 'resist slow %',
7061     type => 'int'
7062     }
7063     ],
7064     [
7065     'resist_paralyze',
7066     {
7067     desc => 'This adds paralyze resistance to the weapon. The number is a percent-value in the range 0-100. Paralyze resistance is little effective unless the value is 100 (= perfect immunity).',
7068     name => 'resist paralyze %',
7069     type => 'int'
7070     }
7071     ],
7072     [
7073     'resist_fear',
7074     {
7075     desc => 'This adds fear resistance to the weapon. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.',
7076     name => 'resist fear %',
7077     type => 'int'
7078     }
7079     ],
7080     [
7081     'resist_deplete',
7082     {
7083     desc => 'This adds depletion resistance to the weapon. The number is a percent-value in the range 0-100. Depletion resistance is little effective unless the value is 100 (= perfect immunity).',
7084     name => 'resist depletion %',
7085     type => 'int'
7086     }
7087     ],
7088     [
7089     'resist_death',
7090     {
7091     desc => 'This adds death-attack resistance to the weapon. The number is a percent-value in the range 0-100. Death-attack resistance is little effective unless the value is 100 (= perfect immunity). Generally, resistance to death-attack is not supposed to be available to players!',
7092     name => 'resist death-attack %',
7093     type => 'int'
7094     }
7095     ],
7096     [
7097     'resist_chaos',
7098     {
7099     desc => 'This adds chaos resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact. Note that chaos is not a stand-alone attacktype. Chaos "contains" a combination of other attacktypes.',
7100     name => 'resist chaos %',
7101     type => 'int'
7102     }
7103     ],
7104     [
7105     'resist_blind',
7106     {
7107     desc => 'This adds blinding resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.',
7108     name => 'resist blinding %',
7109     type => 'int'
7110     }
7111     ],
7112     [
7113     'resist_holyword',
7114     {
7115     desc => 'This adds holy power resistance to the weapon. The number is a percent-value in the range 0-100. Holy power is the attacktype that holyword-type spells use to hurt undead creatures. This kind of resistance is only reasonable for undead players (wraith or devourer cult). Generally, resistance to holy word should not be available for players.',
7116     name => 'resist holy power %',
7117     type => 'int'
7118     }
7119     ]
7120     ]
7121 root 1.4 ],
7122     [
7123     'stats',
7124 root 1.7 [
7125     [
7126     'Str',
7127     {
7128     desc => 'The player\'s strentgh will rise/fall by the given value while wearing this weapon.',
7129     name => 'strength',
7130     type => 'int'
7131     }
7132     ],
7133     [
7134     'Dex',
7135     {
7136     desc => 'The player\'s dexterity will rise/fall by the given value while wearing this weapon.',
7137     name => 'dexterity',
7138     type => 'int'
7139     }
7140     ],
7141     [
7142     'Con',
7143     {
7144     desc => 'The player\'s constitution will rise/fall by the given value while wearing this weapon.',
7145     name => 'constitution',
7146     type => 'int'
7147     }
7148     ],
7149     [
7150     'Int',
7151     {
7152     desc => 'The player\'s intelligence will rise/fall by the given value while wearing this weapon.',
7153     name => 'intelligence',
7154     type => 'int'
7155     }
7156     ],
7157     [
7158     'Pow',
7159     {
7160     desc => 'The player\'s power will rise/fall by the given value while wearing this weapon.',
7161     name => 'power',
7162     type => 'int'
7163     }
7164     ],
7165     [
7166     'Wis',
7167     {
7168     desc => 'The player\'s wisdom will rise/fall by the given value while wearing this weapon.',
7169     name => 'wisdom',
7170     type => 'int'
7171     }
7172     ],
7173     [
7174     'Cha',
7175     {
7176     desc => 'The player\'s charisma will rise/fall by the given value while wearing this weapon.',
7177     name => 'charisma',
7178     type => 'int'
7179     }
7180     ]
7181     ]
7182 root 1.4 ],
7183     [
7184     'misc',
7185 root 1.7 [
7186     [
7187     'luck',
7188     {
7189     desc => 'With positive luck bonus, the player is more likely to succeed in all sorts of things (spellcasting, praying,...). Unless the <luck bonus> is very high, the effect will be barely visible in-game. Luck bonus on one piece of equipment should never exceed 3, and such bonus should not be too frequently available.',
7190     name => 'luck bonus',
7191     type => 'int'
7192     }
7193     ],
7194     [
7195     'hp',
7196     {
7197     desc => 'Positive <health regen.> bonus speeds up the player\'s healing process. Negative values slow it down.',
7198     name => 'health regen.',
7199     type => 'int'
7200     }
7201     ],
7202     [
7203     'sp',
7204     {
7205     desc => 'Positive <mana regen.> bonus speeds up the player\'s mana regeneration. Negative values slow it down.',
7206     name => 'mana regen.',
7207     type => 'int'
7208     }
7209     ],
7210     [
7211     'grace',
7212     {
7213     desc => 'Positive <grace regen.> bonus speeds up the player\'s grace regeneration. Negative values slow it down. Since grace can be regenerated rather easy with praying, additional <grace regen.> bonus should be VERY RARE!!',
7214     name => 'grace regen.',
7215     type => 'int'
7216     }
7217     ],
7218     [
7219     'food',
7220     {
7221     desc => 'Positive <food bonus> slows down the player\'s digestion, thus he consumes less food. Negative values speed it up. Note that food is consumed not only for "being alive", but also for healing and mana-regeneration. <food bonus> only affects the amount of food consumed for "being alive". Hence, even with high <food bonus>, during a fight a player can run out of food quickly.',
7222     name => 'food bonus',
7223     type => 'int'
7224     }
7225     ],
7226     [
7227     'xrays',
7228     {
7229 root 1.9 desc => 'Xray vision allows the player to see through obstacles in a two-square-wide radius. This is extremely helpful and desirable, so don\'t give it away for cheap on equipment.',
7230 root 1.7 name => 'xray vision',
7231     type => 'bool'
7232     }
7233     ],
7234     [
7235     'stealth',
7236     {
7237     desc => 'Stealth allows the player to move silently. This comes to effect if a player turns himself invisible and tries to sneak around monsters. (At least that was the idea behind it)',
7238     name => 'stealth',
7239     type => 'bool'
7240     }
7241     ],
7242     [
7243     'reflect_spell',
7244     {
7245     desc => 'If a player is wearing any piece of equipment with the ability to <reflect spells>, all kinds of spell-bullets and -beams will bounce off him. This works only about 90% of all times, to avoid players being completely immune to certain types of attacks. This is a very powerful ability and it shouldn\'t be handed out cheap!',
7246     name => 'reflect spells',
7247     type => 'bool'
7248     }
7249     ],
7250     [
7251     'reflect_missile',
7252     {
7253     desc => 'If a player is wearing any piece of equipment with the ability to <reflect missiles>, all kinds of projectiles (e.g. arrows, bolts, boulders) will bounce off him. This works only about 90% of all times, to avoid players being completely immune to certain types of attacks.',
7254     name => 'reflect missiles',
7255     type => 'bool'
7256     }
7257     ],
7258     [
7259     'path_attuned',
7260     {
7261     desc => 'Click on the <attuned paths> button to select spellpaths. The player will get attuned to the specified spellpaths while wearing this weapon.',
7262     name => 'attuned paths',
7263     type => 'bitmask',
7264     value => $BITMASK{spellpath}
7265     }
7266     ],
7267     [
7268     'path_repelled',
7269     {
7270     desc => 'Click on the <repelled paths> button to select spellpaths. The player will get repelled to the specified spellpaths while wearing this weapon.',
7271     name => 'repelled paths',
7272     type => 'bitmask',
7273     value => $BITMASK{spellpath}
7274     }
7275     ],
7276     [
7277     'path_denied',
7278     {
7279     desc => 'Click on the <denied paths> button to select spellpaths. The specified spellpaths will be denied to the player while wearing this weapon.',
7280     name => 'denied paths',
7281     type => 'bitmask',
7282     value => $BITMASK{spellpath}
7283     }
7284     ]
7285     ]
7286 root 1.4 ]
7287     ],
7288 root 1.3 use => 'If you create artifacts (equipment) with stats- or resistance-bonus: Keep playbalance in mind! Such items mustn\'t be reachable without hard fighting AND questing.'
7289 root 1.1 }
7290     );
7291    
7292 root 1.3 our %ATTR = (
7293     3 => $TYPE{Rod},
7294     4 => $TYPE{Treasure},
7295     5 => $TYPE{Potion},
7296     6 => $TYPE{Food},
7297     7 => $TYPE{'Poison Food'},
7298     8 => $TYPE{Book},
7299     9 => $TYPE{Clock},
7300     13 => $TYPE{Projectile},
7301     14 => $TYPE{'Shooting Weapon'},
7302     15 => $TYPE{Weapon},
7303     16 => $TYPE{'Brestplate Armour'},
7304     17 => $TYPE{Pedestal},
7305     18 => $TYPE{Altar},
7306     20 => $TYPE{'Locked Door'},
7307     21 => $TYPE{'Special Key'},
7308 root 1.9 23 => $TYPE{Door},
7309     24 => $TYPE{Key},
7310 root 1.8 26 => $TYPE{'Timed Gate'},
7311 root 1.3 27 => $TYPE{'Handle Trigger'},
7312 root 1.9 28 => $TYPE{'Monster (Grimreaper)'},
7313 root 1.3 29 => $TYPE{'Magic Ear'},
7314 root 1.9 30 => $TYPE{'Button Trigger'},
7315 root 1.3 31 => $TYPE{'Altar Trigger'},
7316     33 => $TYPE{Shield},
7317     34 => $TYPE{Helmet},
7318     35 => $TYPE{Horn},
7319     36 => $TYPE{Money},
7320 root 1.9 37 => $TYPE{'Class Changer'},
7321 root 1.3 39 => $TYPE{Amulet},
7322     40 => $TYPE{Mover},
7323     41 => $TYPE{Teleporter},
7324     42 => $TYPE{Creator},
7325     43 => $TYPE{Skill},
7326     51 => $TYPE{Detector},
7327     52 => $TYPE{'Trigger Marker'},
7328     55 => $TYPE{Marker},
7329     56 => $TYPE{'Holy Altar'},
7330     58 => $TYPE{Battleground},
7331     60 => $TYPE{Jewel},
7332     62 => $TYPE{'Magic Wall'},
7333     64 => $TYPE{'Inventory Checker'},
7334     65 => $TYPE{'Mood Floor'},
7335     66 => $TYPE{Exit},
7336     67 => $TYPE{'Floor (Encounter)'},
7337     68 => $TYPE{'Shop Floor'},
7338     69 => $TYPE{'Shop Mat'},
7339     70 => $TYPE{Ring},
7340     72 => $TYPE{Flesh},
7341     73 => $TYPE{Inorganic},
7342     83 => $TYPE{Duplicator},
7343     85 => $TYPE{Spellbook},
7344     87 => $TYPE{Cloak},
7345     88 => $TYPE{'Hazard Floor'},
7346     90 => $TYPE{Spinner},
7347     91 => $TYPE{Gate},
7348     92 => $TYPE{Button},
7349     93 => $TYPE{Handle},
7350     94 => $TYPE{Pit},
7351     95 => $TYPE{Trapdoor},
7352     98 => $TYPE{'Sign & MagicMouth'},
7353     99 => $TYPE{Boots},
7354     100 => $TYPE{Gloves},
7355     101 => $TYPE{Spell},
7356     103 => $TYPE{Converter},
7357     104 => $TYPE{Bracers},
7358     106 => $TYPE{Savebed},
7359     109 => $TYPE{'Wand & Staff'},
7360     110 => $TYPE{Ability},
7361     111 => $TYPE{Scroll},
7362     112 => $TYPE{Director},
7363     113 => $TYPE{Girdle},
7364 root 1.10 116 => $TYPE{'Event Connector'},
7365 root 1.3 122 => $TYPE{Container},
7366     130 => $TYPE{'Skill Scroll'},
7367     138 => $TYPE{Swamp},
7368     154 => $TYPE{Rune},
7369     155 => $TYPE{Trap},
7370     156 => $TYPE{'Power Crystal'},
7371 root 1.8 158 => $TYPE{Disease},
7372     163 => $TYPE{'Item Transformer'}
7373 root 1.1 );
7374    
7375 root 1.3 our %TYPENAME = (
7376     0 => '*NONE*',
7377     1 => 'PLAYER',
7378 root 1.9 2 => 'TRANSPORT',
7379 root 1.3 3 => 'ROD',
7380     4 => 'TREASURE',
7381     5 => 'POTION',
7382     6 => 'FOOD',
7383     7 => 'POISON',
7384     8 => 'BOOK',
7385     9 => 'CLOCK',
7386     12 => 'LIGHTNING',
7387     13 => 'ARROW',
7388     14 => 'BOW',
7389     15 => 'WEAPON',
7390     16 => 'ARMOUR',
7391     17 => 'PEDESTAL',
7392     18 => 'ALTAR',
7393     20 => 'LOCKED_DOOR',
7394     21 => 'SPECIAL_KEY',
7395     22 => 'MAP',
7396     23 => 'DOOR',
7397     24 => 'KEY',
7398     26 => 'TIMED_GATE',
7399     27 => 'TRIGGER',
7400     28 => 'GRIMREAPER',
7401     29 => 'MAGIC_EAR',
7402     30 => 'TRIGGER_BUTTON',
7403     31 => 'TRIGGER_ALTAR',
7404     32 => 'TRIGGER_PEDESTAL',
7405     33 => 'SHIELD',
7406     34 => 'HELMET',
7407     35 => 'HORN',
7408     36 => 'MONEY',
7409     37 => 'CLASS',
7410     38 => 'GRAVESTONE',
7411     39 => 'AMULET',
7412     40 => 'PLAYERMOVER',
7413     41 => 'TELEPORTER',
7414     42 => 'CREATOR',
7415     43 => 'SKILL',
7416     44 => 'EXPERIENCE',
7417     45 => 'EARTHWALL',
7418     46 => 'GOLEM',
7419     48 => 'THROWN_OBJ',
7420     49 => 'BLINDNESS',
7421     50 => 'GOD',
7422     51 => 'DETECTOR',
7423     52 => 'TRIGGER_MARKER',
7424     53 => 'DEAD_OBJECT',
7425     54 => 'DRINK',
7426     55 => 'MARKER',
7427     56 => 'HOLY_ALTAR',
7428     57 => 'PLAYER_CHANGER',
7429     58 => 'BATTLEGROUND',
7430     59 => 'PEACEMAKER',
7431     60 => 'GEM',
7432     62 => 'FIREWALL',
7433     63 => 'ANVIL',
7434     64 => 'CHECK_INV',
7435     65 => 'MOOD_FLOOR',
7436     66 => 'EXIT',
7437     67 => 'ENCOUNTER',
7438     68 => 'SHOP_FLOOR',
7439     69 => 'SHOP_MAT',
7440     70 => 'RING',
7441     71 => 'FLOOR',
7442     72 => 'FLESH',
7443     73 => 'INORGANIC',
7444     74 => 'SKILL_TOOL',
7445     75 => 'LIGHTER',
7446     76 => 'TRAP_PART',
7447     77 => 'WALL',
7448     78 => 'LIGHT_SOURCE',
7449     79 => 'MISC_OBJECT',
7450     80 => 'MONSTER',
7451     81 => 'SPAWN_GENERATOR',
7452     82 => 'LAMP',
7453     83 => 'DUPLICATOR',
7454     84 => 'TOOL',
7455     85 => 'SPELLBOOK',
7456     86 => 'BUILDFAC',
7457     87 => 'CLOAK',
7458     90 => 'SPINNER',
7459     91 => 'GATE',
7460     92 => 'BUTTON',
7461     93 => 'CF_HANDLE',
7462     94 => 'HOLE',
7463     95 => 'TRAPDOOR',
7464     98 => 'SIGN',
7465     99 => 'BOOTS',
7466     100 => 'GLOVES',
7467     101 => 'SPELL',
7468     102 => 'SPELL_EFFECT',
7469     103 => 'CONVERTER',
7470     104 => 'BRACERS',
7471     105 => 'POISONING',
7472     106 => 'SAVEBED',
7473     107 => 'POISONCLOUD',
7474     108 => 'FIREHOLES',
7475     109 => 'WAND',
7476     111 => 'SCROLL',
7477     112 => 'DIRECTOR',
7478     113 => 'GIRDLE',
7479     114 => 'FORCE',
7480     115 => 'POTION_EFFECT',
7481 root 1.11 116 => 'EVENT_CONNECTOR',
7482 root 1.3 121 => 'CLOSE_CON',
7483     122 => 'CONTAINER',
7484     123 => 'ARMOUR_IMPROVER',
7485     124 => 'WEAPON_IMPROVER',
7486     130 => 'SKILLSCROLL',
7487     138 => 'DEEP_SWAMP',
7488     139 => 'IDENTIFY_ALTAR',
7489     150 => 'MENU',
7490     154 => 'RUNE',
7491     155 => 'TRAP',
7492     156 => 'POWER_CRYSTAL',
7493     157 => 'CORPSE',
7494     158 => 'DISEASE',
7495     159 => 'SYMPTOM',
7496     160 => 'BUILDER',
7497 root 1.9 161 => 'MATERIAL',
7498     162 => 'GPS',
7499     163 => 'ITEM_TRANSFORMER',
7500     164 => 'QUEST'
7501 root 1.1 );
7502    
7503     our %SPELL = (
7504 root 1.3 0 => 'magic bullet',
7505     1 => 'small fireball',
7506     2 => 'medium fireball',
7507     3 => 'large fireball',
7508     4 => 'burning hands',
7509     5 => 'small lightning',
7510     6 => 'large lightning',
7511     7 => 'magic missile',
7512     8 => 'create bomb',
7513     9 => 'summon golem',
7514     10 => 'summon fire elemental',
7515     11 => 'summon earth elemental',
7516     12 => 'summon water elemental',
7517     13 => 'summon air elemental',
7518     14 => 'dimension door',
7519     15 => 'create earth wall',
7520     16 => 'paralyze',
7521     17 => 'icestorm',
7522     18 => 'magic mapping',
7523     19 => 'turn undead',
7524     20 => 'fear',
7525     21 => 'poison cloud',
7526     22 => 'wonder',
7527     23 => 'destruction',
7528     24 => 'perceive self',
7529     25 => 'word of recall',
7530     26 => 'invisible',
7531     27 => 'invisible to undead',
7532     28 => 'probe',
7533     29 => 'large bullet',
7534     30 => 'improved invisibility',
7535     31 => 'holy word',
7536     32 => 'minor healing',
7537     33 => 'medium healing',
7538     34 => 'major healing',
7539     35 => 'heal',
7540     36 => 'create food',
7541     37 => 'earth to dust',
7542     38 => 'armour',
7543     39 => 'strength',
7544     40 => 'dexterity',
7545     41 => 'constitution',
7546     42 => 'charisma',
7547     43 => 'create fire wall',
7548     44 => 'create frost wall',
7549     45 => 'protection from cold',
7550     46 => 'protection from electricity',
7551     47 => 'protection from fire',
7552     48 => 'protection from poison',
7553     49 => 'protection from slow',
7554     50 => 'protection from paralysis',
7555     51 => 'protection from draining',
7556     52 => 'protection from magic',
7557     53 => 'protection from attack',
7558     54 => 'levitate',
7559     55 => 'small speedball',
7560     56 => 'large speedball',
7561     57 => 'hellfire',
7562     58 => 'dragonbreath',
7563     59 => 'large icestorm',
7564     60 => 'charging',
7565     61 => 'polymorph',
7566     62 => 'cancellation',
7567     63 => 'confusion',
7568     64 => 'mass confusion',
7569     65 => 'summon pet monster',
7570     66 => 'slow',
7571     67 => 'regenerate spellpoints',
7572     68 => 'cure poison',
7573     69 => 'protection from confusion',
7574     70 => 'protection from cancellation',
7575     71 => 'protection from depletion',
7576     72 => 'alchemy',
7577     73 => 'remove curse',
7578     74 => 'remove damnation',
7579     75 => 'identify',
7580     76 => 'detect magic',
7581     77 => 'detect monster',
7582     78 => 'detect evil',
7583     79 => 'detect curse',
7584     80 => 'heroism',
7585     81 => 'aggravation',
7586     82 => 'firebolt',
7587     83 => 'frostbolt',
7588     84 => 'shockwave',
7589     85 => 'color spray',
7590     86 => 'haste',
7591     87 => 'face of death',
7592     88 => 'ball lightning',
7593     89 => 'meteor swarm',
7594     90 => 'comet',
7595     91 => 'mystic fist',
7596     92 => 'raise dead',
7597     93 => 'resurrection',
7598     94 => 'reincarnation',
7599     95 => 'immunity to cold',
7600     96 => 'immunity to electricity',
7601     97 => 'immunity to fire',
7602     98 => 'immunity to poison',
7603     99 => 'immunity to slow',
7604     100 => 'immunity to paralysis',
7605     101 => 'immunity to draining',
7606     102 => 'immunity to magic',
7607     103 => 'immunity to attack',
7608     104 => 'invulnerability',
7609     105 => 'defense',
7610     106 => 'rune of fire',
7611     107 => 'rune of frost',
7612     108 => 'rune of shocking',
7613     109 => 'rune of blasting',
7614     110 => 'rune of death',
7615     111 => 'marking rune',
7616     112 => 'build director',
7617     113 => 'create pool of chaos',
7618     114 => 'build bullet wall',
7619     115 => 'build lightning wall',
7620     116 => 'build fireball wall',
7621     117 => 'magic rune',
7622     118 => 'rune of magic drain',
7623     119 => 'antimagic rune',
7624     120 => 'rune of transferrence',
7625     121 => 'transferrence',
7626     122 => 'magic drain',
7627     123 => 'counterspell',
7628     124 => 'disarm',
7629     125 => 'cure confusion',
7630     126 => 'restoration',
7631     127 => 'summon evil monster',
7632     128 => 'counterwall',
7633     129 => 'cause light wounds',
7634     130 => 'cause medium wounds',
7635     131 => 'cause serious wounds',
7636     132 => 'charm monsters',
7637     133 => 'banishment',
7638     134 => 'create missile',
7639     135 => 'show invisible',
7640     136 => 'xray',
7641     137 => 'pacify',
7642     138 => 'summon fog',
7643     139 => 'steambolt',
7644     140 => 'command undead',
7645     141 => 'holy orb',
7646     142 => 'summon avatar',
7647     143 => 'holy possession',
7648     144 => 'bless',
7649     145 => 'curse',
7650     146 => 'regeneration',
7651     147 => 'consecrate',
7652     148 => 'summon cult monsters',
7653     149 => 'cause critical wounds',
7654     150 => 'holy wrath',
7655     151 => 'retributive strike',
7656     152 => 'finger of death',
7657     153 => 'insect plague',
7658     154 => 'call holy servant',
7659     155 => 'wall of thorns',
7660     156 => 'staff to snake',
7661     157 => 'light',
7662     158 => 'darkness',
7663     159 => 'nightfall',
7664     160 => 'daylight',
7665     161 => 'sunspear',
7666     162 => 'faery fire',
7667     163 => 'cure blindness',
7668     164 => 'dark vision',
7669     165 => 'bullet swarm',
7670     166 => 'bullet storm',
7671     167 => 'cause many wounds',
7672     168 => 'small snowstorm',
7673     169 => 'medium snowstorm',
7674     170 => 'large snowstorm',
7675     171 => 'cure disease',
7676     172 => 'cause red death',
7677     173 => 'cause flu',
7678     174 => 'cause black death',
7679     175 => 'cause leprosy',
7680     176 => 'cause smallpox',
7681     177 => 'cause white death',
7682     178 => 'cause anthrax',
7683     179 => 'cause typhoid',
7684     180 => 'mana blast',
7685     181 => 'small manaball',
7686     182 => 'medium manaball',
7687     183 => 'large manaball',
7688     184 => 'mana bolt',
7689     185 => 'dancing sword',
7690     186 => 'animate weapon',
7691     187 => 'cause cold',
7692     188 => 'divine shock',
7693     189 => 'windstorm',
7694     190 => 'sanctuary',
7695     191 => 'peace',
7696     192 => 'spiderweb',
7697     193 => 'conflict',
7698     194 => 'rage',
7699     195 => 'forked lightning',
7700     196 => 'poison fog',
7701     197 => 'flaming aura',
7702     198 => 'vitriol',
7703     199 => 'vitriol splash',
7704     200 => 'ironwood skin',
7705     201 => 'wrathful eye',
7706     202 => 'town portal',
7707     203 => 'missile swarm',
7708     204 => 'cause rabies',
7709     205 => 'glyph'
7710 root 1.1 );
7711    
7712    
7713     =head1 AUTHOR
7714    
7715     Marc Lehmann <schmorp.de>
7716     http://home.schmorp.de/
7717    
7718     The source files are part of the CFJavaEditor.
7719    
7720     =cut
7721    
7722     1