Shiptest 13 - Modules - TypesVar Details - Proc Details

vote

Vars

current_voteThe vote we're currently voting on.
generated_actionsA list of all generated action buttons
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

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

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

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.