User Tools

Site Tools


arch:arch_attributes:c

Arch Object attributes C

Object attributes beginning with the letter c .

Partly taken from the (unsorted) wholepage Object Fields .

List of attributes

can_cast_*

can_cast_spell

can_see_in_dark

Type: #define FLAG_SEE_IN_DARK 93

Comment: /* if set ob not effected by darkness */

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

Type: sint16

Comment: Time left before spell goes off

Meaning:

See also spell

Cha

Type: sint8

Meaning:

client_type

Type: uint16

Comment: Public type information. see doc/Developers/objects

Meaning:

See also type

Con

Type: sint8

Meaning:

container

Type:

Comment:

Meaning: How much weight in grams the container can hold.

custom_name

Type: const char * (shared string)

Comment: Custom name assigned by player

Meaning: The player command 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 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 object_fields page.

carrying

Type: sint32

Comment: How much weight this object contains

Meaning:

chosen_skill

Type: obj *

Comment: The skill chosen to use

Meaning:

container

Type: obj *

Comment: Current container being used. I think this is only used by the player right now.

Meaning:

contr

Type: pl *

Comment: Pointer to the player which control this object.

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:

current_weapon

Type: obj *

Comment: Pointer to the weapon currently used

Meaning:

See also weapontype

current_weapon_script

Type: const char * (shared string)

Comment:

Meaning: Not anymore included since when ?

arch/arch_attributes/c.txt · Last modified: 2018/04/18 08:37 by karl