Difference between revisions of "Team configs"
From King Arthur's Gold Wiki
Splittingred (Talk | contribs) (Created page with "Team config files are CFG files that load specific settings for each team in KAG. They are usually named "team1.cfg" and "team2.cfg". An example team1.cfg might look like this: ...") |
Splittingred (Talk | contribs) |
||
Line 28: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | This gives the Blue Team a normal lives limit, sets the score limit for the team to 1, gives them some resources during the warmup period, and | + | This gives the Blue Team a normal lives limit, sets the score limit for the team to 1, and gives them some resources during the warmup period. |
+ | |||
+ | == Config Variables == | ||
+ | |||
+ | There are special configuration variables available to team config files. They are: | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Default Value | ||
+ | ! Description | ||
+ | |- | ||
+ | | name | ||
+ | | string | ||
+ | | "Default team" | ||
+ | | Team name to be shown on scoreboard, team swap menu, and displayed after match is won. | ||
+ | |- | ||
+ | | classes | ||
+ | | string ARRAY | ||
+ | | | ||
+ | | References to location of class configuration files (.cfg), delimited by semi-colon ';'. | ||
+ | |- | ||
+ | | emblem | ||
+ | | string | ||
+ | | | ||
+ | | Reference to location of image to be associated with team (.png) | ||
+ | |- | ||
+ | | teamcolor | ||
+ | | Color | ||
+ | | | ||
+ | | RGB Value that defines the color of team. Affects player character sprites and scoreboard colors. | ||
+ | |- | ||
+ | | unit_count | ||
+ | | f32 | ||
+ | | | ||
+ | | Amount of units (lives/respawns) for team. Value is multiplied by amount of players. 0 = no respawns, -1 = unlimited respawns. | ||
+ | |- | ||
+ | | score_limit | ||
+ | | u16 | ||
+ | | 1 | ||
+ | | Number of times the enemy flag has to be captured to win. | ||
+ | |- | ||
+ | | stone_warmup | ||
+ | | int | ||
+ | | 0 | ||
+ | | Size of stone pile by tent when a new match begins. Slowly depletes. | ||
+ | |- | ||
+ | | wood_warmup | ||
+ | | int | ||
+ | | 0 | ||
+ | | Size of wood pile by tent when a new match begins. Slowly depletes. | ||
+ | |- | ||
+ | | gold_warmup | ||
+ | | int | ||
+ | | 0 | ||
+ | | Size of gold pile by tent when a new match begins. Slowly depletes. | ||
+ | |- | ||
+ | | arrows_warmup | ||
+ | | int | ||
+ | | 0 | ||
+ | | Size of arrow pile by tent when a new match begins. Slowly depletes. | ||
+ | |- | ||
+ | | bombs_warmup | ||
+ | | int | ||
+ | | 0 | ||
+ | | Size of bomb pile by tent when a new match begins. Slowly depletes. | ||
+ | |- | ||
+ | | stone_amount | ||
+ | | int | ||
+ | | 100 | ||
+ | | Amount of stone a player may take from the warmup-pile at one time. | ||
+ | |- | ||
+ | | wood_amount | ||
+ | | int | ||
+ | | 200 | ||
+ | | Amount of wood a player may take from the warmup-pile at one time. | ||
+ | |- | ||
+ | | gold_amount | ||
+ | | int | ||
+ | | 50 | ||
+ | | Amount of gold a player may take from the warmup-pile at one time. | ||
+ | |- | ||
+ | | arrows_amount | ||
+ | | int | ||
+ | | 25 | ||
+ | | Amount of arrows a player may take from the warmup-pile at one time. | ||
+ | |- | ||
+ | | bombs_amount | ||
+ | | int | ||
+ | | 1 | ||
+ | | Amount of bombs a player may take from the warmup-pile at one time. |
Revision as of 15:16, 8 January 2013
Team config files are CFG files that load specific settings for each team in KAG. They are usually named "team1.cfg" and "team2.cfg".
An example team1.cfg might look like this:
classes = Rules/CTF/builder.cfg; Rules/CTF/knight.cfg; Rules/CTF/archer.cfg name = Blue Team emblem = GUI/emblem1.png teamcolor = 29; 133; 171 unit_count = 6 # units in team = unit_count * number of players; 0 one life; -1 unlimited score_limit = 1 # score_limit; 0 no limit spawn_type = 0 stone_warmup = 1500 wood_warmup = 2500 gold_warmup = 100 arrows_warmup = 500 bombs_warmup = 0 stone_amount = 150 wood_amount = 250 gold_amount = 10 arrows_amount = 40 bombs_amount = 0
This gives the Blue Team a normal lives limit, sets the score limit for the team to 1, and gives them some resources during the warmup period.
Config Variables
There are special configuration variables available to team config files. They are:
Name | Type | Default Value | Description |
---|---|---|---|
name | string | "Default team" | Team name to be shown on scoreboard, team swap menu, and displayed after match is won. |
classes | string ARRAY | References to location of class configuration files (.cfg), delimited by semi-colon ';'. | |
emblem | string | Reference to location of image to be associated with team (.png) | |
teamcolor | Color | RGB Value that defines the color of team. Affects player character sprites and scoreboard colors. | |
unit_count | f32 | Amount of units (lives/respawns) for team. Value is multiplied by amount of players. 0 = no respawns, -1 = unlimited respawns. | |
score_limit | u16 | 1 | Number of times the enemy flag has to be captured to win. |
stone_warmup | int | 0 | Size of stone pile by tent when a new match begins. Slowly depletes. |
wood_warmup | int | 0 | Size of wood pile by tent when a new match begins. Slowly depletes. |
gold_warmup | int | 0 | Size of gold pile by tent when a new match begins. Slowly depletes. |
arrows_warmup | int | 0 | Size of arrow pile by tent when a new match begins. Slowly depletes. |
bombs_warmup | int | 0 | Size of bomb pile by tent when a new match begins. Slowly depletes. |
stone_amount | int | 100 | Amount of stone a player may take from the warmup-pile at one time. |
wood_amount | int | 200 | Amount of wood a player may take from the warmup-pile at one time. |
gold_amount | int | 50 | Amount of gold a player may take from the warmup-pile at one time. |
arrows_amount | int | 25 | Amount of arrows a player may take from the warmup-pile at one time. |
bombs_amount | int | 1 | Amount of bombs a player may take from the warmup-pile at one time. |