… | |
… | |
114 | |
114 | |
115 | This field indicates how far an object glows. Default is a radius of 0 (no |
115 | This field indicates how far an object glows. Default is a radius of 0 (no |
116 | glowing at all). Negative glow radii darken areas - currently, negative |
116 | glowing at all). Negative glow radii darken areas - currently, negative |
117 | glow radii are stronger than positive ones. |
117 | glow radii are stronger than positive ones. |
118 | |
118 | |
119 | =item I<speed> <number> |
119 | =item I<speed> <float> |
120 | |
120 | |
121 | If this field is greater than MIN_ACTIVE_SPEED (~0.0001) the object is placed |
121 | If this field is greater than MIN_ACTIVE_SPEED (~0.0001) the object is placed |
122 | on the active object list and will be processed each tick (see also speed_left!). |
122 | on the active object list and will be processed each tick (see also speed_left!). |
123 | |
123 | |
124 | If I<speed> drops below the MIN_ACTIVE_SPEED the object is removed |
124 | If I<speed> drops below the MIN_ACTIVE_SPEED the object is removed |
125 | from the active object list and it won't experience any processing per tick. |
125 | from the active object list and it won't experience any processing per tick. |
126 | |
126 | |
|
|
127 | Negative speed settings in archetypes and files cause a speed_left |
|
|
128 | randomisation on load or instantiatian, but for calculations, the absolute |
|
|
129 | value is used always. |
|
|
130 | |
127 | =item I<speed_left> <number> |
131 | =item I<speed_left> <float> |
128 | |
132 | |
129 | If this field is greater than 0 and the object is on the |
133 | If this field is greater than 0 and the object is on the |
130 | active list (mostly means it's speed is also greater than 0): |
134 | active list (mostly means it's speed is also greater than 0): |
131 | |
135 | |
132 | - speed_left is decreased by 1 |
136 | - speed_left is decreased by 1 |
… | |
… | |
138 | |
142 | |
139 | This means: the lower I<speed> is (but still above MIN_ACTIVE_SPEED) |
143 | This means: the lower I<speed> is (but still above MIN_ACTIVE_SPEED) |
140 | the more seldom the object is processed. And the higher I<speed> is |
144 | the more seldom the object is processed. And the higher I<speed> is |
141 | the more often the object is processed. |
145 | the more often the object is processed. |
142 | |
146 | |
143 | =item I<connected> <number> |
147 | =item I<connected> <identifier> |
144 | |
148 | |
145 | When this field is set the object will be linked to a connection with the |
149 | When this field is set the object will be linked to a connection with the |
146 | id <number>. What happens when the connection is 'activated' depends on the |
150 | same <identifier>. What happens when the connection is 'activated' depends on the |
147 | type of the object. |
151 | type of the object. |
148 | |
152 | |
149 | FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE they will control |
153 | FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE they will control |
150 | when to activate the object, see description of these below for further details. |
154 | when to activate the object, see description of these below for further details. |
151 | |
155 | |
… | |
… | |
213 | |
217 | |
214 | This field had a special meaning for crossedit, which used parts |
218 | This field had a special meaning for crossedit, which used parts |
215 | of the server code for editing. Wherever you see this field being |
219 | of the server code for editing. Wherever you see this field being |
216 | set in an archetype ignore it and/or remove it. No code interprets this |
220 | set in an archetype ignore it and/or remove it. No code interprets this |
217 | field anymore. |
221 | field anymore. |
|
|
222 | |
|
|
223 | =item I<last_heal>, I<last_sp> |
|
|
224 | |
|
|
225 | For monsters and other living stuff that heals or regenarates hp or sp, |
|
|
226 | these contain the fractional part of any healing that couldn't be applied |
|
|
227 | to hp and sp yet. |
218 | |
228 | |
219 | =back |
229 | =back |
220 | |
230 | |
221 | =head3 Flags |
231 | =head3 Flags |
222 | |
232 | |
… | |
… | |
626 | |
636 | |
627 | =head3 B<CLOCK> - type 9 - Clocks |
637 | =head3 B<CLOCK> - type 9 - Clocks |
628 | |
638 | |
629 | This type of objects just display the time when being applied. |
639 | This type of objects just display the time when being applied. |
630 | |
640 | |
|
|
641 | =head3 B<VEIN> - type 10 - item veins for mining |
|
|
642 | |
|
|
643 | Provides a place to apply to mining skill to. |
|
|
644 | |
|
|
645 | =item I<other_arch> <archname> |
|
|
646 | |
|
|
647 | The architecture to create on a successful mine. |
|
|
648 | |
|
|
649 | =item I<food> <number> |
|
|
650 | |
|
|
651 | The number of items to produce from this vein. |
|
|
652 | |
|
|
653 | =item I<ac> <percentage> |
|
|
654 | |
|
|
655 | The base chance of getting an item. |
|
|
656 | |
|
|
657 | =item I<race> <identifier> |
|
|
658 | |
|
|
659 | Race of required extraction tools. |
|
|
660 | |
|
|
661 | =back |
|
|
662 | |
631 | =head3 B<LIGHTNING> - type 12 - Lightnings (DEPRECATED: see B<SPELL_EFFECT> subtype SP_BOLT) |
663 | =head3 B<LIGHTNING> - type 12 - Lightnings (DEPRECATED: see B<SPELL_EFFECT> subtype SP_BOLT) |
632 | |
664 | |
633 | This is a spell effect of a moving bolt. It moves straigt forward |
665 | This is a spell effect of a moving bolt. It moves straigt forward |
634 | through the map until something blocks it. |
666 | through the map until something blocks it. |
635 | If FLAG_REFLECTING is set it even reflects on walls. |
667 | If FLAG_REFLECTING is set it even reflects on walls. |
… | |
… | |
747 | The minimum I<speed> of an arrow is 1.0. |
779 | The minimum I<speed> of an arrow is 1.0. |
748 | |
780 | |
749 | While flying the arrows I<speed> is decreased by 0.05 each time it's moved. |
781 | While flying the arrows I<speed> is decreased by 0.05 each time it's moved. |
750 | |
782 | |
751 | If the I<speed> is above 10.0 it goes straight through the creature it hits and |
783 | If the I<speed> is above 10.0 it goes straight through the creature it hits and |
752 | it's I<speed> is reduced by 1. If the I<speed> is lower or equal 10.0 the arrow is |
784 | its I<speed> is reduced by 1. If the I<speed> is lower or equal 10.0 the arrow is |
753 | stopped and either sticked into the victim (see I<weight> field description) or |
785 | stopped and either stuck into the victim (see I<weight> field description) or |
754 | put on it's map square (if it didn't break, see description of the I<food> field). |
786 | put on its map square (if it didn't break, see description of the I<food> field). |
755 | |
787 | |
756 | =item I<weight> <number> |
788 | =item I<weight> <number> |
757 | |
789 | |
758 | This field is the weight of the arrow, if I<weight> is below or equal 5000 (5 kg) |
790 | This field is the weight of the arrow, if I<weight> is below or equal 5000 (5 kg) |
759 | the arrow will stick in the victim it hits. Otherwise it will fall to the ground. |
791 | the arrow will stick in the victim it hits. Otherwise it will fall to the ground. |
… | |
… | |
971 | =item I<hp> <number> |
1003 | =item I<hp> <number> |
972 | |
1004 | |
973 | If FLAG_LIVE_SAVE is not set it is the absolute number of times the creator can |
1005 | If FLAG_LIVE_SAVE is not set it is the absolute number of times the creator can |
974 | be used. |
1006 | be used. |
975 | |
1007 | |
976 | =item I<speed> <number> |
1008 | =item I<speed> <float> |
977 | |
1009 | |
978 | If I<speed> is set the creator will create an object periodically, |
1010 | If I<speed> is set the creator will create an object periodically, |
979 | see I<speed> and I<speed_left> fields in the general object field description |
1011 | see I<speed> and I<speed_left> fields in the general object field description |
980 | for more details. |
1012 | for more details. |
981 | |
1013 | |
… | |
… | |
986 | =item I<other_arch> <string> |
1018 | =item I<other_arch> <string> |
987 | |
1019 | |
988 | If the inventory of the creator is empty new objects will be derived from the |
1020 | If the inventory of the creator is empty new objects will be derived from the |
989 | archetype named by <string>. |
1021 | archetype named by <string>. |
990 | |
1022 | |
991 | =item I<connected> <number> |
1023 | =item I<connected> <identifier> |
992 | |
1024 | |
993 | See generic object field description. |
1025 | See generic object field description. |
|
|
1026 | |
|
|
1027 | =back |
|
|
1028 | |
|
|
1029 | =head3 B<SKILL> - type 43 - Skills |
|
|
1030 | |
|
|
1031 | This type is basically for representing skills in the game. |
|
|
1032 | |
|
|
1033 | =over 4 |
|
|
1034 | |
|
|
1035 | =item I<subtype> <skill number> |
|
|
1036 | |
|
|
1037 | =item I<skill> <string> |
|
|
1038 | |
|
|
1039 | The skill identifier used by other items, usually the skill name |
|
|
1040 | |
|
|
1041 | =item I<level> <percentage> |
|
|
1042 | |
|
|
1043 | not used? |
|
|
1044 | |
|
|
1045 | =item I<exp> <number> |
|
|
1046 | |
|
|
1047 | Base amount of experience in a skill, for skills not starting at zero. |
|
|
1048 | |
|
|
1049 | =item I<expmul> <float> |
|
|
1050 | |
|
|
1051 | Experience is multiplied by this factor. |
|
|
1052 | |
|
|
1053 | =item I<cached_sp> <integer> |
|
|
1054 | |
|
|
1055 | Used internally by the server (cannot be used in files). |
994 | |
1056 | |
995 | =back |
1057 | =back |
996 | |
1058 | |
997 | =head3 B<DRINK> - type 54 - Drinkable stuff |
1059 | =head3 B<DRINK> - type 54 - Drinkable stuff |
998 | |
1060 | |
… | |
… | |
1045 | =item I<race> <string> |
1107 | =item I<race> <string> |
1046 | |
1108 | |
1047 | If this field is set the inventory checker will search for an object which |
1109 | If this field is set the inventory checker will search for an object which |
1048 | has the archetype name that matches <string>. |
1110 | has the archetype name that matches <string>. |
1049 | |
1111 | |
1050 | =item I<connected> <connection id> |
1112 | =item I<connected> <identifier> |
1051 | |
1113 | |
1052 | This is the connection that will be activated. The connection is |
1114 | This is the connection that will be activated. The connection is |
1053 | 'pushed' when someone enters the space with the inventory checker, |
1115 | 'pushed' when someone enters the space with the inventory checker, |
1054 | and it is 'released' when he leaves it. |
1116 | and it is 'released' when he leaves it. |
1055 | |
1117 | |
1056 | See also the description of the I<connected> field in the generic object field |
1118 | See also the description of the I<connected> field in the generic object |
1057 | section. |
1119 | field section. |
1058 | |
1120 | |
1059 | =back |
1121 | =back |
1060 | |
1122 | |
1061 | =head3 B<MOOD_FLOOR> - type 65 - change mood of monsters |
1123 | =head3 B<MOOD_FLOOR> - type 65 - change mood of monsters |
1062 | |
1124 | |
… | |
… | |
1095 | |
1157 | |
1096 | =item I<other_arch> <string> |
1158 | =item I<other_arch> <string> |
1097 | |
1159 | |
1098 | The archetype name of the objects that should be multiplied. |
1160 | The archetype name of the objects that should be multiplied. |
1099 | |
1161 | |
1100 | =item I<connected> <number> |
1162 | =item I<connected> <identifier> |
1101 | |
1163 | |
1102 | See generic object field description. |
1164 | See generic object field description. |
1103 | |
1165 | |
1104 | =back |
1166 | =back |
1105 | |
1167 | |
… | |
… | |
1123 | when the connection is activated. This field only has effect when the |
1185 | when the connection is activated. This field only has effect when the |
1124 | connection is triggered. So if you put a closed hole on a map, and the |
1186 | connection is triggered. So if you put a closed hole on a map, and the |
1125 | connection is deactivated, and I<maxsp> is 1 the hole will remain closed until the |
1187 | connection is deactivated, and I<maxsp> is 1 the hole will remain closed until the |
1126 | connection was triggered once. |
1188 | connection was triggered once. |
1127 | |
1189 | |
1128 | =item I<connected> <connection id> |
1190 | =item I<connected> <identifier> |
1129 | |
1191 | |
1130 | This is the connection id, which lets the hole opening or closing when |
1192 | This is the connection id, which lets the hole opening or closing when |
1131 | activated. The flags FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE control |
1193 | activated. The flags FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE control |
1132 | at which connection state the object is activated. |
1194 | at which connection state the object is activated. |
1133 | |
1195 | |