… | |
… | |
264 | will be generated. |
264 | will be generated. |
265 | |
265 | |
266 | After the new object is created the I<hp> field from the old object is copied into |
266 | After the new object is created the I<hp> field from the old object is copied into |
267 | the new one. |
267 | the new one. |
268 | |
268 | |
269 | When the old object was a B<LAMP> it's I<food> fields value less 1 will be copied |
|
|
270 | to the new object. |
|
|
271 | |
|
|
272 | =item FLAG_IS_A_TEMPLATE (internal use) |
269 | =item FLAG_IS_A_TEMPLATE (internal use) |
273 | |
270 | |
274 | This flag is set on the inventory of generators like B<CREATOR>s and B<CONVERTER>s, |
271 | This flag is set on the inventory of generators like B<CREATOR>s and B<CONVERTER>s, |
275 | or other objects that have the flags FLAG_GENERATOR and FLAG_CONTENT_ON_GEN set. |
272 | or other objects that have the flags FLAG_GENERATOR and FLAG_CONTENT_ON_GEN set. |
276 | |
273 | |
… | |
… | |
1065 | |
1062 | |
1066 | =head3 B<MISC_OBJECT> - type 79 - Misc. objects |
1063 | =head3 B<MISC_OBJECT> - type 79 - Misc. objects |
1067 | |
1064 | |
1068 | A type for any object that has no special behaviour. |
1065 | A type for any object that has no special behaviour. |
1069 | |
1066 | |
1070 | =head3 B<LAMP> - type 82 - A lamp |
|
|
1071 | |
|
|
1072 | This object represents a lamp, that can be carried and switched |
|
|
1073 | on and off and has a certain amount of fuel in it. |
|
|
1074 | |
|
|
1075 | A lamp consists of two archetypes: the 'on' archetype and the 'off' archetype. |
|
|
1076 | Each of them should point at the other one with it's I<other_arch> field. |
|
|
1077 | |
|
|
1078 | See the I<other_arch> field for the behaviour of a lamp object when it is applied. |
|
|
1079 | |
|
|
1080 | If this object has FLAG_IS_LIGHTABLE set the lamp can be turned on and off |
|
|
1081 | with a B<LIGHTER>, see also the description of FLAG_IS_LIGHTABLE. |
|
|
1082 | |
|
|
1083 | =over 4 |
|
|
1084 | |
|
|
1085 | =item I<glow_radius> <number> |
|
|
1086 | |
|
|
1087 | The radius of the light that the lamp emits, see also I<glow_radius> in the |
|
|
1088 | generic object flags description. |
|
|
1089 | |
|
|
1090 | =item I<speed> <number> |
|
|
1091 | |
|
|
1092 | If FLAG_CHANGING is set the I<speed> field will indicate how fast the |
|
|
1093 | lamp burns it's fuel (I<food>). |
|
|
1094 | |
|
|
1095 | Setting FLAG_CHANGING makes only sense on the archetype which represents |
|
|
1096 | the 'on' state of the lamp. |
|
|
1097 | |
|
|
1098 | See also the description of FLAG_CHANGING. |
|
|
1099 | |
|
|
1100 | Lamps which have no FLAG_CHANGING set would also make sense and represent |
|
|
1101 | lamps that never burn up. |
|
|
1102 | |
|
|
1103 | =item I<other_arch> <number> |
|
|
1104 | |
|
|
1105 | This is the field that points to the 'other' archetype which represents the |
|
|
1106 | opposite state of the lamp. The newly from I<other_arch> derived object will |
|
|
1107 | replace the current object and will get the value of I<food> of the replaced object. |
|
|
1108 | |
|
|
1109 | Rationale: |
|
|
1110 | |
|
|
1111 | When the lamp (on) is applied a new object is derived from the archetype |
|
|
1112 | in I<other_arch> and the I<food> value is copied to it ('the fuel is |
|
|
1113 | transferred'). The new lamp (off) object has to have a I<other_arch> field |
|
|
1114 | which points to the archetype from which a lamp (on) can be derived. |
|
|
1115 | |
|
|
1116 | =item I<food> <number> |
|
|
1117 | |
|
|
1118 | This fields stands for the fuel of the lamp. |
|
|
1119 | |
|
|
1120 | =back |
|
|
1121 | |
|
|
1122 | =head3 B<DUPLICATOR> - type 83 - Duplicators or: Multiplicators |
1067 | =head3 B<DUPLICATOR> - type 83 - Duplicators or: Multiplicators |
1123 | |
1068 | |
1124 | This type of objects multiplies objects that are above it when it is activated. |
1069 | This type of objects multiplies objects that are above it when it is activated. |
1125 | You can even multiply by 0, which will destroy the object. |
1070 | You can even multiply by 0, which will destroy the object. |
1126 | |
1071 | |