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

from_ghosts

Ghost rulesets

Rulesets which select an observer/ghost player to play as a new character

Implementation notes:

Vars

candidate_roleText shown in the candidate poll. Optional, if unset uses pref_flag. (Though required if pref_flag is unset)
signup_atom_appearancePath of an item to show up in ghost polls for applicants to sign up.

Procs

apply_prefs_to_bodyHandles prepping the body with the candidate's prefs
create_ruleset_bodyHandles making the body for the candidate
on_prefs_appliedHandles anything extra you want to happen after applying prefs
prompt_namechangeName-change proc to be used for midround antags that would like to change their name

Var Details

candidate_role

Text shown in the candidate poll. Optional, if unset uses pref_flag. (Though required if pref_flag is unset)

signup_atom_appearance

Path of an item to show up in ghost polls for applicants to sign up.

Proc Details

apply_prefs_to_body

Handles prepping the body with the candidate's prefs

Applies prefs to a given body. Usually that's what you want, but sometimes you don't, in which case you can override this proc. Returns TRUE if prefs were applied

create_ruleset_body

Handles making the body for the candidate

Handling loc is not necessary here - you can do it in assign_role

Returning null will skip body creation entirely, though you will be expected to do it yourself in assign_role

on_prefs_applied

Handles anything extra you want to happen after applying prefs

prompt_namechange

Name-change proc to be used for midround antags that would like to change their name