Zippy-Egoboo Home EgoWiki > Documentation > MakingZippyObjects > ZippyCharacters EgoWiki webs:
Main | TWiki | Know | Sandbox
Documentation . { Changes | Index | Search | Go }
Once spawned, characters are represented by values that can be indexed for various fields and methods. The following table describes the special fields of the character value:

Field Type Meaning
latchx number All characters have a two-axis "virtual joystick" controlling their movements; this is the X-axis of that joystick.
latchy number The Y-axis of the "virtual joystick"
strength, wisdom, intelligence, dexterity (not used)
jump_power number [0,1] The current jumping power of the character
bump_dampen number [0,1] The current bump dampening of the character
dampen number ?
max_accel number The maximum speed of the character
x, y, z number The position of the character
life_points number The maximum life of the character
life number The current life of the character (do not set! use "damage" method instead!)
hit_ready boolean If non-nil, the "hit_ground" alert will be called if the character hits the ground this update
alive boolean If non-nil, the character is alive
is_item boolean If non-nil, the character is an item
is_mount boolean If non-nil, the character is a mount
keep_action boolean If non-nil, the character will pause its animation at the last frame
sparkle number If other than 255, the character will have sparkles drawn around its icon on the status display (see #StandardColors)
attached_to character If the character is being held by another one, this is it
ammo number [0, infinity] The ammunition with the character, used by status display
ammo_known boolean If non-nil, the character's ammo will be displayed with its icon on the status display
angle number (degrees) The angle in which the character is facing
name string The character's name, or nil if it's unnamed
name_known boolean If non-nil, the character's name will be displayed on the status display
inventory list (see ZippyLists) The character's inventory (do not modify or replace!)
left_hand character The character held in the left hand of this charcter (or nil if no such character exists)
right_hand character The character in this one's right hand (or nil if no such character exists)
reload_time number [0, infinity] The number of updates before this character can be used again
target character See aim() below
money (as of 0.0.4) number The amount of money the character has
in_pack (as of 0.0.4) boolean If non-nil, the character is in another character's pack
team (as of 0.0.4) see ZippyTeams If non-nil, the team to which the character belongs
player (as of 0.0.4) see ZippyPlayers If non-nil, the player generating input events for this character

Character values also have the following methods:

-- ElminI - 02 Apr 2005

Topic ZippyCharacters . { Edit | Attach | Ref-By | Printable | Diffs | r1.6 | > | r1.5 | > | r1.4 | More }
Revision r1.6 - 07 Oct 2004 - 21:49 GMT - ElminI
Parents: WebHome > MakingZippyObjects
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding EgoWiki? Send feedback.