ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/pod/objects.pod
(Generate patch)

Comparing deliantra/server/pod/objects.pod (file contents):
Revision 1.33 by root, Sat Nov 7 18:30:05 2009 UTC vs.
Revision 1.37 by root, Sun Mar 28 22:29:50 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines