Zippy-Egoboo Home EgoWiki > Documentation > ZippyAlerts (r1.1 vs. r1.5) EgoWiki webs:
Main | TWiki | Know | Sandbox
Documentation . { Changes | Index | Search | Go }
 <<O>>  Difference Topic ZippyAlerts (r1.5 - 29 Sep 2004 - ElminI)
Changed:
<
<

dropped none The character was just dropped by another
grabbed none The character was just grabbed by another
>
>

dropped (deprecated by 0.0.4) none The character was just dropped by another
grabbed (deprecated by 0.0.4) none The character was just grabbed by another
attempted_pickup (by 0.0.4) to_pickup: a character
grip: GRIP_LEFT or GRIP_RIGHT
The character is trying to pick up another one
attempted_drop (by 0.0.4) to_drop: a character
grip: GRIP_LEFT or GRIP_RIGHT
The character is trying to drop another
attempted_putaway (by 0.0.4) to_putaway: a character
grip: GRIP_LEFT or GRIP_RIGHT
The character is trying to put another in its pack
attempted_takeout (by 0.0.4) to_takeout: a character
grip: GRIP_LEFT or GRIP_RIGHT
The character is trying to take another out of its pack
Changed:
<
<

-- ElminI - 30 Jan 2004

>
>

-- ElminI - 29 Sep 2004


 <<O>>  Difference Topic ZippyAlerts (r1.4 - 16 Mar 2004 - ElminI)
Added:
>
>

animation_done none The character's animation finished and it is starting the next one
latch_done latch: see ZippyLatches The character just finished an animation requested with a latch

 <<O>>  Difference Topic ZippyAlerts (r1.3 - 04 Mar 2004 - ElminI)
Added:
>
>

walk_movement none The character is now at the position specified by a call to walk() (see ZippyCharacters)
jump_movement none The character is on the ground again after jumping as the result of a call to jump() (see ZippyCharacters)
done_aiming none The player has chosen a target for the character as the result of a call to aim() (see ZippyCharacters)

 <<O>>  Difference Topic ZippyAlerts (r1.2 - 31 Jan 2004 - ElminI)
Changed:
<
<

swipe none The character reached an AL or AR frame (see ?)
>
>

swipe none The character reached an AL or AR frame (see ModelS#SpecialCodes)

 <<O>>  Difference Topic ZippyAlerts (r1.1 - 30 Jan 2004 - ElminI)
Added:
>
>

%META:TOPICINFO{author="ElminI" date="1075502460" format="1.0" version="1.1"}% %META:TOPICPARENT{name="ZippyCharacterType"}% Alerts are simple messages from the Zippy engine to characters sent to notify them of events occuring in the game world. They are one-way interactions, and are implemented by calls to functions defined in the character type in the "alerts" sub-table. The following is a table of alerts, their meaning, and the parameters (excluding the ubiquitous "self" parameter) passed to the alert handling function:

Alert Parameters Meaning
spawn none The character has just been spawned (called after the constructor)
in_water none The character has just entered water
put_away none The character was just placed another character's inventory
taken_out none The character was just removed from another character's inventory
cleaned_up (not used) none The character has died, and is now being directed to "clean itself up"
dropped none The character was just dropped by another
grabbed none The character was just grabbed by another
used none The character was just "used," either by another (if it's a weapon or item) or by itself (as in unarmed attacks)
hit_ground none The character was in the air, and is now on the ground (never as a result of being dropped)
bumped bumped_into: a character The character collided with another character
blocked (not used) none The character ran into a passage that is blocked
healed (not used) healed_by: a character The character was healed by another
attacked (not used) attacked_by: a character The character was damaged by another
killed (not used) attacked_by: a character The character was killed by another
thrown thrown_by: a character The character was thrown by another
swipe none The character reached an AL or AR frame (see ?)
crushed none The character was crushed by a passage
passage_blocked blocked_by: a passage The character ran into a passage that was blocked
disaffirmed (not used) none ?
particle_bumped particle: either a particle type or a particle reference (see ZippyParticles)
bumped_into: a character
A particle spawned by this character bumped into another character
particle_hitwater particle: see ZippyParticles A particle spawned by this character hit the water
particle_hitwall particle: see ZippyParticles A particle spawned by this character hit a wall
particle_hitground particle: see ZippyParticles A particle spawned by this character hit the ground
particle_timedout particle: see ZippyParticles A particle spawned by this character ran out of time
particle_lastframe particle: see ZippyParticles A particle spawned by this character reached the last frame of its animation
remove none The character will be removed from the game at the end of this update

Example:

The following example causes the character to begin a Notice action targeted at its Player with the extra argument being the character who bumped it. For more information on Players and Actions, see ZippyPlayers and ZippyActions.

register_type{
   -- ...
   alerts = {
      bumped = function (self, bumped_by)
         act(Basic.Notice, self, self.player, bumped_by)
      end
   }
}

-- ElminI - 30 Jan 2004


Topic ZippyAlerts . { View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.1 - 30 Jan 2004 - 22:41 GMT - ElminI
Revision r1.5 - 29 Sep 2004 - 02:39 GMT - ElminI
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.