deadchat_control

Deadchat Plays Things - The Componenting
Allows deadchat to control stuff and things by typing commands into chat. These commands will then trigger callbacks to execute procs!
Vars | |
ckey_to_cooldown | Assoc list of ckey:value pairings. In DEMOCRACY_MODE, value is the player's vote. In ANARCHY_MODE, value is world.time when their cooldown expires. |
---|---|
deadchat_mode | Either DEMOCRACY_MODE which will execute a single command after the cooldown based on player votes, or ANARCHY_MODE which allows each player to do a single command every cooldown. |
input_cooldown | In DEMOCRACY_MODE, this is how long players have to vote on an input. In ANARCHY_MODE, this is how long between inputs for each unique player. |
inputs | Assoc list of key-chat command string, value-callback pairs. list("right" = CALLBACK(GLOBAL_PROC, .proc/_step, src, EAST)) |
on_removal | Callback invoked when this component is Destroy()ed to allow the parent to return to a non-deadchat controlled state. |
orbiters | List of everything orbitting this component's parent. |
timerid | The id for the DEMOCRACY_MODE looping vote timer. |
Procs | |
async_handle_vv_topic | Async proc handling the alert input and associated logic for an admin removing this component via the VV dropdown. |
handle_vv_topic | Allows for this component to be removed via a dedicated VV dropdown entry. |
on_examine | Informs any examiners to the inputs available as part of deadchat control, as well as the current operating mode and cooldowns. |
Var Details
ckey_to_cooldown

Assoc list of ckey:value pairings. In DEMOCRACY_MODE, value is the player's vote. In ANARCHY_MODE, value is world.time when their cooldown expires.
deadchat_mode

Either DEMOCRACY_MODE which will execute a single command after the cooldown based on player votes, or ANARCHY_MODE which allows each player to do a single command every cooldown.
input_cooldown

In DEMOCRACY_MODE, this is how long players have to vote on an input. In ANARCHY_MODE, this is how long between inputs for each unique player.
inputs

Assoc list of key-chat command string, value-callback pairs. list("right" = CALLBACK(GLOBAL_PROC, .proc/_step, src, EAST))
on_removal

Callback invoked when this component is Destroy()ed to allow the parent to return to a non-deadchat controlled state.
orbiters

List of everything orbitting this component's parent.
timerid

The id for the DEMOCRACY_MODE looping vote timer.
Proc Details
async_handle_vv_topic
Async proc handling the alert input and associated logic for an admin removing this component via the VV dropdown.
handle_vv_topic
Allows for this component to be removed via a dedicated VV dropdown entry.
on_examine
Informs any examiners to the inputs available as part of deadchat control, as well as the current operating mode and cooldowns.