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

random_ship_event

Random ship datum that may approach the station.

Vars

acceptedHas the ship been accepted?
announcement_colorThe colour of their announcements when sent to players
arrival_announcementStation receives this message upon the ship's spawn.
message_contentThe contents of the message sent to the station. %SHIPNAME in the content will be replaced with the ship's name.
message_titleInbound message title the station receives.
nameName of this event, for spawning feedback.
possible_answersWhat the station can say in response. First item accepts the ship, second item rejects it.
response_acceptedStation responds to message and accepts the ship.
response_rejectedStation responds to message and rejects the ship.
ship_nameThe random ship name chosen from pirates.json.
ship_name_poolThe key to the json list of ship names.
ship_template_idThe ship they load in on.

Procs

can_rollWhether this random ship event can roll today. This is called when the global list initializes. Returning FALSE means it cannot show up at all for the entire round.
generate_messageReturns a new comm_message datum from this random ship event.
on_acceptAdditional effects when the ship is accepted
on_refuseAdditional effects when the ship is refused
on_ship_spawnAdditional effects when the ship actually spawns

Var Details

accepted

Has the ship been accepted?

announcement_color

The colour of their announcements when sent to players

arrival_announcement

Station receives this message upon the ship's spawn.

message_content

The contents of the message sent to the station. %SHIPNAME in the content will be replaced with the ship's name.

message_title

Inbound message title the station receives.

name

Name of this event, for spawning feedback.

possible_answers

What the station can say in response. First item accepts the ship, second item rejects it.

response_accepted

Station responds to message and accepts the ship.

response_rejected

Station responds to message and rejects the ship.

ship_name

The random ship name chosen from pirates.json.

ship_name_pool

The key to the json list of ship names.

ship_template_id

The ship they load in on.

Proc Details

can_roll

Whether this random ship event can roll today. This is called when the global list initializes. Returning FALSE means it cannot show up at all for the entire round.

generate_message

Returns a new comm_message datum from this random ship event.

on_accept

Additional effects when the ship is accepted

on_refuse

Additional effects when the ship is refused

on_ship_spawn

Additional effects when the ship actually spawns