This shows you the differences between two versions of the page.
arch:arch_attributes:m [2018/04/11 14:25] karl created |
arch:arch_attributes:m [2018/04/13 02:24] (current) karl Cleanup, split Arch and object.h variables add missing |
||
---|---|---|---|
Line 2: | Line 2: | ||
Object attributes beginning with the letter **m** . | Object attributes beginning with the letter **m** . | ||
- | Taken from the (unsorted) wholepage [[:dev:Object Fields]] . | + | Partly taken from the (unsorted) wholepage [[:dev:Object Fields]] . |
- | ===== List == | + | ===== List of attributes == |
==== magic ==== | ==== magic ==== | ||
Type: sint8 | Type: sint8 | ||
+ | |||
+ | Comment: Any magical bonuses to this item | ||
Meaning: | Meaning: | ||
- | ==== material ==== | + | |
- | Type: uint16 | + | ==== map ==== |
+ | Type: mapdef * | ||
+ | |||
+ | Comment: Pointer to the map in which this object is present | ||
Meaning: | Meaning: | ||
- | ==== materialname ==== | + | |
- | Type: const char * (shared string) | + | ==== map_layer ==== |
+ | Type: uint8 | ||
+ | |||
+ | Comment: What level to draw this on the map | ||
Meaning: | Meaning: | ||
+ | ==== material ==== | ||
+ | Type: uint16 | ||
- | ==== map ==== | + | Comment: What materials this object consist of |
- | Type: mapdef * | + | |
- | Meaning: Pointer to the map in which this object is present | + | Meaning: |
- | ==== map_layer ==== | + | ==== materialname ==== |
- | Type: uint8 | + | Type: const char * (shared string) |
+ | |||
+ | Coment: Specific material name | ||
Meaning: | Meaning: | ||
Line 50: | Line 61: | ||
==== more ==== | ==== more ==== | ||
- | Type: obj * | + | Found in treasure lists, to provide more chances for treasures listed in that list, when that item got not selected as treasure. |
- | + | ||
- | Meaning: Pointer to the rest of a large body of objects | + | |
- | + | ||
- | Found in treasure lists, to provide more chances for treasures listed in that list, when that item got not selected. | + | |
==== move_allow ==== | ==== move_allow ==== | ||
Type: MoveType | Type: MoveType | ||
+ | |||
+ | Comment: What movement types explicitly allowed | ||
Meaning: | Meaning: | ||
Line 65: | Line 73: | ||
Type: MoveType | Type: MoveType | ||
- | Meaning: Prevents a character or monster from moving onto a tile occupied by the object. | + | Comment: What movement types this blocks |
- | * Each part of a multi-tile object may have a unique setting, unlike many other modifiers that are omitted or ignored in non-head parts. | + | Meaning: Prevents a character or monster from moving onto a tile occupied by the object. \\ |
+ | Each part of a multi-tile object may have an unique setting, unlike many other modifiers \\ | ||
+ | that are omitted or ignored in non-head parts. | ||
See also [[:dev:objects#move_block]] on the [[:dev:objects]] page. | See also [[:dev:objects#move_block]] on the [[:dev:objects]] page. | ||
- | + | ==== move_off ==== | |
- | ==== move_on ==== | + | |
Type: MoveType | Type: MoveType | ||
+ | |||
+ | Comment: Move types affected moving off this space | ||
Meaning: | Meaning: | ||
- | ==== move_off ==== | + | ==== move_on ==== |
Type: MoveType | Type: MoveType | ||
+ | |||
+ | Comment: Move types affected moving on to this space | ||
Meaning: | Meaning: | ||
Line 84: | Line 97: | ||
==== move_slow ==== | ==== move_slow ==== | ||
Type: MoveType | Type: MoveType | ||
+ | |||
+ | Comment: Movement types this slows down | ||
Meaning: | Meaning: | ||
Line 89: | Line 104: | ||
==== move_slow_penalty ==== | ==== move_slow_penalty ==== | ||
Type: float | Type: float | ||
+ | |||
+ | Comment: How much this slows down the object | ||
Meaning: | Meaning: | ||
Line 94: | Line 111: | ||
==== move_status ==== | ==== move_status ==== | ||
Type: sint32 | Type: sint32 | ||
+ | |||
+ | Comment: What stage in attack mode | ||
Meaning: | Meaning: | ||
+ | |||
==== move_type ==== | ==== move_type ==== | ||
Type: MoveType | Type: MoveType | ||
+ | |||
+ | Comment: Type of movement this object uses | ||
Meaning: | Meaning: | ||
- | |||
==== msg ==== | ==== msg ==== | ||
Type: const char * (shared string) | Type: const char * (shared string) | ||
+ | |||
+ | Comment: If this is a book / sign / magic_mouth / etc | ||
Meaning: | Meaning: | ||
Line 110: | Line 133: | ||
* for EXITs pointing to random maps, map parameters. | * for EXITs pointing to random maps, map parameters. | ||
* for races players can select, description of the race | * for races players can select, description of the race | ||
+ | | ||
FIXME check other uses. | FIXME check other uses. | ||
+ | ---- | ||
+ | |||
+ | ====== Server struct obj {} object == | ||
+ | These are not archetype attributes, but server internal variables. \\ | ||
+ | Read more on the [[:dev:object_fields]] page. | ||
+ | |||
+ | |||
+ | ==== more ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: Pointer to the rest of a large body of objects | ||
+ | |||
+ | Meaning: | ||