from_ghosts 
Ghost rulesets
Rulesets which select an observer/ghost player to play as a new character
Implementation notes:
- prepare_role will handle making the body for the mob for you. Avoid touching it if not necessary.
- create_ruleset_body is what makes the new /mob for the candidate. It handles putting the player in the body for you. You can override it entirely for to spawn a different mob type. You can also override it to spawn nothing, if you're doing special handling in assign_role, but you'll have to handle moving the player yourself.
- assign_role is what gives the player their antag datum.
Vars | |
| 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. |
Procs | |
| apply_prefs_to_body | Handles prepping the body with the candidate's prefs |
| create_ruleset_body | Handles making the body for the candidate |
| 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 |
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