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

orbit_poll

A replacement for the standard poll_ghost_candidate. Use this to subtly ask players to join - it picks from orbiters. Please use named arguments for this.

@params ignore_key - Required so it doesn't spam @params job_bans - You can insert a list or single items here. @params cb - Invokes this proc and appends the poll winner as the last argument, mob/dead/observer/ghost @params title - Optional. Useful if the role name does not match the parent.

@usage

var/datum/callback/cb = CALLBACK(src, PROC_REF(do_stuff), arg1, arg2)
AddComponent(/datum/component/orbit_poll, \
  ignore_key = POLL_IGNORE_EXAMPLE, \
  job_bans = ROLE_EXAMPLE or list(ROLE_EXAMPLE, ROLE_EXAMPLE2), \
  title = "Use this if you want something other than the parent name", \
  to_call = cb, \
)

Vars

job_bansPrevent players with this ban from being selected
titleTitle of the role to announce after it's done
to_callProc to invoke whenever the poll is complete

Procs

end_pollConcludes the poll, picking one of the orbiters
phone_homeMake sure to call your parents my dude
pick_and_offerTakes a list, picks a candidate, and offers the role to them.

Var Details

job_bans

Prevent players with this ban from being selected

title

Title of the role to announce after it's done

to_call

Proc to invoke whenever the poll is complete

Proc Details

end_poll

Concludes the poll, picking one of the orbiters

phone_home

Make sure to call your parents my dude

pick_and_offer

Takes a list, picks a candidate, and offers the role to them.