|
Methods defined here:
- __cmp__(...)
- x.__cmp__(y) <==> cmp(x,y)
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
- attach(...)
- attach(trigger)
Attach a trigger to the object by key name.
- aux(...)
- Alias for obj.Obj.getAuxiliary(name)
- copy(...)
- copy()
Returns a copy of the object.
- deletevar(...)
- deletevar(name)
Deletes a special variable from an object if they have one by the
given name.
- delvar(...)
- Alias for obj.Obj.deletevar(name)
- detach(...)
- detach(trigger)
Detach a trigger from the object by key name.
- do_trigs(...)
- do_trigs(type, ch=None, obj=None, room=None, exit=None, cmd=None,
arg=None, opts=None)
Run triggers of the specified type on the object. By default, the
trigger owner is 'me'. Other variables can be specified. The opts
variable can be a dictionary that maps optional variable names to their
values.
- edesc(...)
- edesc(keywords, desc)
Create an extra description for the object, accessible via a comma-
separated list of keywords.
- fromall(...)
- fromall()
Remove object from whichever room, character, or container it is in.
- getAuxiliary(...)
- getAuxiliary(name)
Returns object's auxiliary data of the specified name.
- get_type_data(...)
- get_type_data(item_type)
Returns Python item type data if it exists, or None.
- get_types(...)
- get_types()
Returns a comma-separated list of item types this object has.
- getvar(...)
- getvar(name)
Return value of a special variable. Return 0 if no value has been set.
- hasvar(...)
- hasvar(name)
Return True if object has the given special variable. False otherwise.
- isinstance(...)
- isinstance(prototype)
returns whether the object inherits from a specified obj prototype.
- istype(...)
- istype(item_type)
Returns True or False if the object is of the specified item type.
- settype(...)
- settype(item_type)
Make an object be the specified item type.
- setvar(...)
- setvar(name, val)
Set value of a special variable for the object. Values must be strings
or numbers. This function is intended to allow scripts and triggers toopen-endedly add variables to objects.
- store(...)
- store()
Return a storage set representing the object.
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- age = <attribute 'age' of 'obj.Obj' objects>
- Value is the difference between the object's creation time and the
current system time. Immutable.
- birth = <attribute 'birth' of 'obj.Obj' objects>
- Value is the object's creation time (system time). Immutable.
- bits = <attribute 'bits' of 'obj.Obj' objects>
- A comma-separated list of bits currently toggled for this object.
- carrier = <attribute 'carrier' of 'obj.Obj' objects>
- The character whose inventory this object is currently in, or None.
- chars = <attribute 'chars' of 'obj.Obj' objects>
- A list of characters currently sitting/riding this object. Immutable.
See char.Char.furniture for changing a character's furniture.
- container = <attribute 'container' of 'obj.Obj' objects>
- The container this object is currently in, or None.
- container_capacity = <attribute 'container_capacity' of 'obj.Obj' objects>
- The maximum amount of weight c container can hold.
- container_is_closable = <attribute 'container_is_closable' of 'obj.Obj' objects>
- True or False if the container can be closed.
- container_is_closed = <attribute 'container_is_closed' of 'obj.Obj' objects>
- True or False if the container is closed.
- container_is_locked = <attribute 'container_is_locked' of 'obj.Obj' objects>
- True or False if the container is locked.
- container_key = <attribute 'container_key' of 'obj.Obj' objects>
- An object prototype that acts as a key for this container.
- container_pick_diff = <attribute 'container_pick_diff' of 'obj.Obj' objects>
- An integer representing how difficult a container's lock is to pick.
- contents = <attribute 'contents' of 'obj.Obj' objects>
- A list of other objects contained within this one. Immutable.
See obj.Obj.container for changing an object's container.
- desc = <attribute 'desc' of 'obj.Obj' objects>
- An object's verbose description e.g., for when it is looked at.
- furniture_capacity = <attribute 'furniture_capacity' of 'obj.Obj' objects>
- The number of characters a furniture object can accomodate.
- furniture_type = <attribute 'furniture_type' of 'obj.Obj' objects>
- The type of furniture this is: 'at' or 'on' like e.g., tables vs. couches.
- hidden = <attribute 'hidden' of 'obj.Obj' objects>
- Integer value representing how hard this object is to see.
- keywords = <attribute 'keywords' of 'obj.Obj' objects>
- A comma-separated list of keywords for referencing the object.
- mdesc = <attribute 'mdesc' of 'obj.Obj' objects>
- the equivalent of mname, for room descriptions.
- mname = <attribute 'mname' of 'obj.Obj' objects>
- The object's name for describing packs, e.g.,
a stack of 12 linen towels. The number should be replaced by %d, or
not included.
- name = <attribute 'name' of 'obj.Obj' objects>
- The object's name e.g., a longsword
- objs = <attribute 'objs' of 'obj.Obj' objects>
- Alias for obj.Obj.contents
- portal_dest = <attribute 'portal_dest' of 'obj.Obj' objects>
- A string key specifying the destination of the portal. Can be set by
a string or the actual room.
- portal_enter_mssg = <attribute 'portal_enter_mssg' of 'obj.Obj' objects>
- The message shown to the desination room when a character enters portal.
- portal_leave_mssg = <attribute 'portal_leave_mssg' of 'obj.Obj' objects>
- The message shown to a room after a character leaves it via a portal.
- prototypes = <attribute 'prototypes' of 'obj.Obj' objects>
- A comma-separated list of prototypes this object inherits from. Immutable
- rdesc = <attribute 'rdesc' of 'obj.Obj' objects>
- The object's description when seen in a room, e.g.,
a longsword is here, gleaming in the sun.
- room = <attribute 'room' of 'obj.Obj' objects>
- The room this object is current in, or None.
- uid = <attribute 'uid' of 'obj.Obj' objects>
- The object's unique identification number. Immutable.
- wearer = <attribute 'wearer' of 'obj.Obj' objects>
- The character who is currently wearing this object, or None.
- weight = <attribute 'weight' of 'obj.Obj' objects>
- The object's weight (plus contents). When setting a new value,
sets raw weight (minus contents).
- weight_raw = <attribute 'weight_raw' of 'obj.Obj' objects>
- The object's weight (minus contents)
- worn_locs = <attribute 'worn_locs' of 'obj.Obj' objects>
- The position names this worn type must be equipped to. Immutable.
- worn_type = <attribute 'worn_type' of 'obj.Obj' objects>
- The type of worn item this is.
|