/tg/ Station 13 - Modules - TypesVar Details - Proc Details

vote

Vars

current_voteThe vote we're currently voting on.
generated_actionsA list of all generated action buttons
last_vote_timeWorld.time we started our last vote
possible_votesAll votes that we can possible vote for.
votedA list of all ckeys who have voted for the current vote.
votingA list of all ckeys currently voting for the current vote.

Procs

can_vote_startChecks if we can start a vote.
end_voteEnds the current vote.
initiate_voteInitiates a vote, allowing all players to vote on something.
process_vote_resultProcess the results of the vote. Collects all the winners, breaks any ties that occur, prints the results of the vote to the world, and finally follows through with the effects of the vote.
resetResets all of our vars after votes conclude / are cancelled.
submit_multi_voteAny number of selections per person, and the selection with the most votes wins.
submit_single_voteOne selection per person, and the selection with the most votes wins.

Var Details

current_vote

The vote we're currently voting on.

generated_actions

A list of all generated action buttons

last_vote_time

World.time we started our last vote

possible_votes

All votes that we can possible vote for.

voted

A list of all ckeys who have voted for the current vote.

voting

A list of all ckeys currently voting for the current vote.

Proc Details

can_vote_start

Checks if we can start a vote.

Returns TRUE if we can start a vote, FALSE if we can't.

end_vote

Ends the current vote.

initiate_vote

Initiates a vote, allowing all players to vote on something.

process_vote_result

Process the results of the vote. Collects all the winners, breaks any ties that occur, prints the results of the vote to the world, and finally follows through with the effects of the vote.

reset

Resets all of our vars after votes conclude / are cancelled.

submit_multi_vote

Any number of selections per person, and the selection with the most votes wins.

submit_single_vote

One selection per person, and the selection with the most votes wins.