NAME simple_armour.c - a simple armour INHERITS basic_thing.c (see basic_thing.doc for more info) SETUP FUNCTIONS set_type set_class QUERY FUNCTIONS query_ac (compatibilty) armour_class is_armour query_worn SPECIAL PROPERTIES cursed - prevents the armour from being removed or dropped once worn __default_extra_look - The property __extra_look is used when the armour is worn, __default_extra_look otheriwise. __remote see below ======================================================================= NAME set_type - set the type of armour. SYNTAX void set_type(string type); DESCRIPTION Set the type of the armour, see /doc/RULES/armour.r for a list of types. ======================================================================= NAME set_class - set the armour class SYNTAX void set_class(int class); DESCRIPTION Set how good the armour is, see /doc/RULES/armour.r for a list of acceptable values. ======================================================================= NAME remote object SYNTAX void add_property("__remote",string remote_object_file_name); void add_property("__remote",object remote_object); DESCRIPTION The remote is used to add side effects and extra messages to the armour. These functions are used in the remote_object. (all take the armour as the only argument) remote_prevent_wear() Called when someone tries to wear the armour, should write an explanation and return 1 to prevent the armour from being worn. remote_do_wear() Called when someone does wear the the armour. remote_do_remove() Called when someone removes the armour. To prevent someone from removing the armour, write a message or someting and return 1 from this function. NOTE If the remote_object_file_name is given as a string, the functions are called in the master object. If you want them to be called in a clone, you must give an object. =======================================================================
Help topics available:
board.doc | box.doc | door.doc | hidden_door.doc | lib.doc |
remote | sequence.doc | simple_armour.doc | simple_container.doc | simple_weapon.doc |
You are guest number 74 since December 2019.
This file was last modified: June 2000.