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