Crossfire Server, Trunk  R20513
Data Fields
obj Struct Reference

Main Crossfire structure, one ingame object. More...

#include <object.h>

Collaboration diagram for obj:
Collaboration graph

Data Fields

struct objabove
 Pointer to the object stacked above this one. More...
 
struct objactive_next
 Next object in the 'active' list This is used in process_events so that the entire object list does not need to be gone through. More...
 
struct objactive_prev
 Previous object in the 'active list This is used in process_events so that the entire object list does not need to be gone through. More...
 
uint8_t anim_speed
 Ticks between animation-frames. More...
 
const char * anim_suffix
 Used to determine combined animations. More...
 
uint16_t animation_id
 An index into the animation array. More...
 
struct archtarch
 Pointer to archetype. More...
 
sstring artifact
 If set, the item is the artifact with this name and the matching type. More...
 
uint16_t attack_movement
 What kind of attack movement. More...
 
struct objattacked_by
 This object start to attack us! only player & monster. More...
 
tag_t attacked_by_count
 The tag of attacker, so we can be sure. More...
 
uint32_t attacktype
 Bitmask of attacks this object does. More...
 
struct objbelow
 Pointer to the object stacked below this one. More...
 
int8_t body_info [NUM_BODY_LOCATIONS]
 Body info as loaded from the file. More...
 
int8_t body_used [NUM_BODY_LOCATIONS]
 Calculated value based on items equipped. More...
 
int32_t carrying
 How much weight this object contains. More...
 
int16_t casting_time
 Time left before spell goes off. More...
 
struct objchosen_skill
 The skill chosen to use. More...
 
uint16_t client_type
 Public type information. More...
 
struct objcontainer
 Current container being used. More...
 
struct plcontr
 Pointer to the player which control this object. More...
 
tag_t count
 Unique object number for this object. More...
 
struct objcurrent_weapon
 Pointer to the weapon currently used. More...
 
const char * custom_name
 Custom name assigned by player. More...
 
uint8_t dam_modifier
 How going up in level affects damage. More...
 
struct struct_dialog_informationdialog_information
 Parsed dialog information for this object. More...
 
int8_t direction
 Means the object is moving that way. More...
 
int16_tdiscrete_damage
 damage values, based on each attacktype. More...
 
int16_t duration
 How long the spell lasts. More...
 
uint8_t duration_modifier
 how level modifies duration More...
 
struct objenemy
 Monster/player to follow even if not closest. More...
 
struct objenv
 Pointer to the object which is the environment. More...
 
double expmul
 needed experience = (calc_exp*expmul) - means some races/classes can need less/more exp to gain levels More...
 
const New_Faceface
 Face with colors. More...
 
int8_t facing
 Object is oriented/facing that way. More...
 
uint32_t flags [4]
 Various flags. More...
 
int8_t gen_sp_armour
 Sp regen penalty this object has (was last_heal) More...
 
int8_t glow_radius
 indicates the glow radius of the object More...
 
struct objhead
 Points to the main object of a large body. More...
 
uint8_t hide
 The object is hidden, not invisible. More...
 
struct objinv
 Pointer to the first object in the inventory. More...
 
int16_t invisible
 How much longer the object will be invis. More...
 
int8_t item_power
 Power rating of the object. More...
 
key_valuekey_values
 Fields not explictly known by the loader. More...
 
uint8_t last_anim
 Last sequence used to draw face. More...
 
int32_t last_eat
 How long since we last ate. More...
 
int16_t last_grace
 As last_sp, except for grace. More...
 
int32_t last_heal
 Last healed. More...
 
int32_t last_sp
 As last_heal, but for spell points. More...
 
int16_t level
 Level of creature or object. More...
 
const char * lore
 Obscure information about this object, to get put into books and the like. More...
 
int8_t magic
 Any magical bonuses to this item. More...
 
struct mapdefmap
 Pointer to the map in which this object is present. More...
 
uint8_t map_layer
 What level to draw this on the map. More...
 
uint16_t material
 What materials this object consist of. More...
 
const char * materialname
 Specific material name. More...
 
struct objmore
 Pointer to the rest of a large body of objects. More...
 
MoveType move_allow
 What movement types explicitly allowed. More...
 
MoveType move_block
 What movement types this blocks. More...
 
MoveType move_off
 Move types affected moving off this space. More...
 
MoveType move_on
 Move types affected moving on to this space. More...
 
MoveType move_slow
 Movement types this slows down. More...
 
float move_slow_penalty
 How much this slows down the object. More...
 
int32_t move_status
 What stage in attack mode. More...
 
MoveType move_type
 Type of movement this object uses. More...
 
const char * msg
 If this is a book/sign/magic mouth/etc. More...
 
const char * name
 The name of the object, obviously... More...
 
const char * name_pl
 The plural name of the object. More...
 
struct objnext
 Pointer to the next object in the free/used list. More...
 
uint32_t nrof
 How many of the objects. More...
 
struct archtother_arch
 Pointer used for various things - mostly used for what this objects turns into or what this object creates. More...
 
struct objowner
 Pointer to the object which controls this one. More...
 
tag_t ownercount
 What count the owner had (in case owner has been freed) More...
 
int16_t ox
 
int16_t oy
 For debugging: Where it was last inserted. More...
 
uint32_t path_attuned
 Paths the object is attuned to. More...
 
uint32_t path_denied
 Paths the object is denied access to. More...
 
uint32_t path_repelled
 Paths the object is repelled from. More...
 
int64_t perm_exp
 Permanent exp. More...
 
uint8_t pick_up
 See crossfire.doc. More...
 
struct objprev
 Pointer to the previous object in the free/used list. More...
 
const char * race
 Human, goblin, dragon, etc. More...
 
struct treasureliststructrandomitems
 Items to be generated. More...
 
int8_t range
 Range of the spell. More...
 
uint8_t range_modifier
 How going up in level affects range. More...
 
int16_t resist [NROFATTACKS]
 Resistance adjustments for attacks. More...
 
uint8_t run_away
 Monster runs away if it's hp goes below this percentage. More...
 
const char * skill
 Name of the skill this object uses/grants. More...
 
const char * slaying
 Which race to do double damage to. More...
 
uint8_t smoothlevel
 how to smooth this square around More...
 
uint8_t sound_chance
 Probability, 0 to 100, of the object emitting a sound. More...
 
float speed
 The overall speed of this object. More...
 
float speed_left
 How much speed is left to spend this round. More...
 
struct objspell
 Spell that was being cast. More...
 
tag_tspell_tags
 Tags used for spell effect merging. More...
 
char * spellarg
 Optional argument when casting obj::spell. More...
 
struct objspellitem
 Spell ability monster is choosing to use. More...
 
uint8_t state
 How the object was last drawn (animation) More...
 
living stats
 Str, Con, Dex, etc. More...
 
uint8_t subtype
 Subtype of object. More...
 
uint8_t temp_anim_speed
 Ticks between temporary animation-frames. More...
 
uint16_t temp_animation_id
 An index into the temporary animation array. More...
 
const char * title
 Of foo, etc. More...
 
uint8_t type
 PLAYER, BULLET, etc. More...
 
int32_t value
 How much money it is worth (or contains) More...
 
float weapon_speed
 The overall speed of this object. More...
 
float weapon_speed_left
 How much speed is left to spend this round. More...
 
uint32_t weapontype
 Type of weapon. More...
 
int32_t weight
 Attributes of the object. More...
 
int32_t weight_limit
 Weight-limit of object. More...
 
uint8_t will_apply
 See crossfire.doc and What monsters apply. More...
 
int16_t x
 
int16_t y
 Position in the map for this object. More...
 

Detailed Description

Main Crossfire structure, one ingame object.

Note that the ordering of this structure is sort of relevent - object_copy() copies everything over beyond 'name' using memcpy. Thus, values that need to be copied need to be located beyond that point.

However, if you're keeping a pointer of some sort, you probably don't just want it copied, so you'll need to add to common/object.c, e.g. copy-object

I've tried to clean up this structure a bit (in terms of formatting) by making it more consistent. I've also tried to locate some of the fields more logically together (put the item related ones together, the monster related ones, etc. This structure is best viewed with about a 100 width screen. MSW 2002-07-05

See the documentation page for more details.

Definition at line 274 of file object.h.

Field Documentation

struct obj* obj::above
struct obj* obj::active_next

Next object in the 'active' list This is used in process_events so that the entire object list does not need to be gone through.

Definition at line 279 of file object.h.

Referenced by cast_invisible(), cfapi_object_get_property(), object_clear(), object_count_active(), object_new(), object_remove_from_active_list(), object_update_speed(), process_events(), and START_TEST().

struct obj* obj::active_prev

Previous object in the 'active list This is used in process_events so that the entire object list does not need to be gone through.

Definition at line 283 of file object.h.

Referenced by cfapi_object_get_property(), object_clear(), object_new(), object_remove_from_active_list(), object_update_speed(), process_events(), and START_TEST().

uint8_t obj::anim_speed
obj::anim_suffix

Used to determine combined animations.

Use

Type(s) Description
Builder, Building material, Weapon If set, will apply a compound animation to the player or monster when attacking with this weapon.
Class Changer If set, the animation of the player being changed will be set to the animation with name <race_animation_suffix>, if it exists.
Skill If set, will apply a compound animation to the player or monster using this skill.
Spell If set, will apply a compound animation to the player or monster casting this spell.

Definition at line 316 of file object.h.

Referenced by apply_by_living(), apply_changes_to_player(), attack_ob_simple(), cast_spell(), do_skill(), fire_bow(), get_ob_diff(), god_intervention(), and object_copy().

uint16_t obj::animation_id
struct archt* obj::arch

Pointer to archetype.

Definition at line 412 of file object.h.

Referenced by account_char_add(), add_abilities(), add_book_to_list(), add_one_item(), add_statbonus(), alchemy_failure_effect(), animate_object(), animate_weapon(), apply_auto_fix(), apply_builder_floor(), apply_builder_item(), apply_builder_wall(), apply_builder_window(), apply_changes_to_player(), apply_map_builder(), apply_race_and_class(), arch_present_in_ob(), arch_to_object(), attempt_recipe(), calc_skill_exp(), can_build_over(), cast_detection(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), check_inv_recursive(), check_login(), command_create(), command_statistics(), command_use(), common_ob_move_on(), common_pre_ob_move_on(), convert_item(), count_unpaid(), deathstrike_living(), drain_wand_charge(), dump_races(), eat_item(), esrv_update_stats(), examine_monster(), find_better_arrow(), find_transmution_ob(), first_arch_pass(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_player(), fix_summon_pet(), fix_walls(), gate_type_process(), get_exit_seed(), get_player(), hit_map(), hit_player(), hit_with_one_attacktype(), identify(), improve_armour(), init_artifacts(), is_dragon_pl(), is_old_wraith_pl(), is_road(), is_special_equipment(), is_true_undead(), is_wraith_pl(), key_change_class(), knowledge_alchemy_attempt(), legal_artifact_combination(), load_objects(), local_check_loaded_object(), make_map_floor(), make_map_walls(), map2_add_ob(), matches_sacrifice(), mon_info_msg(), monster_can_pick(), monster_check_apply(), mood_change(), move_creator(), move_duplicator(), ob_blocked(), object_can_merge(), object_copy(), object_dump(), object_find_by_arch_name(), object_find_by_type_and_arch_name(), object_fix_multipart(), object_free2(), object_get_multi_size(), object_insert_in_map_at(), object_set_value_s(), pets_summon_object(), pick_joined_wall(), place_exits(), place_monsters(), player_can_view(), polymorph(), price_base(), print_monsters(), process_events(), put_decor(), put_doors(), put_floor(), recharge(), remove_statbonus(), save_object(), set_abs_magic(), set_object_face_main(), set_object_face_other(), CREWrapperObject::setObject(), shop_price_sell(), should_director_abort(), START_TEST(), transmute_materialname(), transport_type_apply(), trigger_connected(), worship_forbids_use(), and write_scroll().

obj::artifact
obj::attack_movement

What kind of attack movement.

Use

Type(s) Description
Monster & NPC, Monster (Grimreaper)

<![CDATA[ Specifies how the NPC or Monster moves: default - Move toward a player. DISTATT - Move toward a player if far, but maintain some space, attack from a distance - good for missile users only. RUNATT - Run but attack if player catches up to object. HITRUN - Run to then hit player then run away cyclicly. WAITATT - Wait for player to approach then hit, move if hit. RUSH - Rush toward player blindly, similiar to dumb monster. ALLRUN - Always run, never attack good for sim. of weak player. DISTHIT - Attack from a distance if hit as recommended by Frank. WAIT2 - Monster does not try to move towards player if far. Maintains comfortable distance.

The second setting specifies the behavior when there is no enemy: default - Stand still. PETMOVE - The monster follows the player until it is called off and will try to attack whatever the player is attacking. CIRCLE1 - The monster will move in a circle until it is attacked, or until it finds an enemy. This is good for non-aggressive monsters and NPC. CIRCLE2 - Same as CIRCLE1 but a larger circle is used. PACEH - The monster will pace back and forth until attacked. This is HORIZONTAL movement. PACEH2 - The monster will pace as above but the length of the pace area is longer and the monster stops before changing directions. This is HORIZONTAL movement. RANDO - The monster will go in a random direction until it is stopped by an obstacle, then it chooses another direction. RANDO2 - Constantly move in a different random direction. PACEV - The monster will pace back and forth until attacked. This is VERTICAL movement. PACEV2 - The monster will pace as above but the length of the pace area is longer and the monster stops before

Definition at line 391 of file object.h.

Referenced by cfapi_object_get_property(), cfapi_object_set_property(), change_object(), do_mood_floor(), fix_summon_pet(), get_ob_diff(), monster_check_enemy(), monster_find_enemy(), monster_move(), monster_move_no_enemy(), mood_change(), peacemaker_type_process(), pets_get_enemy(), pets_summon_golem(), pets_summon_object(), polymorph_living(), steal(), and use_oratory().

struct obj* obj::attacked_by

This object start to attack us! only player & monster.

Definition at line 382 of file object.h.

Referenced by cfapi_object_get_property(), monster_find_enemy(), monster_move(), pets_get_enemy(), and START_TEST().

tag_t obj::attacked_by_count

The tag of attacker, so we can be sure.

Definition at line 383 of file object.h.

Referenced by monster_find_enemy(), monster_move(), object_clear(), and pets_get_enemy().

obj::attacktype

Bitmask of attacks this object does.

Use

Type(s) Description
Disease The disease will attack the host with the given <attack type>. Godpower attack type is commonly used for "unresistable" diseases.
Hazard Floor This attribute specifies the attack types that this floor uses to damage it's victims. Attack types are: physical, fire, cold.. etc. If you want a real tough hazard floor, add more than just one attack type.
Monster & NPC, Monster (Grimreaper)

This number is a bitmask, specifying the monster's attack types for melee damage. Attack types are: physical, magical, fire, cold.. etc. Strong monsters often have more than just physical attack type.

When a monster with multiple attack types hits an opponent, it will do as much damage as the "best" of it's attack types does. So, the more attack types, the more dangerous. Attack types "magic" and "chaos" are somehow exceptions.

Mover If forced movement is enabled, the mover "freezes" anyone it moves (so they are forced to move along a chain). For players there is no way to escape this forced movement, except being pushed by a second player.
Potion There are two types of special effects for potions: 'life restoration' - restore the player's stats lost by death or draining (this has nothing in common with the restoration spell!) 'improvement' - increase the player's maximum health/mana/grace by a very small amount.
Projectile This number is a bitmask, specifying the projectile's attack types. Attack types are: physical, magical, fire, cold.. etc. This works identical to melee weapons. Note that shooting weapons cannot have attack types.
Rune If there isn't any spell (and <summon monster> is unset), this attribute defines what attack type to use for direct damage when the rune detonates.
Trap This attribute defines what attack type to use for direct damage when the trap detonates.
Weapon

This number is a bitmask, specifying the weapon's attack types. Attack types are: physical, magical, fire, cold.. etc. Most artifact weapons have no more than one or two attack types. Keep in mind that all weapons can be blessed by the player's deity, thus adding an additional attack type.

When a player hits a monster with a weapon that has more than one attack type, then he will do as much damage as the "best" of his attack types does. So, the more attack types you've got, the better your chance to take advantage of a monster's vulnerabilities. (Btw: Same rule applies for monster vs. player.). Attack types "magic" and "chaos" are somehow exceptions.

Definition at line 342 of file object.h.

Referenced by add_abilities(), animate_bomb(), animate_weapon(), attack_ob_simple(), calc_item_power(), cast_bless(), cast_change_ability(), cast_cone(), cast_destruction(), cast_detection(), cast_heal(), cast_light(), cast_smite_spell(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), check_bullet(), counterspell(), create_aura(), create_bomb(), describe_item(), describe_monster(), do_symptoms(), dragon_ability_gain(), dump_gods(), enter_exit(), examine_monster(), explode_bullet(), explosion(), fire_arch_from_position(), fire_bolt(), fire_bow(), fire_swarm(), fix_flesh_item(), fix_object(), fix_player(), fix_stopped_arrow(), get_ob_diff(), god_enchants_weapon(), kill_player_not_permadeath(), magic_wall(), main(), mood_change(), move_aura(), move_ball_spell(), move_bolt(), move_cone(), move_player_mover(), move_symptom(), new_exp(), object_can_merge(), object_merge_spell(), old_describe_monster(), pets_summon_golem(), player_mover_type_move_on(), potion_type_apply(), print_monsters(), rune_attack(), CREWrapperObject::setObject(), shuffle_attack(), special_potion(), spell_effect_type_move_on(), START_TEST(), tailor_god_spell(), and trap_adjust().

struct obj* obj::below
int8_t obj::body_info[NUM_BODY_LOCATIONS]
int8_t obj::body_used[NUM_BODY_LOCATIONS]

Calculated value based on items equipped.

Definition at line 373 of file object.h.

Referenced by adj_stealchance(), apply_can_apply_object(), command_body(), fix_object(), and unapply_for_ob().

obj::carrying
obj::casting_time

Time left before spell goes off.

Use

Type(s) Description
Spell If the server uses spell casting times, this is the base number of ticks required for casting this spell.

Definition at line 402 of file object.h.

Referenced by append_spell(), attack_ob_simple(), cast_spell(), object_clear(), process_events(), process_players1(), and rangetostring().

struct obj* obj::chosen_skill
uint16_t obj::client_type

Public type information.

see doc/Developers/objects

Definition at line 340 of file object.h.

Referenced by add_object_to_socklist(), cfapi_object_get_property(), get_ob_diff(), and object_can_merge().

obj::container

Current container being used.

I think this is only used by the player right now.

Use

Type(s) Description
Container The container can hold a maximum total weight of the given value in gram. Note that this weight limit is calculated after the weight reduction (<reduce weight>) has been applied.
Transport How much this transport can carry.

Definition at line 291 of file object.h.

Referenced by apply_by_living_below(), apply_cmd(), apply_container(), cfapi_object_get_property(), cfapi_object_set_property(), command_apply(), command_dropall(), command_take(), do_server(), drop(), esrv_del_item(), esrv_get_ob_from_count(), esrv_send_item(), knowledge_alchemy_attempt(), loot_object(), object_clear(), object_decrease_nrof(), object_increase_nrof(), pick_up(), put_object_in_sack(), query_flags(), query_name(), runapply(), save_player(), send_changed_object(), and START_TEST().

struct pl* obj::contr

Pointer to the player which control this object.

Definition at line 276 of file object.h.

Referenced by action_makes_visible(), add_player_exp(), add_statbonus(), alchemy(), animate_weapon(), apply_by_living_below(), apply_changes_to_player(), apply_check_apply_restrictions(), apply_check_item_power(), apply_container(), apply_manual(), apply_map_builder(), apply_race_and_class(), apply_savebed(), apply_special(), apply_update_ranged_skill(), attempt_hide(), attempt_jump(), become_follower(), blinded_sight(), book_type_apply(), cast_create_town_portal(), cast_invisible(), cast_spell(), cast_word_of_recall(), caster_level(), cfapi_object_drop(), cfapi_object_get_property(), cfapi_object_set_property(), cfapi_object_teleport(), cfapi_party_get_property(), cfapi_player_knowledge(), cfapi_player_quest(), change_abil(), change_skill(), change_spell(), check_login(), check_pick(), check_wall(), clear_los(), clear_skill(), clock_type_apply(), command_applymode(), command_bowmode(), command_brace(), command_cast_spell(), command_create(), command_diff(), command_drop(), command_dropall(), command_dump(), command_dumpbelow(), command_fire(), command_fire_stop(), command_follow(), command_forget_spell(), command_free(), command_help(), command_insert_into(), command_kick2(), command_knowledge(), command_language(), command_learn_spell_or_prayer(), command_listen(), command_mark(), command_nowiz(), command_party(), command_party_rejoin(), command_passwd(), command_patch(), command_peaceful(), command_petmode(), command_pickup(), command_possess(), command_quest(), command_quit(), command_remove(), command_reply(), command_reset(), command_run(), command_run_stop(), command_search_items(), command_sound(), command_stack_clear(), command_stack_list(), command_stack_pop(), command_stack_push(), command_statistics(), command_stay(), command_teleport(), command_tell_all(), command_title(), command_toggle_shout(), command_unarmed_skill(), command_usekeys(), confirm_party_password(), confirm_password(), deep_swamp_type_process(), describe_monster(), dimension_door(), display_new_pickup(), do_forget_spell(), do_hidden_move(), do_learn_spell(), do_mood_floor(), do_skill_attack(), do_some_living(), do_wizard_dm(), do_wizard_hide(), draw_client_map(), draw_client_map2(), draw_ext_info(), draw_magic_map(), drop(), drop_object(), eat_special_food(), enter_exit(), enter_map(), enter_player_maplevel(), enter_player_savebed(), esrv_draw_look(), esrv_get_ob_from_count(), esrv_move_object(), esrv_send_inventory(), esrv_send_item(), esrv_update_item(), execute_newserver_command(), expand_lighted_sight(), expand_sight(), find_best_player_hth_skill(), find_key(), find_marked_object(), find_player_options(), fire(), fire_bow(), fire_misc_object(), fix_luck(), fix_object(), fix_player(), friendly_fire(), get_language(), get_name(), get_party_password(), get_password(), get_player(), give_skill_by_name(), gravestone_text(), handle_newcs_player(), help_topics(), hiscore_check(), i18n(), improve_armour(), improve_weapon(), is_legal_2ways_exit(), key_change_class(), key_confirm_quit(), key_roll_stat(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_do_attempt(), knowledge_do_display(), knowledge_item_can_be_used_alchemy(), knowledge_show(), knowledge_show_monster_detail(), leave(), legal_range(), link_player_skills(), make_perma_dead(), make_visible(), makes_invisible_to(), monster_can_detect_enemy(), monsterFight(), move_internal(), move_ob(), move_player(), move_player_attack(), object_clear(), object_insert_in_map(), object_insert_in_ob(), object_matches_string(), object_remove(), object_update(), old_describe_monster(), party_form(), party_join(), party_leave(), party_send_message(), pets_get_enemy(), pets_move(), pets_move_golem(), pets_should_arena_attack(), pets_summon_golem(), pick_up(), play_again(), player_attack_door(), player_can_view(), player_changer_type_process(), player_fire_bow(), player_lvl_adj(), player_update_bg_music(), poison_type_apply(), potion_type_apply(), print_los(), push_ob(), put_object_in_sack(), rangetostring(), receive_party_password(), receive_play_again(), receive_player_name(), receive_player_password(), remove_special_prayers(), remove_statbonus(), roll_again(), roll_stats(), runghosted(), runmovement(), save_player(), send_changed_object(), send_plugin_custom_message(), set_dragon_name(), set_first_map(), set_pickup_mode(), set_title(), set_wall(), share_exp(), shop_mat_type_move_on(), show_skills(), skill_attack(), spellbook_type_apply(), START_TEST(), steal(), swap_stat(), teleport(), transfer_ob(), transmute_item_to_flower(), transport_type_apply(), unapply_special(), update_los(), write_scroll(), and wrong_password().

tag_t obj::count

Unique object number for this object.

Definition at line 299 of file object.h.

Referenced by add_button_link(), add_friendly_object(), add_object_to_socklist(), animate_weapon(), append_spell(), apply_container(), attack_ob_simple(), cast_cone(), cast_create_missile(), cast_magic_storm(), cast_smite_spell(), cfapi_object_get_property(), cfapi_object_set_property(), cftimer_create(), check_bullet(), check_pick(), command_cast_spell(), command_create(), command_dumpbelow(), command_mark(), command_patch(), command_rename_item(), command_stack_list(), command_stack_push(), Crossfire_Object_new(), Crossfire_Object_wrap(), Crossfire_Player_new(), do_throw(), drop_object(), dump_friendly_objects(), esrv_del_item(), esrv_get_ob_from_count(), esrv_move_object(), esrv_new_player(), esrv_remove_spell(), esrv_send_inventory(), esrv_send_item(), esrv_update_item(), esrv_update_stats(), examine(), explode_bullet(), CRECombatSimulator::fight(), fire(), fire_bow(), get_button_links(), get_button_value(), get_dm_object(), get_who_escape_code_value(), handle_newcs_player(), hit_map(), hit_player(), hit_with_arrow(), knowledge_alchemy_attempt(), legal_range(), lighter_type_apply(), look_at(), mark_item_cmd(), monster_check_apply(), monster_find_enemy(), monster_move(), monster_use_range(), monster_use_skill(), monsterFight(), move_cone(), move_missile(), move_ob(), move_symptom(), object_check_move_on(), object_dump(), object_dump_all(), object_find_by_tag(), object_find_by_tag_global(), object_free2(), object_get_owner(), object_get_owner_const(), Object_GetExists(), object_insert_in_ob(), object_new(), object_remove(), object_set_enemy(), object_set_owner(), pets_get_enemy(), pets_move(), pets_move_golem(), pets_summon_golem(), pick_up_object(), price_approx(), process_events(), remove_friendly_object(), rune_attack(), spell_effect_type_move_on(), spell_failure(), spring_trap(), START_TEST(), stop_projectile(), treasure_type_apply(), trigger_connected(), update_button(), update_buttons(), and verify_button_links().

struct obj* obj::current_weapon
const char* obj::custom_name
uint8_t obj::dam_modifier
struct struct_dialog_information* obj::dialog_information

Parsed dialog information for this object.

Valid if FLAG_DIALOG_PARSED is set (but can be NULL).

Definition at line 300 of file object.h.

Referenced by free_dialog_information(), get_dialog_message(), and parse_dialog_information().

int8_t obj::direction
int16_t* obj::discrete_damage

damage values, based on each attacktype.

Definition at line 435 of file object.h.

Referenced by free_arch(), get_ob_diff(), hit_with_one_attacktype(), object_clear(), object_copy(), object_free2(), and object_new().

obj::duration
uint8_t obj::duration_modifier

how level modifies duration

Definition at line 404 of file object.h.

Referenced by fix_generated_item(), get_ob_diff(), level_for_item(), reportSummon(), and SP_level_duration_adjust().

struct obj* obj::enemy
struct obj* obj::env

Pointer to the object which is the environment.

This is typically the container that the object is in.

Definition at line 293 of file object.h.

Referenced by abort_attack(), add_object_to_socklist(), animate_bomb(), apply_auto(), apply_by_living(), apply_container(), apply_handle_yield(), apply_special(), attempt_recipe(), blindness_type_process(), book_type_apply(), cancellation(), cfapi_object_get_property(), cfapi_object_set_property(), change_object(), check_infection(), check_spell_expiry(), do_mood_floor(), do_symptoms(), drop(), esrv_del_item(), esrv_move_object(), esrv_remove_spell(), esrv_send_item(), esrv_update_item(), execute_word_of_recall(), explode_bullet(), find_by_name(), find_symptom(), fix_container_multipart(), god_examines_item(), grant_immunity(), hit_map(), hit_with_arrow(), identify(), infect_object(), legacy_ob_apply(), local_check_loaded_object(), lock_item_cmd(), make_item_from_recipe(), make_object_glow(), map_get_path(), move_aura(), move_detector(), move_disease(), move_player_mover(), move_symptom(), object_add_weight(), object_clear(), object_decrease_nrof(), object_dump(), object_get_env_recursive(), object_get_player_container(), object_increase_nrof(), object_insert_in_ob(), object_remove(), object_sub_weight(), object_update(), pick_up(), pick_up_object(), play_sound_map(), play_sound_player_only(), poisoning_type_process(), process_events(), process_object(), put_object_in_sack(), query_flags(), query_name(), remove_force(), remove_symptoms(), save_throw_object(), send_changed_object(), spellbook_type_apply(), start_animation(), START_TEST(), and transport_type_apply().

obj::expmul

needed experience = (calc_exp*expmul) - means some races/classes can need less/more exp to gain levels

Use

Type(s) Description
Skill This is the ratio of experience the players total should increase by when this skill is used. If this is zero, then experience only goes to to the skill. Values higher than 1 are allowed. Note that experience rewarded to the players total is in addition to that given to the skill. Eg, if player should get 500 exp for using a skill, and expmul is 1, the player will get 500 added to that skill as well as 500 to their total.

Definition at line 395 of file object.h.

Referenced by add_player_exp(), cfapi_object_get_property(), cfapi_object_set_property(), command_statistics(), get_ob_diff(), object_clear(), player_lvl_adj(), show_skills(), and START_TEST().

obj::face

Face with colors.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Rune, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trap, Trapdoor, Treasure, Trigger Marker, Wall, Wand & Staff, Weak Wall, Weapon The image-name defines what image is displayed for this object in-game.

Definition at line 332 of file object.h.

Referenced by account_char_add(), add_abilities(), add_face_layer(), add_object_to_socklist(), adjust_sign_msg(), animate_object(), animate_weapon(), append_spell(), apply_changes_to_player(), CREUtils::archetypeNode(), artifact_get_face(), CREArtifactPanel::artifactChanged(), CREUtils::artifactNode(), cfapi_object_get_property(), cfapi_object_set_property(), CRECombatSimulator::CRECombatSimulator(), dragon_ability_gain(), dragon_focus_type_apply(), drain_wand_charge(), esrv_new_player(), esrv_update_item(), first_arch_pass(), fix_flesh_item(), CREUtils::formulaeNode(), get_ob_diff(), init_skills(), knowledge_alchemy_face(), knowledge_god_face(), knowledge_monster_face(), lock_and_hide_doors(), magic_mapping_mark(), magic_mapping_mark_recursive(), main(), map2_add_ob(), monster_move(), object_clear(), object_give_identified_properties(), CREUtils::objectNode(), CREMainWindow::onReportDuplicate(), place_fountain_with_specials(), set_object_face_main(), set_object_face_other(), CREFacePanel::setItem(), START_TEST(), tear_down_wall(), transport_type_apply(), trap_show(), and write_rune().

int8_t obj::facing
uint32_t obj::flags[4]

Various flags.

Definition at line 415 of file object.h.

Referenced by apply_builder_window(), cast_detection(), clear_flag(), fix_walls(), object_can_merge(), query_flag(), and set_flag().

int8_t obj::gen_sp_armour

Sp regen penalty this object has (was last_heal)

Definition at line 363 of file object.h.

Referenced by add_abilities(), cfapi_object_get_property(), cfapi_object_set_property(), get_ob_diff(), and local_check_loaded_object().

obj::glow_radius

indicates the glow radius of the object

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Rune, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trap, Trapdoor, Treasure, Trigger Marker, Wall, Wand & Staff, Weak Wall, Weapon If <glow radius> is set to a value greater zero, the object appears lit up on dark maps. <glow radius> can be a value between 0 and 4, the higher, the more light does the object emit.

Definition at line 364 of file object.h.

Referenced by cast_detection(), cfapi_object_get_property(), cfapi_object_set_property(), describe_item(), fix_object(), get_ob_diff(), has_carried_lights(), make_object_glow(), monster_stand_in_light(), object_insert_in_map(), object_insert_in_ob(), object_remove(), perceive_self(), ring_desc(), and update_position().

struct obj* obj::head
uint8_t obj::hide
struct obj* obj::inv

Pointer to the first object in the inventory.

Definition at line 290 of file object.h.

Referenced by add_abilities(), alchemy_failure_effect(), altar_type_move_on(), apply_by_living_below(), apply_can_apply_object(), apply_race_and_class(), arch_present_in_ob(), attempt_do_alchemy(), attempt_pick_lock(), attempt_recipe(), can_pay(), cast_dust(), cfapi_object_get_property(), check_generators(), check_login(), command_apply(), command_dropall(), command_take(), common_projectile_move_on(), convert_item(), count_unpaid(), destroy_object(), do_throw(), dragon_ability_gain(), drain_rod_charge(), empty_container(), esrv_draw_look(), esrv_move_object(), examine(), find_best_object_match(), find_key(), find_target_for_friendly_spell(), fire_misc_object(), fix_container(), fix_generated_item(), generate_treasure(), god_gives_present(), hit_with_arrow(), identify(), kill_player_not_permadeath(), knowledge_alchemy_attempt(), leave(), level_for_item(), load_objects(), local_check_loaded_object(), make_item_from_recipe(), monster_cast_spell(), monster_check_apply(), monster_use_range(), monster_use_scroll(), move_creator(), move_firewall(), object_can_merge(), object_clear(), object_dump(), object_find_by_arch_name(), object_find_by_flag(), object_find_by_flag_applied(), object_find_by_name(), object_find_by_tag(), object_find_by_type(), object_find_by_type2(), object_find_by_type_and_arch_name(), object_find_by_type_and_name(), object_find_by_type_and_race(), object_find_by_type_and_skill(), object_find_by_type_and_slaying(), object_find_by_type_applied(), object_find_by_type_subtype(), object_free2(), object_insert_in_ob(), object_present_in_ob(), object_present_in_ob_by_name(), object_remove(), object_set_flag_inv(), object_unset_flag_inv(), CRETreasurePanel::onGenerate(), perceive_self(), pick_up(), pick_up_object(), player_attack_door(), potion_type_apply(), put_object_in_sack(), query_base_name(), query_short_name(), rangetostring(), recharge(), remove_contents(), remove_force(), remove_unpaid_objects(), rod_adjust(), rune_attack(), save_player(), save_throw_object(), scroll_type_apply(), shop_mat_type_move_on(), shop_pay_unpaid(), spellbook_type_apply(), spring_trap(), START_TEST(), stop_item(), stop_projectile(), teardown(), thrown_object_type_process(), trap_adjust(), trap_disarm(), treasure_type_apply(), unapply_for_ob(), and write_scroll().

obj::invisible

How much longer the object will be invis.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Rune, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trap, Trapdoor, Treasure, Trigger Marker, Wall, Wand & Staff, Weak Wall, Weapon Generally makes the object invisible. Depending on the object-type, some can be made visible by the show_invisible spell. If in doubt, test it. Putting an invisible object under the floor always prevents it from being shown.

Definition at line 360 of file object.h.

Referenced by action_makes_visible(), adj_attackroll(), adj_stealchance(), adjust_sign_msg(), animate_object(), animate_one(), apply_by_living_below(), apply_update_ranged_skill(), attempt_hide(), attempt_steal(), become_follower(), can_be_transmuted_to_flower(), cancellation(), cast_detection(), cast_invisible(), cfapi_object_get_property(), cfapi_object_set_property(), command_invisible(), command_nowiz(), command_rename_item(), command_take(), common_trap_type_process(), create_all_treasures(), create_one_treasure(), determine_holy_arch(), do_hidden_move(), do_skill_attack(), do_wizard_hide(), dragon_ability_gain(), draw_client_map2(), drop(), find_best_apply_object_match(), find_throw_ob(), fire_swarm(), fix_object(), fix_summon_pet(), get_item_from_body_location(), get_ob_diff(), god_intervention(), handle_newcs_player(), hide(), identify_object_with_skill(), look_at(), magic_mapping_mark(), magic_mapping_mark_recursive(), make_visible(), makes_invisible_to(), monster_can_detect_enemy(), monster_can_see_enemy(), monster_check_wakeup(), object_can_pick(), polymorph_item(), runghosted(), treasure_type_apply(), and unapply_special().

obj::item_power

Power rating of the object.

Use

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield, Shooting Weapon, Weapon

The <item power> value measures how "powerful" an artifact is. Players will only be able to wear equipment with a certain total amount of <item power>, depending on their own level. This is the only way to prevent low level players to wear "undeserved" equipment (like gifts from other players or cheated items).

It is very important to adjust the <item power> value carefully for every artifact you create! If zero/unset, the CF server will calculate a provisional value at runtime, but this is never going to be an accurate measurement of <item power>.

Definition at line 362 of file object.h.

Referenced by add_abilities(), add_one_item(), apply_check_item_power(), cfapi_object_get_property(), cfapi_object_set_property(), describe_item(), detect_curse_on_item(), detect_magic_on_item(), fix_generated_item(), get_ob_diff(), god_enchants_weapon(), identify_object_with_skill(), improve_armour(), improve_weapon(), improve_weapon_magic(), local_check_loaded_object(), and object_can_merge().

key_value* obj::key_values
uint8_t obj::last_anim

Last sequence used to draw face.

Definition at line 418 of file object.h.

Referenced by animate_weapon(), apply_anim_suffix(), cast_detection(), dragon_ability_gain(), object_give_identified_properties(), and process_events().

obj::last_eat

How long since we last ate.

Use

Type(s) Description
Disease Every time the disease "moves", the player's food is reduced by the value of <food depletion>. For negative values, a %-based amount is taken.

Definition at line 356 of file object.h.

Referenced by apply_sign(), apply_special(), become_follower(), cast_cause_disease(), cfapi_object_get_property(), cfapi_object_set_property(), describe_item(), do_symptoms(), dragon_eat_flesh(), dragon_level_gain(), dump_gods(), get_ob_diff(), improve_weapon(), improve_weapon_stat(), lighter_type_apply(), process_players1(), and trigger_connected().

obj::last_grace

As last_sp, except for grace.

Use

Type(s) Description
Disease The <attenuation> value reduces the diseases' <infectiousness> every time it infects someone new. This limits how many generations a disease can propagate.

Definition at line 359 of file object.h.

Referenced by become_follower(), cast_curse(), cast_heal(), cfapi_object_get_property(), cfapi_object_set_property(), dump_gods(), get_ob_diff(), infect_object(), pray(), and process_players1().

obj::last_heal

Last healed.

Depends on constitution

Use

Type(s) Description
Breastplate Armor This poses a penalty to spell regeneration speed, for wearing the armor. The bigger the spellpoint penalty, the worse.
Inventory Checker

<remove match> means remove object if found. Setting this is usually not recommended because inventory checkers are in general invisible. So, unlike for altars/ locked doors, the player won't expect to lose an object when walking over that square. And he doesn't even get a message either.

So, if you enable <remove match>, make sure to inform the player what's going on!

Definition at line 357 of file object.h.

Referenced by become_follower(), cast_raise_dead_spell(), cfapi_object_get_property(), cfapi_object_set_property(), check_inv(), dump_gods(), get_ob_diff(), grant_immunity(), local_check_loaded_object(), meditate(), monster_do_living(), and process_players1().

obj::last_sp

As last_heal, but for spell points.

Use

Type(s) Description
Altar Trigger

If this attribute is enabled, the altar_trigger won't push the connected value by altar reset. Only ONCE by dropping the sacrifice. This is typically used when the altar is connected to a creator, e.g. for selling tickets.

If this attribute is disabled (default), the altar_trigger will push the connected value TWICE per sacrifice: First by dropping sacrifice, second by reset. This mode is typically used for altars being connected to gates, resulting in the gate being opened and closed again.

Breastplate Armor Slowdown penalty reduces the player's walking speed when wearing the armor. Bigger values are worse - zero is best.
Disease If set, the disease imposes a <slowdown penalty> while being infected. The player's speed is reduced by <slowdown penalty> % of normal value.
Inventory Checker Enabled means having that object is a match. Disabled means not having that object is a match.
Mood Floor <mood> is used to determine what will happen to the monster when affected by the mood floor:
  • <mood> 'furious': Makes all monsters aggressive

  • <mood> 'angry': As above but pets are unaffected

  • <mood> 'calm': Makes all monsters unaggressive

  • <mood> 'sleep': Puts all monsters to sleep

  • <mood> 'charm': Turns monster into a pet of person who triggers the square.
    This setting is not enabled for continuous operation, you need to insert a <connection> value!
Weapon The weapon speed determines how often the wielder can swing the weapon during a certain period of time. The lower the faster, <weapon speed> 1 is best (that is lightning- fast). A typical average value is 8. Speed and damage should be kept in reasonable relation.

Definition at line 358 of file object.h.

Referenced by add_abilities(), become_follower(), cast_cause_disease(), cast_heal(), cfapi_object_get_property(), cfapi_object_set_property(), check_inv(), check_trigger(), do_mood_floor(), do_symptoms(), do_throw(), dump_gods(), get_ob_diff(), meditate(), monster_do_living(), process_players1(), and thrown_object_type_process().

obj::level

Level of creature or object.

Use

Type(s) Description
Book If this value is set to be greater than zero, the player needs a certain literacy level to succeed reading the book. The book can be read if: mental_level greater <literacy level> - 5. Adding level to a book can be a nice idea, personally I like it when a player needs more than his fighting skills to solve a quest. However, keep the book level at least below 15 because it is quite hard to gain high mental levels.
Creator The created object will be of that level. If zero/unset, the standard level of the archetype is used.
Disease The <plaque level> is proportional to the disease's deadliness. This mainly reflects in the <damage>. It has no effect on most other symptoms. Nevertheless, it is a very important value for all damage-inflicting diseases.
Duplicator The number of items in the target pile will be multiplied by the <multiply factor>. If it is set to zero, all target objects will be destroyed.
Flesh The <flesh level> is not visible to the players and it affects only dragon players. Normally this value reflects the level of the monster from which the flesh item originates. Dragon players always search for flesh of highest level possible, because it bears the best chance to gain high resistances.
Hazard Floor I guess this value is supposed to work similar to monster levels. But in fact, it does not seem to have an effect. Set any non-zero value to be on the safe side.
Holy Altar

To re-consecrate an altar, the player's wisdom level must be as high or higher than this value. In that way, some altars can not be re-consecrated, while other altars, like those in dungeons, could be.

Altars located in temples should have at least <reconsecrate level> 120. Some characters might need those altars, they would be very unhappy to see them re-consecrated to another cult.

Horn The casting level of the <spell> determines it's power. For attack spells, level should not be set too high.
Magic Wall The wall will cast it's spells at level <spell level>. "level 1" walls cast spells at minimal strength. "level 100" walls cast deadly spells. Arch default is level 1 - you should always set this value to meet the overall difficulty of your map.
Monster & NPC, Monster (Grimreaper) A monster's <level> is the most important attribute. <level> affects the power of a monster in various ways.
Mover

If <move players> is enabled, both players and monsters will be moved. In the arches' default it is disabled - thus ONLY monsters get moved. Remember that "monsters" includes NPCs!

This feature provides you with the possibility to make NPCs literally "come to life". Example: The player is talking with an NPC, speaking a certain keyword. This triggers a magic_ear and activates creators, creating (per default: monster-only) movers under the NPC's feet. The NPC starts "walking" on a predefined route! Note that it's useful to set this NPC immune to everything, preventing the player to push the NPC off his trace.

Potion If the potion contains a spell, the spell is cast at this level. For other potions it should be set at least to 1.
Rod The casting level of the <spell> determines it's power. For attack spells, level should be set to something reasonable.
Rune

This value sets the level the rune will cast the spell it contains at, if applicable. A level 99 rune casts a very, very mean spell of whatever. (<rune level> 0 runes won't detonate at all!)

Level Also effects how easily a rune may be found and disarmed, and how much experience the player gets for doing so. Beware: High level runes can be quite a cheap source of experience! So either make them tough, or keep the level low.

Scroll The spell of the scroll will be casted at this level. This value should always be set, at least to 1.
Skill (no description)
Spell The level, without taking into account spellpath attenuation, required to cast this spell.
Trap Level effects how easily a trap may be found and disarmed, and how much experience the player gets for doing so. Beware: High level traps can be quite a cheap source of experience! So either make them tough, or keep the level low.
Wand & Staff The <casting level> of the wand determines it's power. An average level for wands in shops is about 10.
Weak Wall The <level> of a weak wall works similar to monster levels. Due to the fact that weak walls cannot attack, the level is much less important though.

Definition at line 351 of file object.h.

Referenced by account_char_add(), add_abilities(), add_book_to_list(), add_death(), add_monster(), add_player_exp(), alchemy_failure_effect(), append_spell(), apply_check_item_power(), apply_check_owner(), apply_check_weapon_power(), apply_death_exp_penalty(), attempt_do_alchemy(), attempt_hide(), attempt_pick_lock(), attempt_recipe(), attempt_steal(), become_follower(), book_type_apply(), calc_alch_danger(), calc_skill_exp(), cast_cause_disease(), cast_cone(), cast_consecrate(), cast_detection(), cast_magic_storm(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_wonder(), caster_level(), cfapi_object_get_property(), cfapi_object_set_property(), change_book(), check_probe(), check_spell_knockback(), choose_cult_monster(), command_showpets(), command_statistics(), common_process_projectile(), common_trap_type_move_on(), common_trap_type_process(), cone_drop(), counterspell(), create_aura(), cure_disease(), deathstrike_living(), describe_item(), detect_curse_on_item(), detect_magic_on_item(), do_harvest(), do_hidden_move(), do_skill_ident(), do_symptoms(), do_throw(), dragon_eat_flesh(), dragon_level_gain(), dump_gods(), dump_races(), dump_spells(), esrv_update_stats(), examine(), examine_monster(), find_ingred_cost(), find_skill_by_name(), fire_arch_from_position(), fire_bow(), fire_swarm(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_player(), fix_stopped_arrow(), flee_player(), get_living_id(), get_ob_diff(), get_random_mon(), get_who_escape_code_value(), give_skill_by_name(), god_examines_priest(), god_intervention(), grant_immunity(), gravestone_text(), hide(), hit_player(), hit_with_one_attacktype(), identify_object_with_skill(), improve_armour(), improve_weapon(), improve_weapon_magic(), infect_object(), jump(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), learn_skill(), level_for_item(), local_check_loaded_object(), magic_wall(), meditate(), min_casting_level(), monster_can_detect_enemy(), monsterFight(), monsterTable(), mood_change(), move_creator(), move_duplicator(), move_player_mover(), object_can_merge(), object_merge_spell(), CREMainWindow::onReportSpellDamage(), peacemaker_type_process(), perceive_self(), pets_summon_object(), pick_arrow_target(), place_chest(), player_lvl_adj(), player_mover_type_move_on(), poison_living(), polymorph_living(), potion_type_apply(), pray_at_altar(), price_approx(), push_ob(), query_base_name(), query_short_name(), recharge(), recipe_chance(), reflwall(), remove_door(), remove_locked_door(), reportSummon(), rod_adjust(), roll_stats(), save_player(), scroll_type_apply(), CREWrapperObject::setObject(), share_exp(), shop_price_buy(), show_skills(), singing(), SP_level_spellpoint_cost(), spell_failure(), spellbook_type_apply(), spellpath_msg(), spellsTable(), START_TEST(), swap_stat(), tailor_readable_ob(), trap_adjust(), trap_disarm(), trap_see(), treasure_type_apply(), use_oratory(), write_rune(), and write_scroll().

const char* obj::lore

Obscure information about this object, to get put into books and the like.

Definition at line 323 of file object.h.

Referenced by cctk_set_object_strings(), cfapi_object_get_property(), cfapi_object_set_property(), get_ob_diff(), main(), move_marker(), object_can_merge(), object_clear(), object_copy(), object_free2(), object_new(), object_reset(), and START_TEST().

obj::magic

Any magical bonuses to this item.

Use

Type(s) Description
Boots

<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the boots.

Important: <magic bonus> on boots has no effect if there is no <armor class> set. It only works in combination with <armor class>.

Bracers <magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the bracers.
Breastplate Armor <magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the armor.
Cloak

<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the cloak.

Important: <magic bonus> on cloaks has no effect if there is no <armor class> set. It only works in combination with <armor class>.

Disease <infection range> sets the range at which infection may occur. If positive, the <infection range> is level dependant - If negative, it is not: E.g. "&lt;infection range&gt; -6" means creatures can be infected in six square range, and <plaque level> doesn't modify that.
Girdle

<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the helmet.

Important: <magic bonus> on girdles has no effect if there is no <armor class> set. Girdles shouldn't have <armor class>, thus <magic bonus> is pointless here.

Gloves If the gloves provide <armor class>, <magic bonus> will increase it. If the gloves have <weapon class> instead, then <magic bonus> will increase that.
Helmet

<magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the helmet.

Important: <magic bonus> on helmets has no effect if there is no <armor class> set. It only works in combination with <armor class>. Crowns for instance typically provide no <amour class>.

Projectile Magic bonus increases chance to hit and damage a little bit.
Shield <magic bonus> works just like ac, except that it can be improved by "scrolls of Enchant Armour" or reduced by acid. It is less useful than direct armor-class bonus on the shield.
Shooting Weapon <Magic bonus> improves the quality of the shooting weapon. I'm not sure what exactly is increased - maybe weapon class? However, <magic bonus> seems to have a little bit of positive influence on your chance to hit.
Weapon For a weapon, magic bonus works just like weapon class, except that magic bonus can be improved by the gods or reduced by acid. Hence, it is less useful than direct weapon class value on a weapon.

Definition at line 348 of file object.h.

Referenced by add_abilities(), alchemy_failure_effect(), animate_weapon(), attempt_do_alchemy(), calc_alch_danger(), calc_item_power(), calc_skill_exp(), cancellation(), cast_cause_disease(), cast_create_missile(), cfapi_object_get_property(), cfapi_object_set_property(), check_infection(), describe_item(), did_make_save_item(), do_throw(), find_better_arrow(), fire_bow(), fix_generated_item(), generate_artifact(), get_ob_diff(), identify_object_with_skill(), improve_armour(), improve_weapon(), improve_weapon_magic(), is_magical(), monster_get_armour_quality(), monster_get_weapon_quality(), object_can_merge(), polymorph_item(), price_base(), query_base_name(), query_short_name(), recipe_chance(), and set_abs_magic().

struct mapdef* obj::map

Pointer to the map in which this object is present.

Definition at line 297 of file object.h.

Referenced by abort_attack(), account_char_add(), add_death(), add_object_to_socklist(), add_player_event(), adj_attackroll(), alchemy(), alchemy_failure_effect(), animate_bomb(), animate_weapon(), apply_auto(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), apply_container(), apply_handle_yield(), apply_map_builder(), apply_savebed(), armour_improver_type_apply(), arrow_type_process(), attempt_hide(), attempt_jump(), attempt_pick_lock(), basic_emote(), calc_skill_exp(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_change_map_lightlevel(), cast_cone(), cast_consecrate(), cast_create_obj(), cast_create_town_portal(), cast_curse(), cast_destruction(), cast_detection(), cast_earth_to_dust(), cast_heal(), cast_identify(), cast_light(), cast_magic_storm(), cast_polymorph(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_transfer(), cf_object_out_of_map(), cfapi_object_cast(), cfapi_object_get_property(), cfapi_object_set_property(), change_object(), charge_mana_effect(), check_altar_sacrifice(), check_bullet(), check_infection(), check_spell_knockback(), check_wall(), command_cointoss(), command_create(), command_dumpmap(), command_goto(), command_kick2(), command_me(), command_nowiz(), command_overlay_reset(), command_overlay_save(), command_reset(), command_save(), command_summon(), command_teleport(), command_whereabouts(), common_process_projectile(), cone_drop(), convert_item(), converter_type_move_on(), counterspell(), create_bomb(), create_player_cmd(), current_map_info(), current_region_info(), dimension_door(), dispel_rune(), do_execute_event(), do_harvest(), do_hidden_move(), do_mood_floor(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), do_throw(), do_turn(), do_wizard_hide(), draw_client_map(), draw_client_map2(), drop_object(), emergency_save(), enter_exit(), enter_fixed_template_map(), enter_map(), enter_player_savebed(), enter_random_map(), enter_random_template_map(), enter_unique_map(), esrv_draw_look(), esrv_get_ob_from_count(), esrv_move_object(), eventListener(), examine(), execute_word_of_recall(), expand_lighted_sight(), expand_sight(), explode_bullet(), explosion(), ext_info_map(), ext_info_map_except(), ext_info_map_except2(), find_by_name(), find_or_create_connection_for_map(), find_player_options(), find_target_for_friendly_spell(), find_traps(), fire_arch_from_position(), fire_bolt(), fire_bow(), fire_swarm(), fix_generated_item(), fix_summon_pet(), flee_player(), forklightning(), free_all_objects(), gate_type_process(), generate_monster(), generate_monster_arch(), generate_monster_inv(), get_button_links(), get_button_value(), get_connection_rune(), get_jail_exit(), get_msg_book(), get_pointed_target(), get_rangevector(), get_rangevector_from_mapcoord(), get_who_escape_code_value(), hideability(), hiscore_check(), hit_map(), hit_with_arrow(), identify(), infect_object(), is_legal_2ways_exit(), key_change_class(), key_roll_stat(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_attempt(), leave(), list_players(), load_objects(), local_check_loaded_object(), lock_item_cmd(), look_at(), loot_object(), magic_mapping_mark(), magic_mapping_mark_recursive(), magic_wall(), make_sure_not_seen(), make_sure_seen(), map2_add_ob(), map_get_path(), metaserver_update(), monster_can_detect_enemy(), monster_can_see_enemy(), monster_check_wakeup(), monster_communicate(), monster_compute_path(), monster_do_talk_npc(), monster_find_nearest_living_creature(), monster_move(), monster_npc_call_help(), monster_npc_say(), monster_stand_in_light(), monster_use_bow(), monsterFight(), mood_change(), move_aura(), move_ball_spell(), move_bolt(), move_bullet(), move_cone(), move_creator(), move_detector(), move_duplicator(), move_firewall(), move_marker(), move_missile(), move_ob(), move_player(), move_player_attack(), move_player_mover(), move_swarm_spell(), move_symptom(), move_teleporter(), move_to(), object_check_move_on(), object_clear(), object_decrease_nrof(), object_find_multi_free_spot_around(), object_find_multi_free_spot_within_radius(), object_fix_multipart(), object_free2(), object_increase_nrof(), object_insert_in_map(), object_insert_in_map_at(), object_insert_in_ob(), object_merge_spell(), object_remove(), object_replace_insert_in_map(), object_update(), on_same_map(), operate_altar(), path_to_player(), peacemaker_type_process(), pets_follow_owner(), pets_get_enemy(), pets_move(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_arrow_target(), pick_lock(), pick_up(), pick_up_object(), place_alchemy_objects(), play_again(), play_sound_map(), play_sound_player_only(), player_arrest(), player_update_bg_music(), players_on_map(), polymorph_item(), polymorph_living(), potion_type_apply(), probe(), process_events(), process_players1(), push_ob(), put_a_monster(), put_object_in_sack(), put_treasure(), recharge(), remove_adjacent_doors(), remove_button_link(), remove_door(), remove_force(), remove_locked_door(), remove_trap(), remove_unpaid_objects(), retrofit_joined_wall(), roll_ob(), rune_attack(), runghosted(), runmessage(), runtrigger(), save_player(), save_throw_object(), shop_contains(), shop_describe(), shop_inventory_type_apply(), shop_mat_type_move_on(), shop_price_buy(), shop_price_sell(), singing(), skill_attack(), spell_failure(), spring_trap(), stand_near_hostile(), START_TEST(), steal(), stop_item(), stop_jump(), stop_projectile(), swap_map(), tear_down_wall(), teleport(), thrown_object_type_process(), transfer_ob(), transport_type_apply(), trap_disarm(), trap_see(), trap_show(), treasure_type_apply(), trigger_connected(), turn_one_transport(), update_all_los(), update_all_map_los(), use_alchemy(), use_oratory(), value_limit(), weapon_improver_type_apply(), write_mark(), and write_rune().

uint8_t obj::map_layer

What level to draw this on the map.

Definition at line 422 of file object.h.

Referenced by cast_detection(), get_ob_diff(), and object_can_merge().

obj::material

What materials this object consist of.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trapdoor, Trigger Marker, Wall, Wand & Staff, Weak Wall, Weapon This bitmask-value informs the player of which material(s) the object consists. Material does also affect how likely the object can be destroyed by hazardous spell-effects.
Special Key For Special Keys, material should always be unset or set to Adamantite. This prevents the key from getting burned or otherwise destroyed.

Definition at line 347 of file object.h.

Referenced by add_abilities(), alchemy_failure_effect(), cfapi_object_get_property(), cfapi_object_set_property(), did_make_save_item(), do_throw(), get_ob_diff(), kill_player(), place_fountain_with_specials(), set_materialname(), and spell_effect_type_move_on().

const char* obj::materialname
struct obj* obj::more
obj::move_allow

What movement types explicitly allowed.

Use

Type(s) Description
Transport The move type the transport grants, regardless of other objects on this square.

Definition at line 426 of file object.h.

Referenced by cast_detection(), cfapi_object_get_property(), cfapi_object_set_property(), get_ob_diff(), make_map_walls(), object_can_merge(), and object_update().

obj::move_block

What movement types this blocks.

Use

Type(s) Description
Altar, Altar Trigger, Battleground, Exit, Floor, Floor (Encounter), Hazard Floor, Holy Altar, Magic Wall, Wall If set, the object cannot be passed by players nor monsters.
Door If any movement type is blocked, a player must defeat the door to enter.
Gate For open gates, <blocking passage> should be unset. For closed gates it must be set to "all".
Inventory Checker If set, only players meeting the match criteria can pass through that space. If unset (default), the inventory checker acts like a trigger/button.
Timed Gate For open gates, <blocking movement> should be unset. For closed gates it must be set to "all".

Definition at line 425 of file object.h.

Referenced by alchemy_failure_effect(), cast_detection(), cfapi_object_get_property(), cfapi_object_set_property(), do_symptoms(), gate_type_process(), get_ob_diff(), grant_immunity(), infect_object(), is_blocking(), is_special_equipment(), magic_wall(), make_map_walls(), object_can_merge(), object_check_move_on(), object_update(), pick_lock(), place_exits(), polymorph(), retrofit_joined_wall(), and tear_down_wall().

MoveType obj::move_off

Move types affected moving off this space.

Definition at line 428 of file object.h.

Referenced by apply_container(), cfapi_object_get_property(), cfapi_object_set_property(), get_ob_diff(), object_can_merge(), object_update(), and put_object_in_sack().

obj::move_on

Move types affected moving on to this space.

Use

Type(s) Description
Director The movement types this director affects.
Exit If set, the player will auto-apply the exit with these movement types. This must be set for the invisible exits for example. If unset, the player has to step onto the exit and press 'a' to get transferred.
Mover Move creatures using these movement types..
Pit Make creatures using these movement types fall into the pit. Movement types other than walking is not the behavior expected from a pit, and it should only be used for map-mechanisms (e.g. for transporting flying monsters). An interesting side-effect: If this flag is enabled, spell effects like fire/snow also make their way through the pit.
Shop Mat If set, the player can enter/leave the shop by using these movement types.
Sign & Magic Mouth If set, the player gets the message when using these movement types on top of the object. "invisible 1" should be set in this case. This is the typical configuration for a "magic_mouth": The player walks through a dungeon and suddenly he gets a message. Use this to create some roleplay atmosphere, and to inform the player about possible dangers or secrets.
Spinner The movement types this spinner affects.

Definition at line 427 of file object.h.

Referenced by apply_by_living_below(), apply_sign(), cast_cone(), cfapi_object_get_property(), cfapi_object_set_property(), check_trigger(), do_throw(), examine(), explode_bullet(), fire_bow(), fix_stopped_arrow(), get_ob_diff(), move_hole(), object_can_merge(), object_check_move_on(), object_update(), trapdoor_type_move_on(), and update_button().

obj::move_slow

Movement types this slows down.

Use

Type(s) Description
Floor, Floor (Encounter), Hazard Floor The movement types that are affected by <slow penalty>.
Swamp The movement types that are affected by <slow penalty>.

Definition at line 429 of file object.h.

Referenced by do_exit_map(), get_ob_diff(), object_can_merge(), object_check_move_on(), object_update(), and save_throw_object().

obj::move_slow_penalty

How much this slows down the object.

Use

Type(s) Description
Floor, Floor (Encounter)

If <slow movement> is set to a value greater zero, all creatures moving over this spot will be slower than normal.

<slow movement> 1 - rough terrain <slow movement> 2

  • very rough terrain ... <slow movement> 7 - spider web (sticky as hell)
Hazard Floor If <slow movement> is set to a value greater zero, all creatures moving over this spot will be slower than normal.
  • <slow movement> 1 - rough terrain
  • <slow movement> 2 - very rough terrain
  • ...
  • <slow movement> 7 - spider web (sticky as hell)
Swamp

If <slow movement> is set to a value greater zero, all creatures moving over this spot will be slower than normal.

<slow movement> 1 - rough terrain <slow movement> 2 - very rough terrain ... <slow movement> 5 - default for deep swamp

Definition at line 430 of file object.h.

Referenced by cfapi_object_get_property(), deep_swamp_type_move_on(), deep_swamp_type_process(), get_ob_diff(), object_can_merge(), object_check_move_on(), and save_throw_object().

int32_t obj::move_status
obj::move_type

Type of movement this object uses.

Use

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield As soon as the player applies a piece of equipment, the player will start using the granted movement types.
Monster & NPC, Monster (Grimreaper) Determines which movement types this monster can use. Flying monsters won't get slowed down in rough terrain and they won't be affected by movers.
Mover Determines which movement types this mover affects. This should always include "walk".
Skill Determines which movement types this skill grants.
Transport The move type the transport uses.

Definition at line 424 of file object.h.

Referenced by add_abilities(), adj_attackroll(), animate_weapon(), apply_by_living(), apply_by_living_below(), attempt_jump(), blocked_link(), cast_change_ability(), cast_cone(), cast_detection(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), check_pick(), check_spell_knockback(), check_summoned(), check_trigger(), deep_swamp_type_move_on(), deep_swamp_type_process(), describe_item(), do_throw(), fire_bow(), fix_object(), fix_stopped_arrow(), fix_summon_pet(), get_ob_diff(), is_aimed_missile(), is_magical(), map_find_dir(), move_player_mover(), ob_blocked(), object_can_merge(), object_check_move_on(), object_insert_in_map(), object_remove(), pick_up_object(), roll_ob(), trapdoor_type_move_on(), update_button(), and update_transport_block().

obj::msg

If this is a book/sign/magic mouth/etc.

Use

Type(s) Description
Altar, Altar Trigger This text will be displayed to the player in the exact moment when the altar is activated.
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This text describes the item's "story". Every decent artifact should have such a description.
Book This is the text that appears "written" in the book.
Button, Button Trigger This text may describe the item. You can use this message to explain the button's purpose to the player.
Clock This text may describe the item
Container This text may contain a description of the container.
Converter This text may contain a description of the converter.
Disease This text is displayed to the player every time the symptoms strike.
Exit If set, this message will be displayed to the player when he applies the exit. This is quite useful to throw in some "role-play feeling": "As you enter the dark cave you hear the sound of rustling dragon scales...". Well, my English is poor, but you get the point. =)
Flesh This text may describe the item.
Floor, Floor (Encounter), Jewel This text may describe the object.
Handle, Handle Trigger This text may describe the item. You can use this message to explain the handle's purpose to the player.
Horn This text may contain a description of the horn.
Item Transformer This text may contain a description of the item transformer.
Locked Door When a player is trying to open the door without carrying the appropriate key, this text is displayed to the player. This is a good opportunity to place hints about the special key needed to unlock the door.
Magic Ear

This text field contains the keyword-matching-syntax. The text should have the following format: "@match &lt;keyword1&gt;|&lt;keyword2&gt;|...". Any number of keywords from one to infinite is allowed. Make sure they are separated by a '|'.

Examples: "@match yes", "@match gold|treasure". The connected value will be triggered when the player speaks any of the given keywords within a two-square radius. IMPORTANT: Upper/lower case does not make a difference!

Marker, Trigger Marker In the moment when the player gets marked, this text is displayed to him. You should really set a message in any marker you create, because it's the only way for the player to notice what's going on.
Monster & NPC, Monster (Grimreaper)

This text field contains the keyword-matching-syntax. The text should have the following format: "@match &lt;keyword1&gt;|&lt;keyword2&gt;|... ". Any number of keywords from one to infinite is allowed. Make sure they are separated by a '|'.

Examples: "@match yes", "@match gold|treasure". The monster or NPC will respond when the player speaks any of the given keywords within a two-square radius. IMPORTANT: Upper/lower case does not make a difference!

Projectile This text may describe the projectile. This could be nice for very special ones.
Rod This text may contain a description of the rod.
Rune When the rune detonates, this text is displayed to the victim. For especially powerful runes, create an appropriate thrilling description. ;)
Shooting Weapon, Weapon This text describes the weapons' "story". Every decent artifact weapon should have such a description.
Sign & Magic Mouth This text will be displayed to the player.
Special Key This will add a description to the object. The player can read this text by clicking on the item in his inventory. Use this message to describe what the key/passport is good for. A player might have 50 different keys on his key-ring. Don't expect players to recall their purpose just by their names.
Spellbook This text may contain a nice description of the spellbook's cover or something.
Trap When the trap detonates, this text is displayed to the victim. For especially powerful or complex traps, create an appropriate and thrilling description. ;)
Wand & Staff This text may contain a description of the wand.

Definition at line 322 of file object.h.

Referenced by add_abilities(), add_author(), add_book_to_list(), adjust_sign_msg(), append_spell(), apply_sign(), artifact_describe(), artifact_msg(), book_type_apply(), cctk_set_object_strings(), cfapi_object_get_property(), change_book(), create_npc_info(), describe_god(), do_symptoms(), dragon_ability_gain(), dump_gods(), enter_exit(), enter_random_map(), enter_random_template_map(), esrv_add_spells(), examine(), exit_type_apply(), exit_type_move_on(), find_or_create_connection_for_map(), find_title(), fix_generated_item(), follower_has_similar_item(), free_arch(), free_artifact(), get_ob_diff(), god_intervention(), identify_altar_type_move_on(), identify_object_with_skill(), key_change_class(), key_roll_stat(), move_marker(), move_symptom(), object_can_merge(), object_clear(), object_copy(), object_free2(), object_new(), object_reset(), object_set_msg(), operate_altar(), parse_dialog_information(), pets_move_golem(), player_attack_door(), process_map(), send_arch_info(), send_map_info(), shop_mat_type_move_on(), spellbook_type_apply(), spring_trap(), START_TEST(), trigger_connected(), and write_note().

obj::name

The name of the object, obviously...

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Rune, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trap, Trapdoor, Treasure, Wall, Wand & Staff, Weak Wall, Weapon This is the name of the object, displayed to the player.
Event If set, this field contains options passed to the script.
Marker, Trigger Marker

When the player steps onto the marker, all existing forces in the players inventory with a <key string> matching <delete mark> will be removed. If you don't want to remove any marks, leave this text field empty.

Note that the string <delete mark> is set as the name of this marker. So don't be confused, and remember changing the name will take effect on the marker's functionality.

Definition at line 311 of file object.h.

Referenced by account_char_add(), account_play_cmd(), add_book_to_list(), add_friendly_object(), add_god_to_list(), add_monster(), add_object_to_socklist(), add_one_item(), addArchetypes(), adjust_sign_msg(), alchemy_failure_effect(), alchemyTable(), altar_type_move_on(), animate_one(), animate_weapon(), append_spell(), apply_check_owner(), apply_check_personalized_blessings(), apply_cmd(), apply_container(), apply_race_and_class(), apply_savebed(), apply_update_ranged_skill(), artifact_describe(), CREUtils::artifactNode(), attack_hth(), attack_message(), attack_ob_simple(), attempt_do_alchemy(), attempt_recipe(), basic_emote(), become_follower(), book_type_apply(), calc_skill_exp(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_consecrate(), cast_create_missile(), cast_create_town_portal(), cast_curse(), cast_detection(), cast_dust(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_wonder(), cctk_set_object_strings(), cfapi_object_delete(), cfapi_object_get_property(), cfapi_object_insert(), cfapi_object_remove(), cfapi_object_set_property(), cfapi_player_knowledge(), cfapi_player_quest(), change_book(), change_object(), change_spell(), change_treasure(), check_hp(), check_login(), check_spell_expiry(), check_spells(), check_summoned(), check_trigger(), checkdm(), CREMapInformationManager::checkEvent(), choose_cult_monster(), command_abil(), command_addexp(), command_arrest(), command_banish(), command_cast_spell(), command_cointoss(), command_create(), command_follow(), command_forget_spell(), command_freeze(), command_goto(), command_kick2(), command_kill_pets(), command_knowledge(), command_learn_spell_or_prayer(), command_loadplugin(), command_me(), command_nowiz(), command_party(), command_patch(), command_quest(), command_reply(), command_reset(), command_setgod(), command_showpets(), command_shutdown(), command_stack_list(), command_stats(), command_summon(), command_take(), command_teleport(), command_tell_all(), command_toggle_shout(), command_unarmed_skill(), command_unloadplugin(), command_use(), common_ob_move_on(), common_pre_ob_move_on(), CREArtifactPanel::computeMadeViaAlchemy(), confuse_living(), convert_item(), cost_approx_str(), cost_string_from_value(), create_aura(), create_npc_info(), create_player_cmd(), create_singularity(), CREFormulaePanel::CREFormulaePanel(), Crossfire_Object_Say(), dead_player(), deathstrike_living(), deep_swamp_type_move_on(), deep_swamp_type_process(), describe_god(), describe_monster(), determine_holy_arch(), do_execute_event(), do_harvest(), do_learn_spell(), do_mood_floor(), do_server(), do_skill_attack(), do_symptoms(), do_tell(), do_throw(), do_turn(), do_wizard_dm(), do_wizard_hide(), dragon_ability_gain(), dragon_eat_flesh(), dump_abilities(), dump_artifacts(), dump_friendly_objects(), dump_gods(), dump_monster_treasure(), dump_monster_treasure_rec(), dump_spells(), eat_special_food(), emergency_save(), enter_exit(), enter_fixed_template_map(), enter_player_savebed(), enter_unique_map(), esrv_add_spells(), esrv_move_object(), esrv_new_player(), esrv_update_item(), eventListener(), examine(), examine_cmd(), expand_lighted_sight(), find_archetype_by_object_name(), find_archetype_by_object_type_name(), find_artifact(), find_ingred_cost(), find_player_options(), find_symptom(), find_treasure_by_name(), fire_arch_from_position(), fire_bow(), fire_misc_object(), fix_container_multipart(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_summon_pet(), fix_weight(), follower_has_similar_item(), follower_remove_given_items(), food_type_apply(), CREUtils::formulaeNode(), free_all_objects(), free_arch(), free_artifact(), gate_type_process(), generate_artifact(), generate_monster(), generate_monster_arch(), generate_monster_inv(), get_living_id(), get_ob_diff(), get_or_create_quest(), get_other_player_from_name(), get_player(), get_quest(), get_spell_by_name(), get_who_escape_code_value(), give_artifact_abilities(), god_enchants_weapon(), god_examines_item(), god_examines_priest(), god_gives_present(), god_info_msg(), god_intervention(), grant_immunity(), gravestone_text(), hiscore_check(), hit_map(), hit_player(), identify(), infect_object(), init_archetable(), init_artifacts(), inscribe_scroll_cmd(), is_legal_2ways_exit(), is_special_equipment(), is_susceptible_to_disease(), key_change_class(), key_confirm_quit(), keyplace(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_summary(), knowledge_first_player_save(), knowledge_get_or_create(), knowledge_give(), knowledge_item_can_be_used_alchemy(), knowledge_monster_detail(), knowledge_monster_summary(), knowledge_process_incremental(), lamp_type_apply(), learn_skill(), leave(), legal_artifact_combination(), level_for_item(), lighter_type_apply(), list_players(), load_objects(), local_check_loaded_object(), locate_recipe_artifact(), lock_item_cmd(), look_at_cmd(), magic_wall(), main(), make_formula_book(), make_object_glow(), make_perma_dead(), mark_item_cmd(), matches_sacrifice(), mon_desc(), monster_can_detect_enemy(), monster_cast_spell(), monster_communicate(), monster_find_throw_ob(), monster_move(), monster_use_range(), monster_use_skill(), monsterFight(), monsterTable(), move_cmd(), move_cone(), move_creator(), move_detector(), move_firewall(), move_symptom(), new_text_name(), npcSay(), numb_ob_inside(), object_can_merge(), object_clear(), object_copy(), object_dump(), object_find_by_name(), object_find_by_name_global(), object_find_by_type_and_name(), object_fix_multipart(), object_free2(), object_free_all_data(), object_give_identified_properties(), object_insert_in_ob(), object_matches_string(), object_new(), object_present_in_ob_by_name(), object_reset(), object_set_enemy(), object_split(), object_update_speed(), old_describe_monster(), CREMainWindow::onReportAlchemy(), CREMainWindow::onReportDuplicate(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), CREMainWindow::onReportSpells(), parse_dialog_information(), party_form(), party_join(), party_leave(), pay_from_container(), peacemaker_type_process(), perceive_self(), pets_follow_owner(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_up(), place_fountain_with_specials(), play_sound_player_only(), player_lvl_adj(), poison_living(), poison_type_apply(), polymorph_item(), potion_type_apply(), pray_at_altar(), price_approx(), process_events(), process_object(), push_ob(), query_base_name(), query_short_name(), quest_set_state(), quest_start(), rangetostring(), real_money_value(), receive_play_again(), receive_player_name(), receive_player_password(), remove_friendly_object(), remove_special_prayers(), reply_cmd(), runapplyobject(), save_player(), save_throw_object(), scroll_type_apply(), send_arch_info(), send_map_info(), set_title(), CREWrapperFormulae::setFormulae(), CREArtifactPanel::setItem(), CREFormulaePanel::setItem(), CREWrapperObject::setObject(), should_director_abort(), sort_archetypes(), spellbook_type_apply(), spellpath_msg(), spellsTable(), START_TEST(), tailor_god_spell(), tear_down_wall(), teleport(), transmute_materialname(), transport_type_apply(), trap_disarm(), trap_see(), trigger_connected(), unique_book(), update_button(), update_buttons(), value_limit(), verify_button_links(), write_mark(), write_rune(), write_scroll(), and wrong_password().

obj::name_pl

The plural name of the object.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trapdoor, Trigger Marker, Wand & Staff, Weak Wall, Weapon This is the plural name of the object. A plural name must be set for all items that can be picked up and collected by the player.

Definition at line 315 of file object.h.

Referenced by add_one_item(), adjust_sign_msg(), alchemy_failure_effect(), apply_race_and_class(), artifact_describe(), cast_bless(), cast_change_ability(), cast_create_town_portal(), cast_curse(), cctk_set_object_strings(), cfapi_object_get_property(), cfapi_object_set_property(), change_treasure(), cost_approx_str(), create_aura(), create_player_cmd(), create_singularity(), do_symptoms(), fix_flesh_item(), fix_generated_item(), free_arch(), free_artifact(), get_ob_diff(), identify(), key_change_class(), kill_player_not_permadeath(), kill_player_permadeath(), local_check_loaded_object(), move_symptom(), object_clear(), object_copy(), object_free2(), object_give_identified_properties(), object_matches_string(), object_new(), object_reset(), place_fountain_with_specials(), query_base_name(), query_short_name(), real_money_value(), receive_play_again(), receive_player_name(), START_TEST(), tailor_god_spell(), and wrong_password().

struct obj* obj::next
obj::nrof

How many of the objects.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Rune, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trap, Trapdoor, Trigger Marker, Wand & Staff, Weak Wall, Weapon This value determines the number of objects in one stack (for example: 100 gold coins => "number = 100"). You should set this at least to one, for any pickable object - otherwise it won't be mergeable into a stack.

Definition at line 333 of file object.h.

Referenced by add_abilities(), add_object_to_socklist(), add_one_item(), add_shop_item(), add_value(), adjust_product(), animate_weapon(), apply_container(), apply_special(), cast_create_food(), cast_create_missile(), cfapi_object_get_property(), cfapi_object_set_property(), check_altar_sacrifice(), command_create(), command_rename_item(), command_use(), convert_item(), count_unpaid(), create_all_treasures(), create_one_treasure(), drop_object(), eat_item(), esrv_update_item(), examine(), find_transmution_ob(), fire_bow(), fix_generated_item(), get_ob_diff(), improve_armour(), knowledge_alchemy_attempt(), lamp_type_apply(), lighter_type_apply(), make_item_from_recipe(), move_duplicator(), object_can_merge(), object_decrease_nrof(), object_increase_nrof(), object_insert_in_map(), object_insert_in_ob(), object_merge(), object_remove(), object_split(), CREUtils::objectNode(), pay_from_container(), pick_up(), pick_up_object(), polymorph_item(), polymorph_melt(), price_base(), put_object_in_sack(), query_base_name(), query_short_name(), query_weight(), real_money_value(), remove_force(), remove_value(), save_throw_object(), sell_item(), shop_price_sell(), START_TEST(), transmute_item_to_flower(), trapdoor_type_move_on(), write_note(), and write_scroll().

obj::other_arch

Pointer used for various things - mostly used for what this objects turns into or what this object creates.

Use

Type(s) Description
Container This is used for a certain kind of... "animation" when opening the container. Stick to the default arches here and you won't get into trouble.
Converter <receive arch> is the name of the archetype to convert into. This field is ignored if the converter has items in inventory. In this case one of the inventory items is duplicated. The duplicated item is randomly chosen from all items present.
Creator This string defines the object that will be created. You can choose any of the existing arches. This field is ignored if the creator has items in inventory. In this case one of the inventory items is duplicated. The duplicated item is randomly chosen from all items present.
Disease

If set, the specified arch is created and dropped every time the symptoms strike.

This can be various things: farts, body pieces, eggs ... Even monsters can be created that way. You could also make a disease where some exotic stuff like money/gems is created.

Door This string defines the object that will be created when the door was defeated.
Duplicator Only objects of matching archetype, lying on top of the duplicator will be duplicated, multiplied or removed. All other objects will be ignored.
Holy Altar

The altar belongs to the god of the given name. Possible options for <god name> are: Devourers, Lythander, Mostrai, Gaea, Ruggilli, Gnarg, Gorokh, Valriel and Sorig.

If you want to have an unconsecrated altar, set <god name> 0 and eventually <reconsecrate level> 0.

Monster & NPC, Monster (Grimreaper) This only takes effect if <multiply> is enabled. The monster will create a <breed monster> every once in a while. <breed monster> can be set to any valid arch-name of a monster.
Rune This string defines the spell in the rune, if any. <spell arch> is optional, but if present, overrides the <spell> setting. You can choose any of the existing arches.
Spell For spells creating or launching things, the archetype to use.

Definition at line 413 of file object.h.

Referenced by add_abilities(), animate_weapon(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_cone(), cast_create_town_portal(), cast_curse(), cast_destruction(), cast_detection(), cast_heal(), cast_light(), cast_polymorph(), cast_smite_spell(), cfapi_object_get_property(), change_object(), check_bullet(), check_generators(), check_summoned(), command_create(), cone_drop(), convert_item(), create_aura(), create_bomb(), determine_holy_arch(), do_symptoms(), do_turn(), dump_abilities(), dump_gods(), dump_spells(), explode_bullet(), fire_arch_from_position(), fire_bolt(), fire_swarm(), fix_flesh_item(), generate_monster_arch(), get_ob_diff(), magic_wall(), mood_change(), move_aura(), move_ball_spell(), move_bullet(), move_cone(), move_creator(), move_duplicator(), move_symptom(), object_insert_in_map(), pets_summon_golem(), pets_summon_object(), potion_type_apply(), pray_at_altar(), remove_door(), remove_locked_door(), save_throw_object(), second_arch_pass(), set_object_face_other(), CREArchetypePanel::setItem(), spell_client_use(), spell_effect(), spring_trap(), START_TEST(), trap_adjust(), write_mark(), and write_rune().

struct obj* obj::owner

Pointer to the object which controls this one.

Owner should not be referred to directly - object_get_owner() should be used instead.

Definition at line 377 of file object.h.

Referenced by object_clear_owner(), object_get_owner(), object_get_owner_const(), object_merge_spell(), object_set_owner(), and START_TEST().

tag_t obj::ownercount

What count the owner had (in case owner has been freed)

Definition at line 380 of file object.h.

Referenced by object_clear_owner(), object_get_owner(), object_get_owner_const(), object_merge_spell(), and object_set_owner().

int16_t obj::ox

Definition at line 327 of file object.h.

Referenced by object_insert_in_map(), object_insert_in_ob(), and object_remove().

int16_t obj::oy

For debugging: Where it was last inserted.

Definition at line 327 of file object.h.

Referenced by object_insert_in_map(), object_insert_in_ob(), and object_remove().

obj::path_attuned

Paths the object is attuned to.

Use

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield Click on the <attuned paths> button to select spellpaths. The player will get attuned to the specified spellpaths while wearing this item.
Monster & NPC, Monster (Grimreaper) Click on the <attuned paths> button to select spellpaths. The creature will get attuned to the specified spellpaths.
Spell Spellpath for this spell. A player needs to not be denied this path to cast the spell.
Weapon Click on the <attuned paths> button to select spellpaths. The player will get attuned to the specified spellpaths while wearing this weapon.

Definition at line 343 of file object.h.

Referenced by add_abilities(), append_spell(), become_follower(), calc_item_power(), cast_bless(), cast_spell(), caster_level(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), describe_god(), describe_item(), describe_monster(), dragon_ability_gain(), dump_gods(), dump_spells(), esrv_update_stats(), find_or_create_connection_for_map(), fix_object(), get_ob_diff(), min_casting_level(), old_describe_monster(), ring_desc(), spellpath_msg(), write_rune(), and write_scroll().

obj::path_denied

Paths the object is denied access to.

Use

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield Click on the <denied paths> button to select spellpaths. The specified spellpaths will be denied to the player while wearing this item.
Monster & NPC, Monster (Grimreaper) Click on the <denied paths> button to select spellpaths. The creature won't be able to cast spells of the specified paths.
Weapon Click on the <denied paths> button to select spellpaths. The specified spellpaths will be denied to the player while wearing this weapon.

Definition at line 345 of file object.h.

Referenced by add_abilities(), become_follower(), calc_item_power(), cast_curse(), cast_spell(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), describe_god(), describe_item(), describe_monster(), dump_gods(), esrv_update_stats(), fix_object(), get_ob_diff(), make_object_glow(), min_casting_level(), old_describe_monster(), ring_desc(), show_matching_spells(), write_rune(), and write_scroll().

obj::path_repelled

Paths the object is repelled from.

Use

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield Click on the <repelled paths> button to select spellpaths. The player will get repelled to the specified spellpaths while wearing this item.
Monster & NPC, Monster (Grimreaper) Click on the <repelled paths> button to select spellpaths. The creature will get repelled to the specified spellpaths.
Weapon Click on the <repelled paths> button to select spellpaths. The player will get repelled to the specified spellpaths while wearing this weapon.

Definition at line 344 of file object.h.

Referenced by add_abilities(), become_follower(), calc_item_power(), cast_curse(), cast_spell(), caster_level(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), describe_god(), describe_item(), describe_monster(), dump_gods(), esrv_update_stats(), fix_object(), get_ob_diff(), min_casting_level(), old_describe_monster(), ring_desc(), and write_scroll().

obj::perm_exp

Permanent exp.

Use

Type(s) Description
Skill <Permanent experience> is the experience the player gained permanently. Even if a player dies multiple times or gets drained, his <experience> will not fall below <permanent experience>.

Definition at line 369 of file object.h.

Referenced by add_player_exp(), calc_perm_exp(), cfapi_object_get_property(), cfapi_object_set_property(), check_exp_loss(), and get_ob_diff().

obj::pick_up

See crossfire.doc.

Use

Type(s) Description
Monster & NPC, Monster (Grimreaper)

Click on the <pick up> button and select which types of objects the creature should try to pick up.

Note also that if <can use armor>, <can use weapon>, <can use ring>... etc are set, then the creature will pick up the matching items even if this is not set here.

Definition at line 361 of file object.h.

Referenced by cfapi_object_get_property(), cfapi_object_set_property(), get_ob_diff(), monster_can_pick(), and monster_move().

struct obj* obj::prev

Pointer to the previous object in the free/used list.

Definition at line 278 of file object.h.

Referenced by expand_objects(), init_objects(), object_free2(), object_new(), and START_TEST().

obj::race

Human, goblin, dragon, etc.

Use

Type(s) Description
Container

If set, the container will hold only certain types of objects. Possible choices for <container class> are: "gold and jewels", "arrows" and "keys".

Unfortunately it is not easy to create new container classes, because items need a matching counter piece attribute to the <container class> before they can be put inside a container. This attribute ("race") is set only for the existing container classes.

Disease The disease will only infect creatures of the specified <race>. "&lt;race&gt; *" means every creature can be infected.
Inventory Checker This string specifies the object we are looking for: We have a match if the player does/don't carry an object of archetype <match arch name>.
Monster & NPC, Monster (Grimreaper) Every monster should have a race set to categorize it. The monster's <race> can have different effects: Slaying weapons inflict triple damage against enemy races and holy word kills only enemy races of the god.
Projectile

Only shooting weapons with matching <ammunition class> can fire these projectiles. For arrows set "arrows", for crossbow bolts set "crossbow bolts" (big surprise).

In certain cases, the ammunition class is displayed in the game. Hence, when you create a new ammunition class, choose an intuitive name like "missiles", "spirit bolts" - whatever.

You can also make special containers holding these projectiles by setting the <container class> to match your <ammunition class>.

Rune If this is set to the arch name of any monster, together with <spell name> "summon evil monster", the rune will summon a bunch of those on detonation. (dam and attack type will still be ignored in this case). Runes are even capable of summoning multi-square monsters, given enough space. You'd better test it though.
Shooting Weapon

Only projectiles with matching <ammunition class> can be fired with this weapon. For normal bows set "arrows", for normal crossbows set "crossbow bolts".

In certain cases, the ammunition class is displayed in the game. Hence, when you create a new ammunition class, choose an intuitive name like "missiles", "spirit bolts" - whatever.

Weak Wall For weak walls, <race> should always be set to "wall", unless you create something fancy like a building which is in fact meant to be a huge animal. Note that shovels slay walls, so they do triple damage against weak walls.

Definition at line 318 of file object.h.

Referenced by add_abilities(), animate_weapon(), apply_check_race_restrictions(), apply_special(), become_follower(), cast_bless(), cast_change_ability(), cast_create_missile(), cast_create_town_portal(), cast_curse(), cast_detection(), cast_invisible(), cast_smite_spell(), cctk_set_object_strings(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), change_spell(), check_inv_recursive(), check_trigger(), choose_cult_monster(), deathstrike_living(), describe_god(), determine_god(), dump_gods(), examine(), find_better_arrow(), find_key(), fire_bow(), free_arch(), get_god_for_race(), get_ob_diff(), get_player(), hit_player(), hit_with_one_attacktype(), init_dynamic(), init_races(), is_dragon_pl(), is_legal_2ways_exit(), is_susceptible_to_disease(), magic_wall(), main(), makes_invisible_to(), monster_check_apply(), monster_move(), mood_change(), object_clear(), object_copy(), object_find_by_type_and_race(), object_free2(), object_new(), object_reset(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_up(), play_sound_player_only(), player_fire_bow(), rangetostring(), resurrect_player(), sack_can_hold(), CREWrapperObject::setObject(), shop_approval(), should_director_abort(), START_TEST(), tailor_god_spell(), update_button(), and write_mark().

obj::randomitems

Items to be generated.

Use

Type(s) Description
Class Changer This entry determines which initial items the character receives.
Door This entry determines what kind of traps will appear in the door.
Monster & NPC, Monster (Grimreaper)

When the monster is killed, items from the treasurelist will drop to the ground. This is a common way to reward players for killing (masses of) monsters.

Note that you can always put items into the monster's inventory. Those will drop-at-kill just like the stuff from the <treasurelist>.

Shop Floor This entry determines what kind of treasure will appear, when <generate goods> is enabled. Look into /crossfire/share/crossfire/treasures for details about existing treasurelists.
Spellbook There are two ways to put spells into a spellbook: 1. Put a spell object in the books inventory. In this case, treasurelist must be set to <none>. 2. Choose a treasurelist which contains spells. In that way, a spell will be chosen randomly from the list.
Treasure This entry determines what kind of treasure will appear. Look into /crossfire/share/crossfire/treasures for details about existing treasurelists.
Wand & Staff This entry determines which spell the wand contains. The treasurelist must evaluate to exactly one spell object. Setting both <treasurelist> and <spell> is not allowed; this creates broken wands.

Definition at line 385 of file object.h.

Referenced by apply_auto(), apply_auto_fix(), apply_changes_to_player(), apply_race_and_class(), become_follower(), cast_raise_dead_spell(), cast_wonder(), command_create(), describe_monster(), determine_holy_arch(), dump_monster_treasure(), find_ingred_cost(), fix_generated_item(), generate_monster_arch(), generate_monster_inv(), get_ob_diff(), give_initial_items(), god_intervention(), identify(), key_change_class(), local_check_loaded_object(), old_describe_monster(), pets_summon_object(), place_chest(), polymorph_living(), put_a_monster(), remove_special_prayers(), rune_attack(), second_arch_pass(), CRETreasurePanel::setItem(), spell_client_use(), and START_TEST().

int8_t obj::range
uint8_t obj::range_modifier

How going up in level affects range.

Definition at line 406 of file object.h.

Referenced by fix_generated_item(), get_ob_diff(), level_for_item(), reportSummon(), and SP_level_range_adjust().

obj::resist

Resistance adjustments for attacks.

acid resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds acid resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to acid will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds acid resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

blind resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds blinding resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds blinding resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

chaos resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds chaos resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact. Note that chaos is not a stand-alone attack type. Chaos "contains" a combination of other attack types.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds chaos resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact. Note that chaos is not a stand-alone attack type. Chaos "contains" a combination of other attack types.

cold resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds fire resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to cold will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds fire resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

confusion resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds confusion resistance to the item. The number is a percent-value in the range 0-100. Confusion resistance is not very effective unless the value comes close to 100 (= perfect immunity).
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to confusion will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds confusion resistance to the weapon. The number is a percent-value in the range 0-100. Confusion resistance is not very effective unless the value comes close to 100 (= perfect immunity).

death resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds death-attack resistance to the item. The number is a percent-value in the range 0-100. Death-attack resistance is little effective unless the value is 100 (= perfect immunity). Generally, resistance to death-attack is not supposed to be available to players!
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds death-attack resistance to the weapon. The number is a percent-value in the range 0-100. Death-attack resistance is little effective unless the value is 100 (= perfect immunity). Generally, resistance to death-attack is not supposed to be available to players!

deplete resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds depletion resistance to the item. The number is a percent-value in the range 0-100. Depletion resistance is little effective unless the value is 100 (= perfect immunity).
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to depletion will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds depletion resistance to the weapon. The number is a percent-value in the range 0-100. Depletion resistance is little effective unless the value is 100 (= perfect immunity).

drain resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds draining resistance to the item. The number is a percent-value in the range 0-100. Draining resistance is little effective unless the value is 100 (= perfect immunity).
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to draining will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds draining resistance to the weapon. The number is a percent-value in the range 0-100. Draining resistance is little effective unless the value is 100 (= perfect immunity).

electricity resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds electricity resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to electricity will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds electricity resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

fear resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds fear resistance to the item. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds fear resistance to the weapon. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.

fire resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds fire resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to fire will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds fire resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

ghosthit resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds ghosthit resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds ghosthit resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

godpower resistance

Type(s) Description
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall

(no description)

holyword resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds holy power resistance to the item. The number is a percent-value in the range 0-100. Holy power is the attack type that holyword-type spells use to hurt undead creatures. This kind of resistance is only reasonable for undead players (wraith or devourer cult). Generally, resistance to holy word should not be available for players.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds holy power resistance to the weapon. The number is a percent-value in the range 0-100. Holy power is the attack type that holyword-type spells use to hurt undead creatures. This kind of resistance is only reasonable for undead players (wraith or devourer cult). Generally, resistance to holy word should not be available for players.

magic resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds magic resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to magic will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds magic resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

paralyze resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds paralyze resistance to the item. The number is a percent-value in the range 0-100. Paralyze resistance is little effective unless the value is 100 (= perfect immunity).
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to paralyze will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds paralyze resistance to the weapon. The number is a percent-value in the range 0-100. Paralyze resistance is little effective unless the value is 100 (= perfect immunity).

physical resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds physical resistance to the item (= armor value). The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to physical will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds physical resistance to the weapon (= armor value). The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

poison resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds poison resistance to the item. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to poison will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon

This adds poison resistance to the weapon. The number is a percent-value in the range 0-100. Treat this with CARE. Look at other maps and what they require to do for getting this-and-that artifact.

slow resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds fear resistance to the item. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds fear resistance to the weapon. The number is a percent-value in the range 0-100. Resistance to fear is pretty useless.

turn_undead resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds turn undead resistance to the weapon. The number is a percent-value in the range 0-100. This is mostly useful for undead monsters or players.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Weapon

This adds turn undead resistance to the weapon. The number is a percent-value in the range 0-100. This is mostly useful for undead monsters.

weaponmagic resistance

Type(s) Description
Amulet, Boots, Bracers, Breastplate Armor, Cloak, Girdle, Gloves, Helmet, Ring, Shield This adds weaponmagic resistance to the item. The number is a percent-value in the range 0-100. Weaponmagic resistance generally should not exist on equipment at all. Spells/Monsters doing weaponmagic damage (e.g. comet spell) are not meant to be easily resisted.
Flesh Resistances on flesh items make them more durable against spellcraft of the appropriate kind. It also allows dragon players to eventually gain resistance by eating it. Usually resistance should only be set for flesh items in a monster's inventory.
Inorganic, Magic Wall, Monster & NPC, Monster (Grimreaper), Weak Wall (no description)
Potion The player's resistance to weaponmagic will rise by this value in percent (range -100 till +100). The effect is only temporary, and it does NOT add on the values from the player's equipment. Cursed potions will make negative resistance.. very nasty in combat!
Weapon This adds weaponmagic resistance to the weapon. The number is a percent-value in the range 0-100. Weaponmagic resistance generally should not exist on equipment at all. Spells/Monsters doing weaponmagic damage (e.g. comet spell) are not meant to be easily resisted.

Definition at line 341 of file object.h.

Referenced by add_abilities(), animate_weapon(), become_follower(), blind_living(), calc_item_power(), cast_bless(), cast_change_ability(), cast_destruction(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), command_resistances(), confuse_living(), create_aura(), describe_god(), describe_resistance(), did_make_save_item(), dragon_eat_flesh(), dragon_level_gain(), eat_special_food(), esrv_update_stats(), find_better_arrow(), fix_flesh_item(), fix_object(), get_ob_diff(), hit_player(), hit_with_one_attacktype(), is_magical(), kill_player_not_permadeath(), main(), monster_check_good_armour(), monster_get_armour_quality(), mood_change(), new_exp(), object_can_merge(), old_describe_monster(), paralyze_living(), perceive_self(), pets_summon_golem(), polymorph_living(), potion_type_apply(), print_monsters(), save_throw_object(), set_dragon_name(), set_ring_bonus(), setup(), special_potion(), START_TEST(), thrown_item_effect(), and transmute_materialname().

uint8_t obj::run_away

Monster runs away if it's hp goes below this percentage.

Definition at line 384 of file object.h.

Referenced by cfapi_object_get_property(), cfapi_object_set_property(), command_wimpy(), get_ob_diff(), get_player(), hit_player(), monster_disthit_att(), and monster_do_living().

obj::skill

Name of the skill this object uses/grants.

Use

Type(s) Description
Skill The <skill name> is used for matching. When a usable object has an identical <skill name>, players (or monsters) will need this skill to apply/use the object.
Skill Scroll The <skill name> matches the skill object that can be learned from this scroll.
Spell The <skill name> matches the skill which is needed to cast this spell. This should be one out of "sorcery", "pyromancy", "evocation", "summoning" or "praying". If you want to fiddle with these, please take care not to upset the concept and balance of the various skills.
Weapon Matching <skill name> of the skill that is required to use this weapon.

Definition at line 321 of file object.h.

Referenced by add_player_exp(), adjust_skill_tool(), animate_bomb(), append_spell(), apply_special(), apply_update_ranged_skill(), book_type_apply(), cast_destruction(), cast_dust(), cast_heal(), cast_spell(), caster_level(), cctk_set_object_strings(), cfapi_object_get_property(), cfapi_object_set_property(), change_skill(), check_spells(), command_cast_spell(), cone_drop(), do_harvest(), do_hidden_move(), do_skill(), do_skill_attack(), do_symptoms(), do_throw(), dragon_ability_gain(), dump_spells(), examine(), explode_bullet(), fire_bow(), fix_stopped_arrow(), get_archetype_by_skill_name(), get_ob_diff(), god_examines_priest(), hit_with_arrow(), hit_with_one_attacktype(), infect_object(), init_skills(), kill_object(), learn_skill(), link_player_skills(), local_check_loaded_object(), mood_change(), object_can_merge(), object_clear(), object_copy(), object_find_by_type_and_skill(), object_free2(), object_new(), object_reset(), CREMainWindow::onReportSpellDamage(), peacemaker_type_process(), poison_living(), pray_at_altar(), scroll_type_apply(), set_spell_skill(), skillscroll_type_apply(), spellbook_type_apply(), spellsTable(), START_TEST(), unapply_special(), use_oratory(), use_skill(), write_on_item(), and write_rune().

obj::slaying

Which race to do double damage to.

If this is an exit, this is the filename

Use

Type(s) Description
Altar, Altar Trigger This string specifies the item that must be put on the altar to activate it. It can either be the name of an archetype, or directly the name of an object. Yet, titles are not recognized by altars. Remember to put a note somewhere, telling the player what he is expected to drop on the altar. (Often this is put in the altar's name: E.g. "drop 100 platinum coins")
Container If <key string> is set, only players with a special key of matching <key string> are able to open the container.
Converter <cost arch> is the name of the archetype the player has to put on the converter, as payment.
Creator The created object will bear the name specified in <name of creation>, and not use any title. If nothing is set, the standard name and title of the archetype are used.
Detector <match name> specifies the name of the object we are looking for. Actually it does also check for the <key string> in key-objects, but for this case inventory checkers are often more powerful to use.
Event Specifies the script file name that should be executed. Relative file names are relative to the path name of the map file this even is in. Absolute file names are looked up in the maps base directory.
Exit The exit path defines the map that the player is transferred to. You can enter an absolute path, beginning with '/' (for example "/peterm/FireTemple/fire1"). It can also be a relative path, not beginning with '/' (On the map "/peterm/FireTemple/Fire2" for example I could use the relative path "Fire1"). Use relative paths whenever possible! Note that upper/lower case must always be set correctly. However, please use lower case only. It is well possible to have an exit pointing to the same map that the exit is on. If slaying is not set in an exit, the player will see a message like "the exit is closed".
Inventory Checker This string specifies the object we are looking for: We have a match if the player does/don't carry a key object or a mark with identical <key string>. Note that key objects usually appear as "passports" in this context. A typical example is the city gate mechanism of Scorn.
Item Transformer Contains the verb that is used to construct a message to the player applying the item transformer.
Locked Door

The <key string> in the door must be identical with the <key string> in the special key, then the door is unlocked. It is VERY important to set the <key string> to something that is unique among the CF map set.

DON'T EVER USE the default string "set_individual_value".

Marker, Trigger Marker The <key string> can be detected by inventory checkers/detectors. If the player already has a force with that <key string>, there won't be inserted a second one.
Pedestal

the <match race> defines the object we're looking for. If <match race> matches the monster's or the player's race, we have a match. Yes, pedestals can detect a player's race! E.g. you could create a place where only fireborns can enter, by setting "slaying unnatural".

If it is set to "player", any player stepping on the pedestal is a match. Very useful if you want to open a gate for players but not for monsters.

Projectile Slaying means the weapon does triple (3x) damage to monsters of the specified race. If <slaying race> matches an arch name, only monsters of that archetype receive triple damage. Triple damage is very effective.
Rune Name of the spell in the rune, if any. <spell name> is optional, but if present, overrides the <spell> setting.
Special Key This string must be identical with the <key string> in the locked door, then it can be unlocked. It can also be used to trigger inventory checkers.
Teleporter

The exit path specifies the map that the player is transferred to. <exit path> can be an absolute path, beginning with '/' (for example "/peterm/FireTemple/fire1"). It can also be a relative path, not beginning with '/' (On the map "/peterm/FireTemple/Fire2" for example I could use the relative path "Fire1"). Use relative paths whenever possible! Note that upper/lower case must always be set correctly. However, please use lower case only.

If the <exit path> is set, ONLY players can get teleported. If the <exit path> is unset (empty), anything can get teleported: Players, monsters and items. In this case, the destined map is automatically the same map the teleporter is on.

Weapon

Slaying means the weapon does triple (3x) damage to monsters of the specified race. If <slaying race> matches an arch name (e.g. "big_dragon"), only monsters of that archetype are hit with triple damage.

No god blessings are possible for weapons with a race set in this entry (That's because god blessings add triple damage against their own enemy races). Triple damage is very effective.

Definition at line 319 of file object.h.

Referenced by add_abilities(), add_slaying(), apply_container(), apply_map_builder(), become_follower(), calc_item_power(), cast_bless(), cast_create_missile(), cast_create_town_portal(), cast_detection(), cast_raise_dead_spell(), cctk_set_object_strings(), cfapi_object_get_property(), cfapi_object_set_property(), change_treasure(), check_inv_recursive(), check_sacrifice(), check_trigger(), CREMapInformationManager::checkEvent(), deathstrike_living(), describe_god(), describe_item(), do_exit_map(), do_harvest(), dump_gods(), eventListener(), find_key(), find_or_create_connection_for_map(), fire_arch_from_position(), fire_bolt(), fire_bow(), fix_generated_item(), fix_object(), fix_stopped_arrow(), follower_has_similar_item(), free_arch(), get_npc(), get_ob_diff(), god_enchants_weapon(), god_intervention(), hit_player(), hit_with_one_attacktype(), improve_weapon(), keyplace(), kill_player_permadeath(), local_check_loaded_object(), lock_and_hide_doors(), matches_sacrifice(), mood_change(), move_creator(), move_detector(), move_marker(), object_can_merge(), object_clear(), object_copy(), object_find_by_type_and_slaying(), object_free2(), object_new(), object_reset(), operate_altar(), pets_summon_golem(), place_chest(), place_exits(), place_special_exit(), put_object_in_sack(), remove_locked_door(), sack_can_hold(), should_director_abort(), START_TEST(), tailor_god_spell(), and update_button().

obj::smoothlevel

how to smooth this square around

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Rune, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trap, Trapdoor, Treasure, Trigger Marker, Wall, Wand & Staff, Weak Wall, Weapon If <smooth level> is set to a value greater zero, the object will be drawn partially over adjacent squares having a lower <smooth level> value. The value must be between 0 and 255 (inclusive); 0 means "never overlap adjacent squares".

Definition at line 421 of file object.h.

Referenced by get_ob_diff(), and map2_add_ob().

uint8_t obj::sound_chance

Probability, 0 to 100, of the object emitting a sound.

Definition at line 393 of file object.h.

Referenced by play_sound_map(), and play_sound_player_only().

obj::speed

The overall speed of this object.

Use

Type(s) Description
Detector This value defines the time between two detector-checks. If you want the detector to behave almost like pedestals/buttons, set speed rather high, like <detection speed> 1.0.
Disease The <speed> of the disease determines how fast the disease will "move", thus how fast the symptoms strike the host.
Magic Wall The <casting speed> defines the spell-casting speed of the wall. You can fine-tune how long the duration between two casts shall be. If you want to create a wall that can be activated (cast per trigger) via connected lever/button/etc, you must set "speed 0".
Marker The <marking speed> defines how quickly it will mark something standing on the marker. Set this value rather high to make sure the player really gets his mark. I think <marking speed> 1.0 should do fine.
Monster & NPC, Monster (Grimreaper) The <speed> determines how fast a monster will both move and fight. High <speed> makes a monster considerably stronger.
Mover The movement speed value determines how fast a chain of these movers will push a player along (default is -0.2).
Swamp The higher the <drowning speed>, the faster will players and items sink into the swamp. Swamp with very high <drowning speed> can be a nasty and unexpected death-trap. Players should get a warning before such areas.
Teleporter

If the <activation speed> is nonzero, the teleporter will automatically be activated in regular time-intervals. Hence, the player can just step on it and gets teleported sooner or later. The duration between two activates depends on the given value. Default in the teleporter arch is <activation speed> 0.1.

VERY IMPORTANT: If you want to have your teleporter activated via button/handle/magic_ear/etc, you must set <activation speed> to zero!

Transport How fast the transport moves.

Definition at line 328 of file object.h.

Referenced by add_abilities(), add_object_to_socklist(), animate(), animate_weapon(), apply_savebed(), arrow_type_process(), attack_ob_simple(), blind_living(), cast_bless(), cast_change_ability(), cast_curse(), cast_detection(), cast_spell(), cast_word_of_recall(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), check_trigger(), command_freeze(), command_remove(), common_process_projectile(), common_projectile_move_on(), confuse_living(), create_aura(), describe_monster(), dimension_door(), do_harvest(), do_mood_floor(), do_symptoms(), do_throw(), drain_wand_charge(), dump_gods(), eat_special_food(), esrv_update_item(), esrv_update_stats(), CRECombatSimulator::fight(), find_or_create_connection_for_map(), fire_bow(), fix_object(), fix_player(), fix_stopped_arrow(), gate_type_process(), get_ob_diff(), get_player(), hit_with_arrow(), hit_with_one_attacktype(), kill_object(), kill_player_not_permadeath(), local_check_loaded_object(), make_object_glow(), map2_add_ob(), monster_do_living(), monster_move(), monsterFight(), monsterTable(), move_cone(), move_detector(), move_hole(), move_marker(), move_player_mover(), move_teleporter(), new_exp(), new_player_cmd(), object_can_merge(), object_check_move_on(), object_copy(), object_free2(), object_insert_in_map(), object_merge_spell(), object_update_speed(), old_describe_monster(), paralyze_living(), pets_remove_all(), pets_summon_golem(), place_fountain_with_specials(), player_mover_type_move_on(), polymorph(), potion_type_apply(), power_crystal_type_apply(), process_events(), process_players2(), recharge(), remove_door(), remove_locked_door(), reportSummon(), setup(), spell_effect_type_move_on(), START_TEST(), stop_item(), swap_random_stats(), timed_gate_type_process(), transmute_item_to_flower(), transport_type_apply(), trigger_connected(), and trigger_move().

float obj::speed_left
struct obj* obj::spell

Spell that was being cast.

Definition at line 408 of file object.h.

Referenced by cast_spell(), command_cast_spell(), fire_swarm(), move_swarm_spell(), rangetostring(), and START_TEST().

tag_t* obj::spell_tags

Tags used for spell effect merging.

Definition at line 436 of file object.h.

Referenced by object_copy(), object_free2(), object_merge_spell(), object_new(), and ok_to_put_more().

char* obj::spellarg

Optional argument when casting obj::spell.

Definition at line 409 of file object.h.

Referenced by cast_spell(), fire_bow(), fix_stopped_arrow(), and START_TEST().

struct obj* obj::spellitem

Spell ability monster is choosing to use.

Definition at line 394 of file object.h.

Referenced by cfapi_object_get_property(), cfapi_object_set_property(), monster_cast_spell(), and START_TEST().

uint8_t obj::state
living obj::stats

Str, Con, Dex, etc.

Definition at line 368 of file object.h.

Referenced by add_abilities(), add_capacity(), add_player_exp(), add_statbonus(), alchemy_failure_effect(), allowed_class(), animate_bomb(), animate_trigger(), animate_turning(), animate_weapon(), append_spell(), apply_auto(), apply_auto_fix(), apply_changes_to_player(), apply_check_personalized_blessings(), apply_death_exp_penalty(), apply_race_and_class(), apply_savebed(), apply_sign(), attack_ob(), attack_ob_simple(), attempt_hide(), attempt_steal(), become_follower(), blind_living(), blindness_type_process(), calc_alch_danger(), calc_item_power(), calc_perm_exp(), calc_skill_exp(), calculate_difficulty(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_change_map_lightlevel(), cast_cone(), cast_create_food(), cast_create_missile(), cast_curse(), cast_destruction(), cast_detection(), cast_heal(), cast_identify(), cast_light(), cast_magic_storm(), cast_polymorph(), cast_smite_spell(), cast_spell(), cast_transfer(), cfapi_object_get_property(), cfapi_object_set_property(), change_abil(), change_exp(), change_luck(), change_object(), charge_mana_effect(), check_bullet(), check_exp_adjust(), check_exp_loss(), check_hp(), check_inv_recursive(), check_login(), check_probe(), check_race_and_class(), check_spell_knockback(), check_trigger(), command_abil(), command_addexp(), command_save(), command_showpets(), command_statistics(), command_stats(), common_trap_type_process(), counterspell(), create_aura(), create_bomb(), crystal_level(), cure_disease(), deathstrike_living(), deep_swamp_type_move_on(), deep_swamp_type_process(), describe_item(), describe_monster(), did_make_save_item(), die_roll(), director_type_move_on(), do_harvest(), do_mood_floor(), do_skill(), do_some_living(), do_symptoms(), do_throw(), do_turn(), dragon_eat_flesh(), dragon_focus_type_apply(), dragon_level_gain(), drain_rod_charge(), drain_specific_stat(), drain_wand_charge(), dump_abilities(), dump_gods(), eat_special_food(), enter_exit(), esrv_update_stats(), examine(), examine_monster(), explode_bullet(), CRECombatSimulator::fight(), find_transmution_ob(), fire_arch_from_position(), fire_bolt(), fire_bow(), fire_misc_object(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_player(), fix_stopped_arrow(), fix_summon_pet(), flee_player(), food_type_apply(), forklightning(), gate_type_process(), get_ob_diff(), get_player(), give_skill_by_name(), god_enchants_weapon(), god_examines_priest(), god_intervention(), hiscore_check(), hit_map(), hit_player(), hit_with_arrow(), hit_with_one_attacktype(), hole_type_move_on(), identify_object_with_skill(), improve_weapon(), infect_object(), is_legal_2ways_exit(), is_magical(), jump(), key_change_class(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), lamp_type_apply(), learn_skill(), legacy_ob_process(), lighter_type_apply(), local_check_loaded_object(), magic_wall(), main(), make_object_glow(), make_throw_ob(), meditate(), monster_can_detect_enemy(), monster_cast_spell(), monster_check_doors(), monster_check_earthwalls(), monster_check_pickup(), monster_check_wakeup(), monster_disthit_att(), monster_do_living(), monster_get_armour_quality(), monster_get_weapon_quality(), monster_move(), monsterFight(), monsterTable(), mood_change(), move_ball_spell(), move_bolt(), move_cone(), move_creator(), move_detector(), move_disease(), move_hole(), move_marker(), move_player_attack(), move_player_mover(), move_symptom(), new_exp(), object_add_weight(), object_can_merge(), object_can_pick(), object_merge_spell(), object_sub_weight(), object_sum_weight(), ok_to_put_more(), old_describe_monster(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), peacemaker_type_process(), perceive_self(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_arrow_target(), pick_up_object(), place_chest(), place_exits(), place_monsters(), player_lvl_adj(), player_mover_type_move_on(), poison_living(), poison_type_apply(), poisoning_type_process(), polymorph_item(), potion_type_apply(), power_crystal_describe(), power_crystal_type_apply(), pray(), pray_at_altar(), price_base(), print_monsters(), process_object(), push_ob(), random_roll(), random_roll64(), recharge(), regenerate_rod(), remove_depletion(), remove_statbonus(), reportSummon(), resurrect_player(), ring_desc(), rod_adjust(), roll_ob(), roll_stats(), rune_attack(), sack_can_hold(), save_life(), save_object(), save_player(), save_throw_object(), scroll_failure(), send_arch_info(), set_dragon_name(), set_ring_bonus(), CREWrapperObject::setObject(), setup(), shop_price_buy(), sign_type_move_on(), singing(), slow_living(), SP_level_spellpoint_cost(), special_potion(), spell_effect_type_move_on(), spell_failure(), spellbook_type_apply(), spellpath_msg(), spinner_type_move_on(), spring_trap(), START_TEST(), stick_arrow(), subtract_player_exp(), swap_random_stats(), swap_stat(), tear_down_wall(), timed_gate_type_process(), trap_adjust(), trap_disarm(), trap_see(), trigger_connected(), trigger_move(), trigger_type_process(), use_oratory(), write_rune(), and write_scroll().

obj::subtype

Subtype of object.

Use

Type(s) Description
Builder Whether this builder will add items, or remove items.
Building material What kind of building material this is.
Event The event type determines the trigger condition.
Skill The <skill type> defines the base functionality of the skill. Skill types are hard-coded in the Crossfire server. It isn't hard to create new skill types, but it requires a bit of server-coding.
Spell The <spell type> defines the basic type of spell. Some of these types are of a more generic nature than others.

Definition at line 339 of file object.h.

Referenced by apply_map_builder(), cast_bless(), cast_change_ability(), cast_curse(), cast_destruction(), cast_smite_spell(), cast_spell(), cast_wonder(), cast_word_of_recall(), cfapi_object_get_property(), check_summoned(), CREMapInformationManager::checkEvent(), command_unarmed_skill(), confuse_living(), create_aura(), create_player_cmd(), do_skill(), do_skill_attack(), do_throw(), dragon_ability_gain(), explode_bullet(), find_best_player_hth_skill(), fire_arch_from_position(), get_archetype_by_type_subtype(), get_ob_diff(), get_readable_message_type(), give_skill_by_name(), init_dynamic(), init_skills(), is_aimed_missile(), monster_should_cast_spell(), monsterFight(), move_swarm_spell(), object_can_merge(), object_find_by_type_subtype(), object_merge_spell(), ok_to_put_more(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), remove_force(), send_map_info(), should_director_abort(), skill_ident(), spell_effect_type_move_on(), spell_effect_type_process(), START_TEST(), and transmute_item_to_flower().

uint8_t obj::temp_anim_speed

Ticks between temporary animation-frames.

Definition at line 420 of file object.h.

Referenced by apply_anim_suffix(), process_events(), and process_object().

uint16_t obj::temp_animation_id

An index into the temporary animation array.

Definition at line 419 of file object.h.

Referenced by animate_object(), apply_anim_suffix(), process_events(), and process_object().

obj::title

Of foo, etc.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Inorganic, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Savebed, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trapdoor, Trigger Marker, Wand & Staff, Weak Wall, Weapon This is the object's title. Once an object is identified the title is attached to the name. Typical titles are "of Mostrai", "of xray vision" etc.
Event The plugin name specifies the plugin that should execute the script file. Almost all map makers use the plugin 'Python'.
Inventory Checker This string specifies the object we are looking for: We have a match if the player's title is/isn't <match title>.

Definition at line 317 of file object.h.

Referenced by add_author(), add_book_to_list(), alchemyTable(), become_follower(), cast_smite_spell(), cctk_set_object_strings(), cfapi_object_get_property(), cfapi_object_set_property(), change_book(), change_treasure(), check_inv_recursive(), CREMapInformationManager::checkEvent(), describe_god(), describe_item(), determine_god(), dragon_focus_type_apply(), dump_gods(), dump_monster_treasure(), find_ingred_cost(), fix_container_multipart(), fix_generated_item(), follower_has_similar_item(), food_type_apply(), free_arch(), free_artifact(), get_npc(), get_ob_diff(), give_artifact_abilities(), god_enchants_weapon(), god_examines_item(), hit_player(), identify(), improve_armour(), infect_object(), is_magical(), is_special_equipment(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_summary(), knowledge_item_can_be_used_alchemy(), make_formula_book(), move_creator(), object_can_merge(), object_clear(), object_copy(), object_fix_multipart(), object_free2(), object_new(), object_reset(), query_base_name(), query_short_name(), START_TEST(), tailor_god_spell(), teardown(), and unique_book().

uint8_t obj::type

PLAYER, BULLET, etc.

See define.h

Definition at line 338 of file object.h.

Referenced by add_abilities(), add_death(), add_map_event(), add_one_item(), add_player_exp(), add_shop_item(), add_slaying(), addArchetypes(), adj_attackroll(), adj_stealchance(), alchemy(), alchemy_failure_effect(), alchemy_object(), altar_type_move_on(), animate_object(), animate_one(), animate_turning(), animate_weapon(), apply_auto(), apply_auto_fix(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), apply_by_living(), apply_by_living_below(), apply_can_apply_object(), apply_changes_to_player(), apply_check_apply_restrictions(), apply_check_item_power(), apply_check_race_restrictions(), apply_container(), apply_manual(), apply_map_builder(), apply_special(), apply_update_ranged_skill(), armour_improver_type_apply(), arrow_type_process(), artifact_describe(), artifact_get_face(), CREUtils::artifactNode(), attack_melee_weapon(), attack_message(), attack_ob_simple(), attempt_do_alchemy(), attempt_hide(), attempt_jump(), attempt_pick_lock(), attempt_recipe(), attempt_steal(), become_follower(), blocked_link(), book_type_apply(), CREMapInformationManager::browseMaps(), build_class_list_reply(), build_race_list_reply(), calc_item_power(), calc_skill_exp(), can_be_transmuted_to_flower(), can_build_over(), can_pay(), cancellation(), cast_cause_disease(), cast_change_ability(), cast_cone(), cast_create_food(), cast_create_missile(), cast_curse(), cast_destruction(), cast_detection(), cast_dust(), cast_earth_to_dust(), cast_heal(), cast_identify(), cast_invisible(), cast_smite_spell(), cast_spell(), cast_wonder(), cast_word_of_recall(), caster_level(), cfapi_object_drop(), cfapi_object_get_property(), cfapi_object_say(), cfapi_object_set_property(), cfapi_object_teleport(), change_abil(), change_book(), change_exp(), change_object(), change_skill(), check_inv(), check_inv_recursive(), check_login(), check_spell_expiry(), check_spells(), check_summoned(), check_trigger(), CREMapInformationManager::checkEvent(), clear_skill(), clock_type_apply(), command_cast_spell(), command_create(), command_drop(), command_dropall(), command_empty(), command_insert_into(), command_possess(), command_remove(), command_setgod(), command_use(), common_ob_move_on(), common_pre_ob_move_on(), CREArtifactPanel::computeMadeViaAlchemy(), confuse_living(), container_type_move_on(), convert_item(), cost_approx_str(), counterspell(), create_aura(), create_player_cmd(), CREFormulaePanel::CREFormulaePanel(), Crossfire_Object_wrap(), deep_swamp_type_move_on(), deep_swamp_type_process(), describe_item(), describe_monster(), describe_resistance(), determine_god(), determine_holy_arch(), die_roll(), dimension_door(), do_exit_map(), do_forget_spell(), do_harvest(), do_hidden_move(), do_learn_spell(), do_mood_floor(), do_skill(), do_skill_attack(), do_throw(), do_turn(), dragon_ability_gain(), dragon_eat_flesh(), dragon_focus_type_apply(), drain_wand_charge(), draw_client_map(), draw_ext_info(), draw_magic_map(), drop(), drop_object(), dump_monster_treasure_rec(), dump_spells(), enter_exit(), enter_map(), enter_player_maplevel(), esrv_add_spells(), esrv_move_object(), eventListener(), examine(), execute_word_of_recall(), exit_type_apply(), exit_type_move_on(), explode_bullet(), find_archetype_by_object_type_name(), find_arrow(), find_artifact(), find_ingred_cost(), find_key(), find_target_for_friendly_spell(), find_throw_ob(), find_traps(), fire(), fire_arch_from_position(), fire_bow(), fire_misc_object(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_player(), fix_stopped_item(), fix_summon_pet(), fix_walls(), follower_has_similar_item(), food_type_apply(), friendly_fire(), gate_type_process(), generate_artifact(), get_archetype_by_skill_name(), get_archetype_by_type_subtype(), get_item_from_body_location(), get_jail_exit(), get_living_id(), get_ob_diff(), get_player_archetype(), get_spell_by_name(), give_initial_items(), god_enchants_weapon(), god_gives_present(), god_intervention(), god_removes_curse(), gravestone_text(), handle_newcs_player(), hide(), hit_player(), hit_with_arrow(), hit_with_one_attacktype(), identify(), identify_altar_type_move_on(), identify_object_with_skill(), improve_armour(), improve_weapon(), improve_weapon_magic(), infect_object(), init_artifacts(), init_dynamic(), init_gods(), init_skills(), inventory(), is_aimed_missile(), is_dragon_pl(), is_legal_2ways_exit(), is_magical(), is_old_wraith_pl(), is_slaying(), is_special_equipment(), is_true_undead(), is_wraith_pl(), kill_object(), kill_player(), kill_player_not_permadeath(), knowledge_item_can_be_used_alchemy(), knowledge_monster_validate(), leave(), legacy_ob_apply(), legacy_ob_describe(), legacy_ob_process(), lighter_type_apply(), load_objects(), local_check_loaded_object(), locate_recipe_artifact(), look_at(), magic_wall(), make_throw_ob(), make_visible(), makes_invisible_to(), matches_sacrifice(), meditate(), monster_can_detect_enemy(), monster_can_pick(), monster_can_see_enemy(), monster_cast_spell(), monster_check_apply(), monster_check_enemy(), monster_check_good_armour(), monster_check_good_weapon(), monster_do_talk_npc(), monster_find_enemy(), mood_change(), move_detector(), move_marker(), move_ob(), move_player_attack(), move_swarm_spell(), move_teleporter(), need_identify(), new_text_name(), ob_apply(), ob_blocked(), ob_describe(), ob_move_on(), ob_process(), ob_trigger(), object_add_weight(), object_can_merge(), object_can_pick(), object_check_move_on(), object_copy_owner(), object_find_by_type(), object_find_by_type2(), object_find_by_type_and_arch_name(), object_find_by_type_and_name(), object_find_by_type_and_race(), object_find_by_type_and_skill(), object_find_by_type_and_slaying(), object_find_by_type_applied(), object_find_by_type_subtype(), object_get_player_container(), object_insert_in_map(), object_insert_in_ob(), object_matches_string(), object_merge_spell(), object_present_in_ob(), object_present_in_ob_by_name(), object_remove(), object_set_enemy(), object_sub_weight(), object_sum_weight(), object_update(), ok_to_put_more(), old_describe_monster(), CREMainWindow::onReportAlchemy(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), CREMainWindow::onReportSpells(), paralyze_living(), pay_from_container(), perceive_self(), pets_follow_owner(), pets_get_enemy(), pets_move(), pets_remove_all(), pets_should_arena_attack(), pets_summon_golem(), pets_summon_object(), pick_lock(), pick_up(), pick_up_object(), play_sound_player_only(), player_arrest(), player_attack_door(), player_can_view(), player_changer_type_process(), player_lvl_adj(), player_mover_type_move_on(), player_update_bg_music(), poison_living(), poison_type_apply(), poisoning_type_process(), polymorph(), polymorph_item(), potion_type_apply(), power_crystal_type_apply(), pray(), price_approx(), price_base(), process_events(), process_object(), push_ob(), put_object_in_sack(), put_treasure(), query_base_name(), query_flags(), query_money(), query_name(), query_short_name(), random_roll(), random_roll64(), rangetostring(), real_money_value(), recharge(), remove_curse(), remove_special_prayers(), remove_trap(), retrofit_joined_wall(), ring_desc(), runapply(), rune_attack(), runghosted(), runmovement(), sack_can_hold(), save_object(), save_player(), save_throw_object(), savebed_type_apply(), scroll_type_apply(), sell_item(), send_arch_info(), send_changed_object(), send_map_info(), send_race_info(), set_abs_magic(), set_ring_bonus(), CREFormulaePanel::setItem(), CREArtifactPanel::setItem(), CREWrapperObject::setObject(), share_exp(), shop_describe(), shop_inventory_type_apply(), shop_mat_type_move_on(), shop_pay_unpaid(), shop_price_buy(), shop_price_sell(), shop_specialisation_ratio(), should_director_abort(), sign_type_move_on(), singing(), skill_attack(), skill_ident(), skill_throw(), skillscroll_type_apply(), spell_client_use(), spell_consume_items(), spell_find_dir(), spellbook_type_apply(), spellpath_msg(), spellsTable(), spring_trap(), stand_near_hostile(), start_animation(), START_TEST(), steal(), stop_item(), tailor_god_spell(), tailor_readable_ob(), teardown(), teleport(), thrown_item_effect(), thrown_object_type_process(), transfer_ob(), transmute_materialname(), transport_type_apply(), trap_disarm(), treasure_find_matching_type(), treasure_type_apply(), trigger_connected(), turn_one_transport(), turn_transport(), unapply_for_ob(), unapply_special(), update_button(), update_buttons(), use_oratory(), weapon_improver_type_apply(), write_note(), write_on_item(), write_rune(), and write_scroll().

obj::value

How much money it is worth (or contains)

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Button, Button Trigger, Class Changer, Cloak, Clock, Container, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trapdoor, Trigger Marker, Wand & Staff, Weak Wall, Weapon Adds a certain value to the object: It will be worth that many times the default value from it's archetype (E.g. "value = 3" means three times worth the default value). Value for buying/selling will be further modified by various factors. Hence, testing values in-game is usually inevitable.
Monster (Grimreaper) The object vanishes after this number of draining attacks.

Definition at line 350 of file object.h.

Referenced by add_abilities(), add_value(), alchemy_failure_effect(), alchemy_object(), altar_type_move_on(), artifact_describe(), cast_create_food(), cast_create_missile(), cf_handle_type_apply(), cfapi_object_get_property(), cfapi_object_set_property(), check_altar_sacrifice(), check_trigger(), convert_item(), cost_approx_str(), cost_string_from_value(), do_symptoms(), drop_object(), dump_alchemy_costs(), examine(), explosion(), find_ingred_cost(), find_next_coin(), fix_flesh_item(), fix_generated_item(), gate_type_process(), get_ob_diff(), hit_player(), infect_object(), kill_player(), local_check_loaded_object(), move_detector(), move_disease(), move_hole(), object_can_merge(), operate_altar(), pay_from_container(), polymorph_item(), potion_type_apply(), price_base(), push_button(), remove_value(), rod_adjust(), sell_item(), set_ring_bonus(), START_TEST(), timed_gate_type_process(), trapdoor_type_move_on(), trigger_connected(), update_button(), use_trigger(), and write_scroll().

float obj::weapon_speed

The overall speed of this object.

Definition at line 330 of file object.h.

Referenced by command_statistics(), esrv_update_stats(), fix_player(), get_ob_diff(), monsterFight(), and process_players1().

float obj::weapon_speed_left

How much speed is left to spend this round.

Definition at line 331 of file object.h.

Referenced by get_ob_diff(), monsterFight(), move_player_attack(), and process_players1().

obj::weapontype

Type of weapon.

Use

Type(s) Description
Weapon

The <weapon type> characterizes the weapon's type of physical attack. It could best be considered a "sub-classification" of the physical attack type. For now, this is only used for attack messages!

You should always set this correctly when creating new weapons for your maps.

Definition at line 371 of file object.h.

Referenced by attack_message(), cast_create_town_portal(), and get_ob_diff().

obj::weight

Attributes of the object.

Use

Type(s) Description
Altar, Altar Trigger, Amulet, Battleground, Book, Boots, Bracers, Breastplate Armor, Builder, Building material, Class Changer, Cloak, Clock, Container, Converter, Creator, Detector, Director, Disease, Door, Drink, Duplicator, Event, Exit, Flesh, Floor, Floor (Encounter), Food, Gate, Girdle, Gloves, Handle, Handle Trigger, Hazard Floor, Helmet, Holy Altar, Horn, Inorganic, Inventory Checker, Item Transformer, Jewel, Key, Locked Door, Magic Ear, Magic Wall, Marker, Money, Monster & NPC, Monster (Grimreaper), Mood Floor, Mover, Pedestal, Pit, Player, Poison Food, Potion, Power Crystal, Projectile, Ring, Rod, Savebed, Scroll, Shield, Shooting Weapon, Shop Floor, Shop Mat, Sign & Magic Mouth, Skill, Skill Scroll, Special Key, Spell, Spellbook, Spinner, Swamp, Teleporter, Timed Gate, Transport, Trigger Marker, Wall, Wand & Staff, Weak Wall, Weapon This value defines the object's weight in grams (1000g is 1kg). Objects with zero weight are not pickable for players. Still, set the "non-pickable"-flag for explicitly non-pickable objects (hey, this is open source.. you never know ;) ).
Button, Button Trigger The button is pressed (triggered), as soon as <press weigh> gram are placed on top of it.
Trapdoor This value defines how much weight the trapdoor can hold. Once items or creatures are gathered on the trapdoor, with a total weight surpassing this value, then the trapdoor will open and things start falling through.

Definition at line 365 of file object.h.

Referenced by add_abilities(), alchemy_failure_effect(), alchemy_object(), apply_race_and_class(), cast_detection(), cfapi_object_get_property(), cfapi_object_set_property(), check_login(), check_spell_knockback(), check_trigger(), do_harvest(), do_throw(), examine(), fix_flesh_item(), get_ob_diff(), improve_armour(), improve_weapon(), key_change_class(), make_item_from_recipe(), monster_check_pickup(), move_bolt(), move_cone(), new_text_name(), object_can_merge(), object_can_pick(), object_decrease_nrof(), object_increase_nrof(), object_insert_in_ob(), object_remove(), pick_up_object(), query_base_name(), query_short_name(), query_weight(), remove_force(), roll_ob(), sack_can_hold(), save_throw_object(), sell_item(), set_abs_magic(), CREWrapperObject::setObject(), START_TEST(), stick_arrow(), transmute_item_to_flower(), transport_can_hold(), trapdoor_type_move_on(), and update_button().

int32_t obj::weight_limit
obj::will_apply

See crossfire.doc and What monsters apply.

Use

Type(s) Description
Monster & NPC, Monster (Grimreaper) This entry defines which kinds of environment actions the creature is able to perform.

Definition at line 392 of file object.h.

Referenced by get_ob_diff(), monster_apply_below(), monster_check_apply(), monster_move(), and move_ob().

int16_t obj::x

Definition at line 326 of file object.h.

Referenced by add_object_to_socklist(), add_one_item(), alchemy(), alchemy_failure_effect(), animate_bomb(), animate_weapon(), apply_auto(), apply_builder_remove(), apply_container(), apply_handle_yield(), apply_map_builder(), apply_savebed(), armour_improver_type_apply(), attempt_jump(), can_build_over(), cast_cause_disease(), cast_change_ability(), cast_cone(), cast_create_obj(), cast_create_town_portal(), cast_curse(), cast_destruction(), cast_detection(), cast_earth_to_dust(), cast_heal(), cast_identify(), cast_light(), cast_magic_storm(), cast_polymorph(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_transfer(), cfapi_object_get_property(), cfapi_object_insert(), cfapi_object_set_property(), change_object(), charge_mana_effect(), check_bullet(), check_hp(), check_infection(), check_login(), check_spell_knockback(), check_wall(), CREMapInformationManager::checkEvent(), command_create(), command_reset(), command_save(), command_summon(), command_teleport(), common_process_projectile(), cone_drop(), convert_item(), converter_type_move_on(), counterspell(), create_bomb(), create_npc_info(), create_player_cmd(), dimension_door(), dispel_rune(), do_execute_event(), do_harvest(), do_mood_floor(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), do_throw(), do_turn(), draw_client_map(), draw_client_map2(), drop_object(), emergency_save(), enter_fixed_template_map(), enter_map(), enter_player_maplevel(), enter_random_map(), enter_random_template_map(), enter_unique_map(), esrv_draw_look(), esrv_get_ob_from_count(), eventListener(), execute_word_of_recall(), expand_lighted_sight(), expand_sight(), explode_bullet(), explosion(), find_target_for_friendly_spell(), find_traps(), fire_arch_from_position(), fire_bolt(), fire_swarm(), first_arch_pass(), fix_summon_pet(), forklightning(), gate_type_process(), generate_monster_arch(), get_exit_seed(), get_ob_diff(), get_pointed_target(), get_rangevector(), get_rangevector_from_mapcoord(), hideability(), hit_map(), hit_with_arrow(), identify(), is_legal_2ways_exit(), key_change_class(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_attempt(), load_objects(), local_check_loaded_object(), lock_and_hide_doors(), look_at(), loot_object(), magic_mapping_mark(), magic_mapping_mark_recursive(), magic_wall(), make_object_glow(), make_sure_not_seen(), make_sure_seen(), map2_add_ob(), monster_communicate(), monster_compute_path(), monster_find_nearest_living_creature(), monster_npc_call_help(), monster_stand_in_light(), monster_use_bow(), mood_change(), move_aura(), move_ball_spell(), move_bolt(), move_bullet(), move_cone(), move_creator(), move_detector(), move_duplicator(), move_firewall(), move_marker(), move_missile(), move_ob(), move_player_attack(), move_player_mover(), move_swarm_spell(), move_symptom(), move_to(), ob_blocked(), object_check_move_on(), object_create_arch(), object_decrease_nrof(), object_distance(), object_find_multi_free_spot_around(), object_find_multi_free_spot_within_radius(), object_fix_multipart(), object_free2(), object_get_multi_size(), object_increase_nrof(), object_insert_in_map(), object_insert_in_map_at(), object_insert_in_ob(), object_remove(), object_replace_insert_in_map(), object_update(), path_to_player(), peacemaker_type_process(), pets_follow_owner(), pets_get_enemy(), pets_move(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_arrow_target(), pick_lock(), pick_up_object(), place_alchemy_objects(), place_chest(), place_exits(), place_treasure(), play_sound_map(), play_sound_player_only(), player_arrest(), player_can_view(), player_fire_bow(), polymorph_item(), polymorph_living(), potion_type_apply(), probe(), process_players1(), push_ob(), put_a_monster(), put_object_in_sack(), put_treasure(), recharge(), remove_adjacent_doors(), remove_door(), remove_force(), remove_locked_door(), remove_trap(), remove_unpaid_objects(), roll_ob(), runghosted(), runmoveto(), save_object(), save_player(), save_throw_object(), set_first_map(), shop_contains(), shop_mat_type_move_on(), singing(), skill_attack(), spell_failure(), spring_trap(), stand_near_hostile(), START_TEST(), steal(), stop_jump(), stop_projectile(), tear_down_wall(), teleport(), transport_type_apply(), trap_show(), treasure_type_apply(), try_fit(), turn_one_transport(), update_all_los(), update_buttons(), use_alchemy(), use_oratory(), weapon_improver_type_apply(), write_mark(), and write_rune().

int16_t obj::y

Position in the map for this object.

Definition at line 326 of file object.h.

Referenced by add_object_to_socklist(), add_one_item(), alchemy(), alchemy_failure_effect(), animate_bomb(), animate_weapon(), apply_auto(), apply_builder_remove(), apply_container(), apply_handle_yield(), apply_map_builder(), apply_savebed(), armour_improver_type_apply(), attempt_jump(), can_build_over(), cast_cause_disease(), cast_change_ability(), cast_cone(), cast_create_obj(), cast_create_town_portal(), cast_curse(), cast_destruction(), cast_detection(), cast_earth_to_dust(), cast_heal(), cast_identify(), cast_light(), cast_magic_storm(), cast_polymorph(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_transfer(), cfapi_object_get_property(), cfapi_object_insert(), cfapi_object_set_property(), change_object(), charge_mana_effect(), check_bullet(), check_hp(), check_infection(), check_login(), check_spell_knockback(), check_wall(), CREMapInformationManager::checkEvent(), command_create(), command_reset(), command_save(), command_summon(), command_teleport(), common_process_projectile(), cone_drop(), convert_item(), converter_type_move_on(), counterspell(), create_bomb(), create_npc_info(), create_player_cmd(), dimension_door(), dispel_rune(), do_execute_event(), do_harvest(), do_mood_floor(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), do_throw(), do_turn(), draw_client_map(), draw_client_map2(), drop_object(), emergency_save(), enter_fixed_template_map(), enter_map(), enter_player_maplevel(), enter_random_map(), enter_random_template_map(), enter_unique_map(), esrv_draw_look(), esrv_get_ob_from_count(), eventListener(), execute_word_of_recall(), expand_lighted_sight(), expand_sight(), explode_bullet(), explosion(), find_target_for_friendly_spell(), find_traps(), fire_arch_from_position(), fire_bolt(), fire_swarm(), first_arch_pass(), fix_summon_pet(), forklightning(), gate_type_process(), generate_monster_arch(), get_exit_seed(), get_ob_diff(), get_pointed_target(), get_rangevector(), get_rangevector_from_mapcoord(), hideability(), hit_map(), hit_with_arrow(), identify(), is_legal_2ways_exit(), key_change_class(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_attempt(), load_objects(), local_check_loaded_object(), lock_and_hide_doors(), look_at(), loot_object(), magic_mapping_mark(), magic_mapping_mark_recursive(), magic_wall(), make_object_glow(), make_sure_not_seen(), make_sure_seen(), map2_add_ob(), monster_communicate(), monster_compute_path(), monster_find_nearest_living_creature(), monster_npc_call_help(), monster_stand_in_light(), monster_use_bow(), mood_change(), move_aura(), move_ball_spell(), move_bolt(), move_bullet(), move_cone(), move_creator(), move_detector(), move_duplicator(), move_firewall(), move_marker(), move_missile(), move_ob(), move_player_attack(), move_player_mover(), move_swarm_spell(), move_symptom(), move_to(), ob_blocked(), object_check_move_on(), object_create_arch(), object_decrease_nrof(), object_distance(), object_find_multi_free_spot_around(), object_find_multi_free_spot_within_radius(), object_fix_multipart(), object_free2(), object_get_multi_size(), object_increase_nrof(), object_insert_in_map(), object_insert_in_map_at(), object_insert_in_ob(), object_remove(), object_replace_insert_in_map(), object_update(), path_to_player(), peacemaker_type_process(), pets_follow_owner(), pets_get_enemy(), pets_move(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_arrow_target(), pick_lock(), pick_up_object(), place_alchemy_objects(), place_chest(), place_exits(), place_treasure(), play_sound_map(), play_sound_player_only(), player_arrest(), player_can_view(), player_fire_bow(), polymorph_item(), polymorph_living(), potion_type_apply(), probe(), process_players1(), push_ob(), put_a_monster(), put_object_in_sack(), put_treasure(), recharge(), remove_adjacent_doors(), remove_door(), remove_force(), remove_locked_door(), remove_trap(), remove_unpaid_objects(), roll_ob(), runghosted(), runmoveto(), save_object(), save_player(), save_throw_object(), set_first_map(), shop_contains(), shop_mat_type_move_on(), singing(), skill_attack(), spell_failure(), spring_trap(), stand_near_hostile(), START_TEST(), steal(), stop_jump(), stop_projectile(), tear_down_wall(), teleport(), transport_type_apply(), trap_show(), treasure_type_apply(), try_fit(), turn_one_transport(), update_all_los(), update_buttons(), use_alchemy(), use_oratory(), weapon_improver_type_apply(), write_mark(), and write_rune().


The documentation for this struct was generated from the following files: