… | |
… | |
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 |
… | |
… | |
314 | |
324 | |
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. |
|
|
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. |
319 | |
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 | |
… | |
… | |
1036 | A lamp consists of two archetypes: the 'on' archetype and the 'off' archetype. |
1052 | 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. |
1053 | Each of them should point at the other one with it's I<other_arch> field. |
1038 | |
1054 | |
1039 | See the I<other_arch> field for the behaviour of a lamp object when it is applied. |
1055 | See the I<other_arch> field for the behaviour of a lamp object when it is applied. |
1040 | |
1056 | |
|
|
1057 | If this object has FLAG_IS_LIGHTABLE set the lamp can be turned on and off |
|
|
1058 | with a B<LIGHTER>, see also the description of FLAG_IS_LIGHTABLE. |
|
|
1059 | |
1041 | =over 4 |
1060 | =over 4 |
|
|
1061 | |
|
|
1062 | =item I<glow_radius> <number> |
|
|
1063 | |
|
|
1064 | The radius of the light that the lamp emits, see also I<glow_radius> in the |
|
|
1065 | generic object flags description. |
1042 | |
1066 | |
1043 | =item I<speed> <number> |
1067 | =item I<speed> <number> |
1044 | |
1068 | |
1045 | If FLAG_CHANGING is set the I<speed> field will indicate how fast the |
1069 | If FLAG_CHANGING is set the I<speed> field will indicate how fast the |
1046 | lamp burns it's fuel (I<food>). |
1070 | lamp burns it's fuel (I<food>). |