… | |
… | |
108 | For players this field reflects the duration of the invisibility |
108 | For players this field reflects the duration of the invisibility |
109 | and is decreased every tick by 1. |
109 | and is decreased every tick by 1. |
110 | |
110 | |
111 | For non-player objects this field is not changed by server ticks. |
111 | For non-player objects this field is not changed by server ticks. |
112 | |
112 | |
|
|
113 | =item I<glow_radius> <number> |
|
|
114 | |
|
|
115 | This field indicates how far an object glows. Default is a radius of 0 (no |
|
|
116 | glowing at all). |
|
|
117 | |
113 | =item I<speed> <number> |
118 | =item I<speed> <number> |
114 | |
119 | |
115 | If this field is greater than MIN_ACTIVE_SPEED (~0.0001) the object is placed |
120 | If this field is greater than MIN_ACTIVE_SPEED (~0.0001) the object is placed |
116 | on the active object list and will be processed each tick (see also speed_left!). |
121 | on the active object list and will be processed each tick (see also speed_left!). |
117 | |
122 | |
… | |
… | |
194 | See Flags section below. |
199 | See Flags section below. |
195 | |
200 | |
196 | =item I<activate_on_release> (0|1) (default: 1) |
201 | =item I<activate_on_release> (0|1) (default: 1) |
197 | |
202 | |
198 | Sets the flag FLAG_ACTIVATE_ON_RELEASE. |
203 | Sets the flag FLAG_ACTIVATE_ON_RELEASE. |
|
|
204 | See Flags section below. |
|
|
205 | |
|
|
206 | =item I<is_lightable> (0|1) |
|
|
207 | |
|
|
208 | Sets the flag FLAG_IS_LIGHTABLE. |
199 | See Flags section below. |
209 | See Flags section below. |
200 | |
210 | |
201 | =item I<editable> (more than deprecated) |
211 | =item I<editable> (more than deprecated) |
202 | |
212 | |
203 | This field had a special meaning for crossedit, which used parts |
213 | This field had a special meaning for crossedit, which used parts |
… | |
… | |
315 | =item FLAG_REFL_SPELL |
325 | =item FLAG_REFL_SPELL |
316 | |
326 | |
317 | This flag indicates whether something reflects spells, like spell reflecting |
327 | This flag indicates whether something reflects spells, like spell reflecting |
318 | amuletts. |
328 | amuletts. |
319 | |
329 | |
|
|
330 | =item FLAG_IS_LIGHTABLE |
|
|
331 | |
|
|
332 | This flag indicates whether a B<LIGHTER> can light this object. See also the |
|
|
333 | description of the B<LIGHTER> type. How easy you can light an item depends |
|
|
334 | partially on the material of the object. |
|
|
335 | |
320 | =back |
336 | =back |
321 | |
337 | |
322 | =head2 Description of type specific fields and behaviour |
338 | =head2 Description of type specific fields and behaviour |
323 | |
339 | |
324 | The beginning of the headers of the following subsection |
340 | The beginning of the headers of the following subsection |
325 | are the server internal names for the objects types, see include/define.h. |
341 | are the server internal names for the objects types, see include/define.h. |
326 | |
342 | |
|
|
343 | =head3 B<MOOD_FLOOR> - type 65 - change mood of monsters |
|
|
344 | |
|
|
345 | speed == 0 for triggered mood changes, speed != 0 for non-triggered mood |
|
|
346 | changes. |
|
|
347 | |
|
|
348 | (based on value that last_sp takes): |
|
|
349 | 0: 'furious' Makes all monsters aggressive |
|
|
350 | 1: 'angry' As above but pets are unaffected |
|
|
351 | 2: 'calm' Makes all monsters unaggressive |
|
|
352 | 3: 'sleep' Puts all monsters to sleep |
|
|
353 | 4: 'charm' Makes monster into a pet of person |
|
|
354 | who triggers the square. This setting |
|
|
355 | is not enabled for continous operation |
|
|
356 | 5: 'destroy mons' destroy any monsters on this space |
|
|
357 | 6: 'destroy pets' destroy friendly monsters on this space |
|
|
358 | |
327 | =head3 B<TRANSPORT> - type 2 - Player transports |
359 | =head3 B<TRANSPORT> - type 2 - Player transports |
328 | |
360 | |
329 | This type is implemented by the transport extension and has currently no special |
361 | This type is implemented by the transport extension and has currently no special |
330 | fields that affect it. |
362 | fields that affect it. |
331 | |
363 | |
332 | =head3 B<ROD> - type 3 - Rods that fire spells |
364 | =head3 B<ROD>, B<HORN> - type 3, 35 - Rods that fire spells |
333 | |
365 | |
334 | Rods contain spells and can be fired by a player. |
366 | Rods contain spells and can be fired by a player. |
335 | |
367 | |
336 | =over 4 |
368 | =over 4 |
337 | |
369 | |
… | |
… | |
343 | the 'use magic item' skill level of the player and 1/10 of the level of the |
375 | the 'use magic item' skill level of the player and 1/10 of the level of the |
344 | rod is added as bonus. |
376 | rod is added as bonus. |
345 | |
377 | |
346 | =item I<hp> <number> |
378 | =item I<hp> <number> |
347 | |
379 | |
348 | The amount of spellpoints this rod has left. |
380 | The amount of spellpoints this rod has left. Recharges at a rate of C<1 + |
|
|
381 | maxhp/10> per tick. |
349 | |
382 | |
350 | =item I<maxhp> <number> |
383 | =item I<maxhp> <number> |
351 | |
384 | |
352 | The maximum amount of spellpoints this rod has. |
385 | The maximum amount of spellpoints this rod has. |
353 | |
386 | |
… | |
… | |
832 | Generally this field on weapons is in ranges of 1-30 and decides the slowdown of the |
865 | Generally this field on weapons is in ranges of 1-30 and decides the slowdown of the |
833 | I<sp> regeneration. |
866 | I<sp> regeneration. |
834 | |
867 | |
835 | =item I<body_BODYSLOT> |
868 | =item I<body_BODYSLOT> |
836 | |
869 | |
837 | The part of the body you need to use this weapon, possible values should be |
870 | The part/slot of the body you need to use this weapon, possible values for |
838 | looked up in common/item.C at body_locations. |
871 | C<BODYSLOT> should be looked up in common/item.C at body_locations. |
839 | |
872 | |
|
|
873 | The value (in the range C<-7..7>) gives the number of those body slots |
|
|
874 | used up by the item (if negative) or the number of body slots this object |
|
|
875 | has (if positive, e.g. for monsters or players). The special value C<0> |
|
|
876 | indicates that this object cannot equip items requiring these body slots. |
|
|
877 | |
840 | =item I<resist_RESISTNACY> <number> |
878 | =item I<resist_RESISTANCY> <number> |
841 | |
879 | |
842 | this is the factor with which the difference of the players resistancy and 100% |
880 | this is the factor with which the difference of the players resistancy and 100% |
843 | is multiplied, something like this: |
881 | is multiplied, something like this: |
844 | |
882 | |
845 | additional_resistancy = (100 - current_resistanct) * (<number>/100) |
883 | additional_resistancy = (100 - current_resistancy) * (<number>/100) |
846 | |
884 | |
847 | if <number> is negative it is added to the total vulnerabilities, |
885 | if <number> is negative it is added to the total vulnerabilities, |
848 | and later the total resistance is decided by: |
886 | and later the total resistance is decided by: |
849 | |
887 | |
850 | 'total resistance = total protections - total vulnerabilities' |
888 | 'total resistance = total protections - total vulnerabilities' |
851 | |
889 | |
852 | see also common/living.C:fix_player |
890 | see also common/living.C:fix_player. |
853 | |
891 | |
854 | =item I<path_(attuned|repelled|denied)> |
892 | =item I<path_(attuned|repelled|denied)> |
855 | |
893 | |
856 | this field modifies the pathes the player is attuned to, see include/spells.h PATH_* |
894 | this field modifies the pathes the player is attuned to, see include/spells.h PATH_* |
857 | for the pathes. |
895 | for the pathes. |
… | |
… | |
1036 | A lamp consists of two archetypes: the 'on' archetype and the 'off' archetype. |
1074 | A lamp consists of two archetypes: the 'on' archetype and the 'off' archetype. |
1037 | Each of them should point at the other one with it's I<other_arch> field. |
1075 | Each of them should point at the other one with it's I<other_arch> field. |
1038 | |
1076 | |
1039 | See the I<other_arch> field for the behaviour of a lamp object when it is applied. |
1077 | See the I<other_arch> field for the behaviour of a lamp object when it is applied. |
1040 | |
1078 | |
|
|
1079 | If this object has FLAG_IS_LIGHTABLE set the lamp can be turned on and off |
|
|
1080 | with a B<LIGHTER>, see also the description of FLAG_IS_LIGHTABLE. |
|
|
1081 | |
1041 | =over 4 |
1082 | =over 4 |
|
|
1083 | |
|
|
1084 | =item I<glow_radius> <number> |
|
|
1085 | |
|
|
1086 | The radius of the light that the lamp emits, see also I<glow_radius> in the |
|
|
1087 | generic object flags description. |
1042 | |
1088 | |
1043 | =item I<speed> <number> |
1089 | =item I<speed> <number> |
1044 | |
1090 | |
1045 | If FLAG_CHANGING is set the I<speed> field will indicate how fast the |
1091 | If FLAG_CHANGING is set the I<speed> field will indicate how fast the |
1046 | lamp burns it's fuel (I<food>). |
1092 | lamp burns it's fuel (I<food>). |