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.4 by elmex, Mon Dec 18 16:53:04 2006 UTC vs.
Revision 1.5 by elmex, Tue Dec 19 13:41:45 2006 UTC

114=item auto_apply (0|1) 114=item auto_apply (0|1)
115 115
116Sets the flag FLAG_AUTO_APPLY. 116Sets the flag FLAG_AUTO_APPLY.
117See Flags section below. 117See Flags section below.
118 118
119=item activate_on_push (0|1) (default: 1)
120
121Sets the flag FLAG_ACTIVATE_ON_PUSH.
122See Flags section below.
123
124=item activate_on_release (0|1) (default: 1)
125
126Sets the flag FLAG_ACTIVATE_ON_RELEASE.
127See Flags section below.
128
119=item editable (more than deprecated) 129=item editable (more than deprecated)
120 130
121This field had a special meaning for crossedit, which used parts 131This field had a special meaning for crossedit, which used parts
122of the server code for editing. Wherever you see this attribute being 132of the server code for editing. Wherever you see this attribute being
123set in an archetype ignore it and/or remove it. No code interprets this 133set in an archetype ignore it and/or remove it. No code interprets this
162or other objects that have the flags FLAG_GENERATOR and FLAG_CONTENT_ON_GEN set. 172or other objects that have the flags FLAG_GENERATOR and FLAG_CONTENT_ON_GEN set.
163 173
164=item FLAG_AUTO_APPLY 174=item FLAG_AUTO_APPLY
165 175
166This flag has currently only meaning for the TREASURE type, see below. 176This flag has currently only meaning for the TREASURE type, see below.
177
178=item FLAG_ACTIVATE_ON_PUSH
179
180This flag has only meaning for objects that can be linked together
181with the 'connected' field and controls wether the object should
182be activated when the connection is 'pushed' or it is 'released'.
183
184This flag is by default on.
185
186=item FLAG_ACTIVATE_ON_RELEASE
187
188This flag has only meaning for objects that can be linked together
189with the 'connected' field and controls wether the object should
190be activated when the connection is 'pushed' or it is 'released'.
191
192This flag is by default on.
167 193
168=back 194=back
169 195
170=head2 Description of type specific attributes 196=head2 Description of type specific attributes
171 197
478 FLAG_XRAYS 504 FLAG_XRAYS
479 FLAG_BLIND 505 FLAG_BLIND
480 FLAG_SEE_IN_DARK 506 FLAG_SEE_IN_DARK
481 FLAG_UNDEAD 507 FLAG_UNDEAD
482 508
509=head3 HOLE - type 94 - Holes
510
511Holes are holes in the ground where objects can fall through. When the hole
512opens and/or is completly open all objects above it fall through (more
513precisely: if their head is above the hole).
514
515Trapdoors can only transfer the one who falls through to other coordinates
516on the B<same> map.
517
518=over 4
519
520=item maxsp (0|1)
521
522This field negates the state of the connection: When maxsp is 1 the pit will
523open/close when the connection is deactivated. Otherwise it will open/close
524when the connection is activated. This field only has effect when the
525connection is triggered. So if you put a closed hole on a map, and the
526connection is deactivated, and maxsp is 1 the hole will remain closed until the
527connection was triggered once.
528
529=item connected <connection id>
530
531This is the connection id, which lets the hole opening or closing when
532activated. The flags FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE control
533at which connection state the object is activated.
534
535For example: if FLAG_ACTIVATE_ON_RELEASE is set to 0 the hole won't react when
536the connection is released.
537
538=item wc <number> (internal)
539
540This is an internal flag. If it is greater than 0 it means that the hole is not
541yet fully open. More preciesly: this field is the animation-step and if it is
542set to the 'closed' step of the animation the hole is closed and if it is on
543the 'open' animation step (wc = 0), the hole is open.
544
545=item sp <number>
546
547The destination y coordinates on the same map.
548
549=item hp <number>
550
551The destination x coordinates on the same map.
552
553=back
554
483=head3 FORCE - type 114 - Forces 555=head3 FORCE - type 114 - Forces
484 556
485Forces are a very 'thin' type. They don't have much behaviour other than 557Forces are a very 'thin' type. They don't have much behaviour other than
486disappearing after a time and/or affecting the player if they are in his inventory. 558disappearing after a time and/or affecting the player if they are in his
559inventory.
487 560
488Forces only take effect on the player if they have set FLAG_APPLIED. 561Forces only take effect on the player if they have set FLAG_APPLIED.
489 562
490Whether the duration field is processed or not a tick is controlled via the 563Whether the duration field is processed or not a tick is controlled via the
491speed and speed_left field. Look above at the generic description of these 564speed and speed_left field. Look above at the generic description of these
493 566
494=over 4 567=over 4
495 568
496=item duration 569=item duration
497 570
498While this field is greater than 0 the force/object is not destroyed. 571While this field is greater than 0 the force/object is not destroyed. It is
499It is decreased each tick by 1. 572decreased each tick by 1.
500 573
501If it reaches 0 the force/object is destroyed. 574If it reaches 0 the force/object is destroyed.
502 575
503This field can have this meaning for B<any> object if that object has 576This field can have this meaning for B<any> object if that object has
504FLAG_IS_USED_UP and FLAG_APPLIED set. See the description of FLAG_IS_USED_UP 577FLAG_IS_USED_UP and FLAG_APPLIED set. See the description of FLAG_IS_USED_UP
506 579
507=back 580=back
508 581
509=head3 POTION_EFFECT - type 115 - Potion effects (resistancies) 582=head3 POTION_EFFECT - type 115 - Potion effects (resistancies)
510 583
511This object is generated by the POTION code when the potion is a 584This object is generated by the POTION code when the potion is a resistance
512resistance giving potion. It has mainly the same behaviour as a FORCE. 585giving potion. It has mainly the same behaviour as a FORCE.
513 586
514The specialty of the potion effect is that the resistancy it gives is absolute, 587The specialty of the potion effect is that the resistancy it gives is absolute,
515so if you drin a resistancy potion of fire+60 you will get 60% resistancy to fire. 588so if you drin a resistancy potion of fire+60 you will get 60% resistancy to
589fire.
516 590
517Multiple potion effects only give you the maximum of their resistancy. 591Multiple potion effects only give you the maximum of their resistancy.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines