… | |
… | |
504 | FLAG_XRAYS |
504 | FLAG_XRAYS |
505 | FLAG_BLIND |
505 | FLAG_BLIND |
506 | FLAG_SEE_IN_DARK |
506 | FLAG_SEE_IN_DARK |
507 | FLAG_UNDEAD |
507 | FLAG_UNDEAD |
508 | |
508 | |
|
|
509 | =head3 CHECK_INV - type 64 - Inventory checkers |
|
|
510 | |
|
|
511 | This object checks whether the player has a specific item in his |
|
|
512 | inventory when he moves above the inventory checker. If the player has |
|
|
513 | the item (or not, which can be controlled with a flag) a connection will be triggered. |
|
|
514 | |
|
|
515 | If you set move_block you can deny players and monsters to reach the space where |
|
|
516 | the inventory checker is on, see 'move_block' description below. |
|
|
517 | |
|
|
518 | The conditions specified by hp, slaying and race are concationated with OR. |
|
|
519 | So matching one of those conditions is enough. |
|
|
520 | |
|
|
521 | =over 4 |
|
|
522 | |
|
|
523 | =item move_block <move type bitmask> |
|
|
524 | |
|
|
525 | If you set this field to block a movetype the move code will block any moves |
|
|
526 | onto the space with the inventory checker, IF the moving object doesn't have |
|
|
527 | (or has - if last_sp = 0) the item that the checker is searching for. |
|
|
528 | |
|
|
529 | =item last_sp (0|1) |
|
|
530 | |
|
|
531 | If last_sp is 1 'having' the item that is being checked for will |
|
|
532 | activate the connection or make the space with the checker non-blocking. |
|
|
533 | If last_sp is 0 'not having' the item will activate the connection |
|
|
534 | or make the space with the checker non-blocking. |
|
|
535 | |
|
|
536 | =item last_heal (0|1) |
|
|
537 | |
|
|
538 | If last_heal is 1 the matching item will be removed if the inventory checker |
|
|
539 | activates a connection and finds the item in the inventory. |
|
|
540 | |
|
|
541 | (A inventory checker that blocks a space won't remove anything from inventories) |
|
|
542 | |
|
|
543 | =item hp <number> |
|
|
544 | |
|
|
545 | If this field is not 0 the inventory checker will search for an object |
|
|
546 | with the type id <number>. |
|
|
547 | |
|
|
548 | =item slaying <string> |
|
|
549 | |
|
|
550 | If this field is set the inventory checker will search for an object that |
|
|
551 | has the same string in the slaying field (for example a key string of a key). |
|
|
552 | |
|
|
553 | =item race <string> |
|
|
554 | |
|
|
555 | If this field is set the inventory checker will search for an object which |
|
|
556 | has the archetype name that matches <string>. |
|
|
557 | |
|
|
558 | =item connected <connection id> |
|
|
559 | |
|
|
560 | This is the connection that will be activated. |
|
|
561 | |
|
|
562 | =back |
|
|
563 | |
509 | =head3 HOLE - type 94 - Holes |
564 | =head3 HOLE - type 94 - Holes |
510 | |
565 | |
511 | Holes are holes in the ground where objects can fall through. When the hole |
566 | 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 |
567 | opens and/or is completly open all objects above it fall through (more |
513 | precisely: if their head is above the hole). |
568 | precisely: if their head is above the hole). |