TRIGEDIT-VARIABLES-OBJECTS

building

Also known as: OBJ-VAR · %SHORTDESC% · TRIGEDIT-OBJ-VAR · VAL0 · VAL1 · VAL2 · VAL3 · %ITEM% · %OBJECT% · OBJVARS · OBJ-VARS · %NEXT_IN_LIST% · %OBJ% · OBJ-COMMAND · IS_INROOM · WORN_BY · NEXT_IN_LIST · CARRIED_BY · OBJECT-VARIABLES · HAS_IN

Objects When using field - The variable returns: affects() - Checks if flag exists. HELP OEDIT-AFFECT TSTAT 1205 carried_by - The id of the character carrying the object, or an empty return. TSTAT 55005 contents - Gives the first object in a container. TSTAT 32 cost() - The cost (not rent cost) of the object. Subfield sets. cost_per_day - The rent cost of the object count - The number of the same object. has_in - True if the container holds the item. hasattached() - Checks if the trig is attached. HELP HASATTACHED. id - The unique id of the object. is_inroom - Returns true if object is in room. name - The list of key words of the object. next_in_list - The id of the next object in the characters inventory, or an empty return room - Returns the room id the object is in. shortdesc - The name of the object that players see. timer - The timer of the object. type - The type of object, such as WAND, ARMOR, or KEY. val0 - Returns the current value in the objects 0 value position. val1 - Returns the current value in the objects 1st value position. val2 - Returns the current value in the objects 2nd value position. val3 - Returns the current value in the objects 3rd value position. vnum() - The object's vnum. Equality can now be checked with if %self.vnum(#)% not if %self.vnum% == # wearflag() - Checks if the object has a wearflag. HELP EQ, TSTAT 3011. weight() - The weight of the object. Subfield sets. worn_by - The id of the character wearing the object, or an empty return Example: TSTAT 28