This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arch:arch_attributes:n [2018/04/11 14:29] karl created |
arch:arch_attributes:n [2018/04/12 16:11] (current) karl Cleanup, split Arch and object.h variables, add the no_* attributes |
||
---|---|---|---|
Line 2: | Line 2: | ||
Object attributes beginning with the letter **n** . | Object attributes beginning with the letter **n** . | ||
- | Taken from the (unsorted) wholepage [[:dev:Object Fields]] . | + | Partly taken from the (unsorted) wholepage [[:dev:Object Fields]] . |
- | ===== List == | + | ===== List of attributes == |
==== name ==== | ==== name ==== | ||
Type: const char * (shared string) | Type: const char * (shared string) | ||
- | Meaning: The name of the object, obviously... | + | Comment: The name of the object, obviously... |
+ | |||
+ | Meaning: name <some name> is displayed in the different windows of the client. For floors it prints the name of that arch in the "look" pane. \\ | ||
+ | Goldfloors can have set <some name> to something like <pay 2000 diamonds> , so it does not need a magic_mouth archetype additionally. | ||
==== name_pl ==== | ==== name_pl ==== | ||
Type: const char * (shared string) | Type: const char * (shared string) | ||
- | Meaning: The plural name of the object. Shared string. | + | Comment: The plural name of the object. |
- | ==== next ==== | + | Meaning: Shared string. |
- | Type: obj * | + | |
- | Meaning: | + | ==== no_* ==== |
- | * pointer to the next object in the free/used list. Should not be used much. | + | |
- | FIXME check ''server/c_object.c:840'', line ''for (tmp=op->below; tmp!=NULL; tmp=tmp->next)'' \\ sounds suspicious (should probably be ''tmp->below''). | + | === no_attack === |
+ | === no_drop === | ||
+ | === no_magic === | ||
+ | === no_pick === | ||
- | + | === no_save === | |
- | ==== no_save ==== | + | |
Type: uint8 | Type: uint8 | ||
- | Meaning: | + | Comment: |
+ | |||
+ | Meaning: Not included anymore ? | ||
+ | |||
+ | === no_steal === | ||
+ | === no_strength === | ||
==== nrof ==== | ==== nrof ==== | ||
Type: uint32 | Type: uint32 | ||
+ | |||
+ | Comment: How many of the objects | ||
Meaning: | Meaning: | ||
+ | ---- | ||
+ | |||
+ | ====== Server struct obj {} object == | ||
+ | These are not archetype attributes, but server internal variables. \\ | ||
+ | Read more on the [[:dev:object_fields]] page. | ||
+ | |||
+ | |||
+ | ==== next ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: Pointer to the next object in the free / used list. | ||
+ | | ||
+ | Meaning: Should not be used much. | ||
+ | FIXME check ''server/c_object.c:840'', \\ | ||
+ | line ''for (tmp=op->below; tmp!=NULL; tmp=tmp->next)'' \\ | ||
+ | sounds suspicious (should probably be ''tmp->below''). | ||