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 |