ghost_role ![code/modules/events/ghost_role/_ghost_role.dm 4](git.png)
Vars | |
cached_announcement_chance | A stored value of the event's announcement chance. Cached and not immediately used to prevent announcements for a failed event roll. |
---|---|
minimum_required | The minimum number of signups required for the event to continue past the polling period |
role_name | The name of the role, to be displayed in logs/polls/etc. |
spawned_mobs | A list of mobs generated by this event. |
status | Used to communicate the progress of the event firing, and whether or not the event was successfuly run. |
Procs | |
spawn_role | Performs the spawning of our role. Entirely specific to the event itself. |
try_spawning | Attempts to spawn the role, and cancels the event if it fails. |
Var Details
cached_announcement_chance ![code/modules/events/ghost_role/_ghost_role.dm 17](git.png)
A stored value of the event's announcement chance. Cached and not immediately used to prevent announcements for a failed event roll.
minimum_required ![code/modules/events/ghost_role/_ghost_role.dm 7](git.png)
The minimum number of signups required for the event to continue past the polling period
role_name ![code/modules/events/ghost_role/_ghost_role.dm 9](git.png)
The name of the role, to be displayed in logs/polls/etc.
spawned_mobs ![code/modules/events/ghost_role/_ghost_role.dm 11](git.png)
A list of mobs generated by this event.
status ![code/modules/events/ghost_role/_ghost_role.dm 13](git.png)
Used to communicate the progress of the event firing, and whether or not the event was successfuly run.
Proc Details
spawn_role
Performs the spawning of our role. Entirely specific to the event itself.
Should return SUCCESSFUL_SPAWN if role was successfully spawned, return NOT_ENOUGH_PLAYERS if less than mimimum_required was found, and return MAP_ERROR if a spawn location could not be found.
try_spawning
Attempts to spawn the role, and cancels the event if it fails.
Pauses the event right as it begins, and waits for setup/polling to end. If successful, continues running the rest of the event and notifies ghosts.