byond - Modules - TypesVar Details - Proc Details

faction_stats

Vars

accumulated_mission_rewardrecords how much currency has been earned from missions, for late join players
active_attrition_pointsHow many attrition points have been dedicated to the current mission
attrition_gain_multiplierMultiplier on the passive attrition point gain for this faction
available_missionsFuture missions this faction can currently choose from
factionThe faction associated with these stats
faction_assetsList of all assets the faction currently has
faction_leaderThe decision maker for this leader
faction_portraitPortrait used for general screen text notifications
finished_missionsMissions this faction has succesfully completed
individual_stat_listlist of individual stats by ckey
loss_bonuscumulative loss bonus which is applied to attrition gain mult and player credit mission reward
purchasable_assetsList of all assets the faction can currently purchase
respawn_delay_modifierFaction-wide modifier to respawn delay
stats_flagsAny special behavior flags for the faction
total_attrition_pointsDictates how many respawns this faction has access to overall
victory_pointsVictory points earned by this faction

Procs

add_assetAdds a new asset to the faction for use
add_new_missionAdds a mission to the available mission pool
apply_cashapplies cash rewards to the faction and all individuals
choose_faction_leaderElects a new faction leader
force_update_static_dataforce updates static data when something changes externally
generate_new_missionRandomly adds a new mission to the available pool
get_player_statsReturns a users individual stat datum, generating a new one if required
get_selectorReturns the faction's leader, selecting one if none is available
get_status_tab_itemsGenerates status tab info for the mission
is_leadership_roleChecks if a mob is in a command role for this faction
mission_endhandles post mission wrap up for the faction
mission_starthandles mission start updates
register_faction_memberSets up newly spawned players with the campaign status verb
remove_assetRemoves an asset from a faction entirely
respawn_memberDeletes a faction member and preps them for respawn
return_to_baseReturns faction members back to spawn or prepares them for respawn if deployed
set_attritionSets attrition for the team
set_faction_leaderSets the faction leader

Var Details

accumulated_mission_reward

records how much currency has been earned from missions, for late join players

active_attrition_points

How many attrition points have been dedicated to the current mission

attrition_gain_multiplier

Multiplier on the passive attrition point gain for this faction

available_missions

Future missions this faction can currently choose from

faction

The faction associated with these stats

faction_assets

List of all assets the faction currently has

faction_leader

The decision maker for this leader

faction_portrait

Portrait used for general screen text notifications

finished_missions

Missions this faction has succesfully completed

individual_stat_list

list of individual stats by ckey

loss_bonus

cumulative loss bonus which is applied to attrition gain mult and player credit mission reward

purchasable_assets

List of all assets the faction can currently purchase

respawn_delay_modifier

Faction-wide modifier to respawn delay

stats_flags

Any special behavior flags for the faction

total_attrition_points

Dictates how many respawns this faction has access to overall

victory_points

Victory points earned by this faction

Proc Details

add_asset

Adds a new asset to the faction for use

add_new_mission

Adds a mission to the available mission pool

apply_cash

applies cash rewards to the faction and all individuals

choose_faction_leader

Elects a new faction leader

force_update_static_data

force updates static data when something changes externally

generate_new_mission

Randomly adds a new mission to the available pool

get_player_stats

Returns a users individual stat datum, generating a new one if required

get_selector

Returns the faction's leader, selecting one if none is available

get_status_tab_items

Generates status tab info for the mission

is_leadership_role

Checks if a mob is in a command role for this faction

mission_end

handles post mission wrap up for the faction

mission_start

handles mission start updates

register_faction_member

Sets up newly spawned players with the campaign status verb

remove_asset

Removes an asset from a faction entirely

respawn_member

Deletes a faction member and preps them for respawn

return_to_base

Returns faction members back to spawn or prepares them for respawn if deployed

set_attrition

Sets attrition for the team

set_faction_leader

Sets the faction leader