Slip Component

This is a component that can be applied to any movable atom (mob or obj).
While the atom has this component, any human mob that walks over it will have a chance to slip. Duration, tiles moved, and so on, depend on what variables are passed in when the component is added.
Vars | |
description | Text that gets displayed in the slip proc, i.e. "user slips on [description]" |
---|---|
horizontal_required | TRUE the player will only slip if the mob this datum is attached to is horizontal |
knockdown | The amount of knockdown to apply after slip. |
slip_always | FALSE if you want no slip shoes to make you immune to the slip |
slip_chance | The chance that walking over the parent will slip you. |
slip_tiles | The amount of tiles someone will be moved after slip. |
slip_verb | The verb that players will see when someone slips on the parent. In the form of "You [slip_verb]ped on". |
walking_is_safe | TRUE If this slip can be avoided by walking. |
Procs | |
Slip | Called whenever the parent recieves either the MOVABLE_CROSSED signal or the ATOM_ENTERED signal. |
Var Details
description

Text that gets displayed in the slip proc, i.e. "user slips on [description]"
horizontal_required

TRUE the player will only slip if the mob this datum is attached to is horizontal
knockdown

The amount of knockdown to apply after slip.
slip_always

FALSE if you want no slip shoes to make you immune to the slip
slip_chance

The chance that walking over the parent will slip you.
slip_tiles

The amount of tiles someone will be moved after slip.
slip_verb

The verb that players will see when someone slips on the parent. In the form of "You [slip_verb]ped on".
walking_is_safe

TRUE If this slip can be avoided by walking.
Proc Details
Slip
Called whenever the parent recieves either the MOVABLE_CROSSED
signal or the ATOM_ENTERED
signal.
Calls the victim
's slip()
proc with the component's variables as arguments.
Additionally calls the parent's after_slip()
proc on the victim
.