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

crystal_invasion

Vars

center_areasStore the areas where the huge portals appears
dest_crystalStore the destabilized crystal
is_zk_scenarioCheck if the event will end badly
portal_numbersMax number of portals that can spawn per type of wave
second_waveTicks that have to pass before second wave
spawnedCheck if this is the first wave or not
wave_nameIs the name of the wave, used to check wich wave will be generated

Procs

announce_locationsAfter 8 seconds from the initial explosions centcom will announce the location of the huge portals
choose_wave_typeChoose the type of the wave
create_random_portalsChooses random areas where to put the main huge portals and then spawn around them 6 more portals
destabilize_supermatter_crystalDestabilize the Supermatter crystal and spawn 6 portals around it
do_zk_eventThis proc actually manages the end of the event
finish_eventHandles wich end the event shall have
more_portalsIf after 10 minutes the crystal is not stabilized more portals are spawned and the event progress further
on_dest_crystal_qdelHandle the dest_crystal var to be null if the destabilized crystal is deleted by a badmin before the end of the event
restoreRestore the Destabilized Crystal as it was before
spawn_portalSpawn one portal in a random location choosen from the generic_event_spawns list
zk_event_announcementThis proc announces that the event is concluding with the worst scenario

Var Details

center_areas

Store the areas where the huge portals appears

dest_crystal

Store the destabilized crystal

is_zk_scenario

Check if the event will end badly

portal_numbers

Max number of portals that can spawn per type of wave

second_wave

Ticks that have to pass before second wave

spawned

Check if this is the first wave or not

wave_name

Is the name of the wave, used to check wich wave will be generated

Proc Details

announce_locations

After 8 seconds from the initial explosions centcom will announce the location of the huge portals

choose_wave_type

Choose the type of the wave

create_random_portals

Chooses random areas where to put the main huge portals and then spawn around them 6 more portals

destabilize_supermatter_crystal

Destabilize the Supermatter crystal and spawn 6 portals around it

do_zk_event

This proc actually manages the end of the event

finish_event

Handles wich end the event shall have

more_portals

If after 10 minutes the crystal is not stabilized more portals are spawned and the event progress further

on_dest_crystal_qdel

Handle the dest_crystal var to be null if the destabilized crystal is deleted by a badmin before the end of the event

restore

Restore the Destabilized Crystal as it was before

spawn_portal

Spawn one portal in a random location choosen from the generic_event_spawns list

zk_event_announcement

This proc announces that the event is concluding with the worst scenario