User Tools

Site Tools


arch:arch_attributes:c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arch:arch_attributes:c [2018/04/11 17:39] – [custom_name] Add text for rename and dump commands karlarch:arch_attributes:c [2025/04/18 13:08] (current) – external edit 127.0.0.1
Line 2: Line 2:
 Object attributes beginning with the letter **c** . Object attributes beginning with the letter **c** .
  
-Taken from the (unsorted) wholepage [[:dev:Object Fields]] .+Partly taken from the (unsorted) wholepage [[:dev:Object Fields]] .
  
-===== List ==+===== List of attributes ==
  
 +==== can_cast_* ==
 +=== can_cast_spell ==
  
-==== carrying ==== +==== can_see_in_dark == 
-Type: sint32+Type: #define FLAG_SEE_IN_DARK 93  
 + 
 +Comment: /* if set ob not effected by darkness */
  
 Meaning: Meaning:
 +==== can_use_* ==
 +=== can_use_armour ==
 +=== can_use_bow ==
 +=== can_use_scroll ==
 +=== can_use_shield ==
 +=== can_use_skill ==
 +=== can_use_range ==
 +=== can_use_ring ==
 +=== can_use_weapon ==
 +
  
 ==== casting_time ==== ==== casting_time ====
 Type: sint16 Type: sint16
 +
 +Comment: Time left before spell goes off
  
 Meaning: Meaning:
Line 21: Line 37:
 ==== Cha ==== ==== Cha ====
 Type: sint8 Type: sint8
- 
-Meaning: 
- 
-==== chosen_skill ==== 
-Type: obj * 
  
 Meaning: Meaning:
Line 31: Line 42:
 ==== client_type ==== ==== client_type ====
 Type: uint16 Type: uint16
 +
 +Comment: Public type information.  see doc/Developers/objects
  
 Meaning: Meaning:
Line 42: Line 55:
  
 ==== container ==== ==== container ====
-Type: obj *+Type:
  
-MeaningCurrent container being used. I think this is only used by the player right now.+Comment:
  
 +Meaning: How much weight in grams the container can hold. 
  
-==== contr ==== +==== custom_name ==== 
-Type: pl *+Type: const char (shared string) 
 + 
 +Comment: Custom name assigned by player 
 + 
 +Meaning: The player command [[:player_commands#rename]] sets it. 
 + 
 +Syntax: ''rename <name> to <new name>'' - the carets are mandatory in this case, spaces allowed  
 + 
 +Example: rename <hide> to <polar bear's hide> would then print for the DM command [[:dm_commands#dump]] for the several *name* attributes  
 +  * arch hide_white 
 +  * name hide 
 +  * name_pl hide 
 +  * custom_name polar bear's hide 
 + 
 + 
 +---- 
 + 
 +====== Server struct obj {} object == 
 +These are not archetype attributes, but server internal variables. \\ 
 +Read more on the [[:dev:object_fields]] page. 
 + 
 +==== carrying ==== 
 +Type: sint32 
 + 
 +Comment: How much weight this object contains
  
 Meaning: Meaning:
-  * pointer to the player which control this object. Will only be set for the player's object itself, and not items in inventory. 
  
-==== count ==== +==== chosen_skill ==== 
-Type: tag_t+Type: obj *
  
-MeaningUnique object number for this object+CommentThe skill chosen to use
  
 +Meaning:
  
-==== current_weapon ====+==== container ====
 Type: obj * Type: obj *
 +
 +Comment: Current container being used. I think this is only used by the player right now.
  
 Meaning: Meaning:
  
-See also [[w:weapontype]]+==== contr ==== 
 +Typepl *
  
-==== current_weapon_script ==== +Comment: Pointer to the player which control this object.  
-Type: const char * (shared string)+   
 +Meaning:  Will only be set for the player's object itself, and not items in inventory. 
 + 
 +==== count ==== 
 +Type: tag_t 
 + 
 +Comment: Unique object number for this object
  
 Meaning: Meaning:
  
-==== custom_name ==== 
-Type: const char * (shared string) 
  
-MeaningThe player command [[:player_commands#rename]] sets it.+==== current_weapon ==== 
 +Typeobj *
  
-Syntax''rename <name> to <new name>''the carets are mandatory in this case, spaces allowed +CommentPointer to the weapon currently used
  
-Examplerename <hide> to <polar bear's hide> would then print for the DM command [[:dm_commands#dump]] for the several *name* attributes  +Meaning:
-  * arch hide_white +
-  * name hide +
-  * name_pl hide +
-  * custom_name polar bear's hide+
  
 +See also [[w#weapontype]]
 +
 +==== current_weapon_script ====
 +Type: const char * (shared string)
  
 +Comment: 
  
 +Meaning: Not anymore included since when ?
  
arch/arch_attributes/c.1523486347.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki