Weapon Object Functions for Mocha


dice obj.weapon_damage;
void set_weapon_damage (object obj, dice damage);
Determine or set the damage for a weapon. Average damage should not exceed 15 points. Note that the dice add given through damage is ignored; to add damage, you must create an object modifier with set_object_mod.

integer obj.weapon_type;
void set_weapon_type (object obj, integer type);
Determine or set the type of a weapon. The type must appear in the following list of constants:
weapon_type_stabbing allows a weapon to be used when backstabbing.

integer obj.weapon_min_str;
void set_weapon_min_str (object obj, integer min_str);
Determine or set the minimum strength required to wield a weapon effectively. The value must be in the range 0 to 40.


Return to Mocha Object Functions Page

Return to Mocha's Main Page