
(((unitBasics: This section is specifically for what most ships have in common (also contains buildings templates) This is the biggest set of the core files, because most if not all main units you'll be playing and encountering have these in them, including ways to monitor statuses, visuals, shields, faction tags etc.)))

Note: Some are incomplete or awaiting further features to be included, while others are ready to go as is. 
_____________________________________________________
_____________________________________________________
detectionReceiver.template
_____________________________________________________
_____________________________________________________


###########################
###########################
###########################
###########################
#All actions for units are stored here, regardless
#of faction or ship type. Buildings do not inherit
###########################
###########################
###########################
###########################

[hiddenAction_overencumbered]
autoTriggerOnEvent: leftTransport
requireConditional: if self.resource.weight_c > self.resource.weight_m
showQuickWarLogToPlayer: Your ship is overencumbered, please remove a module. Your ship cannot leave until it is light enough
clearAllWaypoints: true
addWaypoint_prepend: true
addWaypoint_type: loadInto
addWaypoint_target_nearestUnit_team: own
addWaypoint_target_nearestUnit_tagged: refit

[hiddenAction_notencumbered]
autoTriggerOnEvent: leftTransport
requireConditional: if self.resource.weight_c <= self.resource.weight_m
resetUnitStats: true

#[hiddenAction_overencumbered2]
#autoTrigger: if self.resource.weight_c > self.resource.weight_m and memory.overencumberedTimer > 5 and self.hasParent(withTag='refit')
#setUnitMemory: overencumberedTimer = 0, encumberedStatus = 1
#showQuickWarLogToPlayer: Your ship is overencumbered, please remove a module
#setUnitStats: moveSpeed=0.01
#[hiddenAction_unencumbered1]
#autoTrigger: if self.resource.weight_c <= self.resource.weight_m and memory.encumberedStatus==1
#setUnitMemory: overencumberedTimer = 0, encumberedStatus = 0
#showQuickWarLogToPlayer: Your ship is no longer too heavy
#resetUnitStats: true

[turret_proximity]
x: 0
y: 0
canShoot: false
image: ROOT:drawable\null.png
interceptProjectiles_withTags: primary
interceptProjectiles_andUnderDistance: 15
projectile: proximity
canOnlyAttackUnitsWithTags: primary

[projectile_proximity]
image: ROOT:drawable\effects\explosions\orangepulse.png
directDamage: 0
life: 250
instant: true
interceptProjectile_removeTargetLifeOnly: true
explodeEffect: NONE
explodeEffectOnShield: NONE

tags: proximity

[action_hp]
pos: 0
text: Durability:%{self.resource.hp}/${DURA}
displayType: infoOnlyNoBox
addResources:  1

[action_shields]
pos: 0
text: Shields:%{self.resource.shield}/${SHIELD}
displayType: infoOnlyNoBox
addResources:  1

[action_ap]
pos: 0
text: AP: %{self.resource.ap_c} / %{self.resource.ap_m}
displayType: infoOnlyNoBox
addResources:  1



[hiddenAction_updateUnitMemory_overencumberedTimer]
autoTrigger: true
setUnitMemory: overencumberedTimer = (memory.overencumberedTimer + 1)

[graphics]
reclaimEffect: NONE
reclaimEffectAtTarget:  NONE


[movement]
joinsGroupFormations: true
targetHeight: 1
targetHeightDrift: 1
heightChangeRate: 2

[action_summon_effigy]
text: Summon Effigy
description: Summons an Effigy from Temple of Reality in order to communicate with it
isVisible: if numberOfUnitsInNeutralTeam(withTag='temple', withinRange=100, greaterThan=0)
temporarilyAddTags: talk_effigy

[template_escapeVelocity]
isLocked: if not self.isMoving()
buildSpeed: 4s
text: ESCAPE VELOCITY
#setUnitStats: moveSpeed+=600, maxTurnSpeed-= 5
addResources: setFlag=12
resetCustomTimer: true

[hiddenAction_undo]
autoTrigger: if self.customTimer(laterThanSeconds=1) and self.hasFlag(id=12)
addResources: unsetFlag=12
resetCustomTimer: true
#setUnitStats: moveSpeed-=622, maxTurnSpeed+= 5

[action_escape_gas]
isVisible: if numberOfUnitsInNeutralTeam(withTag='gas', withinRange=1000, greaterThan=0)
@copyFromSection: template_escapeVelocity

[hiddenAction_drag1]
autoTrigger: if self.hasFlag(id=12)
fireTurretXAtGround: 1
fireTurretXAtGround_withOffset: 0, 40
fireTurretXAtGround_count: 1

[turret_1]
x: 0
y: 0
canShoot: false
projectile: 1

[projectile_1]
areaDamage: 0
targetGround: true
#mutatorX_ifUnitWithTags: idle
#mutatorX_areaDamageMultiplier: 0.1
life: 3s
speed: 1.25
drawSize: 0.2
explodeOnEndOfLife: true
areaRadius: 50
areaExpandTime: 5
pushForce: -25
pushVelocity: -25
friendlyFire: true
#pushVelocity: -1
#image: warp.png
explodeEffect: NONE
#, CUSTOM:hole2
#largeHitEffect: true



##################
#### Mirage trade list ####
##################
[resource_blueprint_scowl]
displayName: Scowl Missile Codex
[template_mirage]
isVisible: if numberOfUnitsInNeutralTeam(withTag='mirage', greaterThan=0, withinRange=250)
showQuickWarLogToPlayer: Veni'Zu: Thank you for your business!
[template_blueprint]
isVisible: if self.tags(includes='factory')
showQuickWarLogToPlayer: FACTS!!!
[hiddenAction_log_codex]
showQuickWarLogToPlayer: Docking and downloading blueprint codex...
addWaypoint_type: loadInto
addWaypoint_target_nearestUnit_tagged: mirage
addWaypoint_target_nearestUnit_team: neutral
[hiddenAction_log_transfer]
showQuickWarLogToPlayer: Docking and transferring item...
addWaypoint_type: loadInto
addWaypoint_target_nearestUnit_tagged: mirage
addWaypoint_target_nearestUnit_team: neutral
[hiddenAction_log_combine]
showQuickWarLogToPlayer: Combining blueprint codex....
[action_buy_scowl_item]
buildSpeed: 5s
@define name: Scowl Missile
@copyFromSection: template_mirage
text: ${name}
description: Buy a ${name} module?\nPrebuilt <Item> can be reused\n\n-- A Cerberus Empire creation\n-- It has slow movement speed, slow turn rate and low AoE\n-- It however drains little AP and costs relatively low weight to equip\n < Carrying: %{self.resource.item_scowl} >
iconImage: ROOT:drawable\null.png
iconExtraImage: ROOT:drawable\icons\item.png
addResources: item_scowl=1
price: ylithium=25
playSoundToPlayer: ROOT:audio\sounds\buy.wav
whenBuilding_triggerAction: log_transfer
[action_sell_scowl_item]
buildSpeed: 5s
@define name: Scowl Missile
isLocked: if self.resource.item_scowl == 0
isLockedMessage: You don't have any ${name} to sell...
@copyFromSection: template_mirage
text: Sell ${name}
description: Sell a ${name}?\n < Carrying: %{self.resource.item_scowl} >
iconImage: ROOT:drawable\null.png
iconExtraImage: ROOT:drawable\icons\sell.png
addResources: item_scowl=1
price: item_scowl=1
addResources: ylithium=15
playSoundToPlayer: ROOT:audio\sounds\buy.wav
whenBuilding_triggerAction: log_transfer
[action_buy_scowl_blueprint]
buildSpeed: 5s
@define name: Scowl Missile
@copyFromSection: template_mirage
isLocked: if self.globalTeamTags(includes='blueprint_item_scowl')
isLockedMessage: You already have the ${name} researched!
text: Scowl (BP)
description: Buy a blueprint codex fragment for the ${name}?\nCompleting the codex allows you to build your own ${name}s in factories\n\n-- A Cerberus Empire creation\n-- It has slow movement speed, slow turn rate and low AoE\n-- It however drains little AP and costs relatively low weight to equip\n-- This blueprint requires 8:  < Carrying: %{self.resource.blueprint_scowl}/8 >
iconImage: ROOT:drawable\null.png
iconExtraImage: ROOT:drawable\icons\blueprint.png
addResources: blueprint_scowl=1
price: ylithium=10
playSoundToPlayer: ROOT:audio\sounds\buy.wav
whenBuilding_triggerAction: log_codex


[action_craft_scowl_blueprint]
@copyFromSection: template_blueprint
buildSpeed: 5s
@define name: Scowl Missile
text:
description: Combining the codex for the ${name}will allow you to permanently build them from factories\n\n-- A Cerberus Empire creation\n-- It has slow movement speed, slow turn rate and low AoE\n-- It however drains little AP and costs relatively low weight to equip\n-- This blueprint requires 8:  < Carrying: %{self.resource.blueprint_scowl}/8 >
iconImage: ROOT:drawable\null.png
iconExtraImage: ROOT:drawable\icons\combine.png
isLocked: if self.globalTeamTags(includes='blueprint_item_scowl')
isLockedMessage: You already have the ${name} researched!
price: blueprint_scowl=8
addGlobalTeamTags: blueprint_item_scowl
playSoundToPlayer: ROOT:audio\sounds\craft.wav
showMessageToPlayer: ${name} blueprint codex completed!
whenBuilding_triggerAction: log_combine
displayType: infoOnlyNoBox
#unitShownInUI: buttonBackground





[core]
@memory overencumberedTimer: float
@memory encumberedStatus: float

energyMax: 10
maxShield: 10
#canReclaimResources: true
#canReclaimResourcesNextSearchRange: 600
soundOnNewSelection: ROOT:audio\sounds\selectShip.ogg
#canOnlyBeAttackedByUnitsWithTags: player
resourceReclaimMultiplier: 0
autoTriggerCooldownTime: 60
autoTriggerCooldownTime_allowDangerousHighCPU: true

@memory rotationSave: float
@memory dirBetweenMovement: float
@memory relativeDir: float
@memory rotationLock: string
@memory speedMultiplier: float
@memory normalizedDir: float

@memory actionTimer: float
updateUnitMemory: """
actionTimer = memory.actionTimer + 1
"""


[hiddenAction_actionLockInit]
autoTriggerOnEvent: created
setUnitMemory: rotationLock = "disabled"

[action_RotationEnable]
isVisible: if memory.rotationLock == "disabled"
buildSpeed: 0s
text: Enable RotLock
setUnitMemory: rotationSave = ${TURNSPEED}, rotationLock = "enabled"
setUnitStats: maxTurnSpeed = 0

[action_RotationDisable]
isVisible: if memory.rotationLock == "enabled"
buildSpeed: 0s
text: Disable RotLock
setUnitStats: maxTurnSpeed = memory.rotationSave, moveSpeed = ${MOVESPEED}
setUnitMemory: rotationLock = "disabled"


[action_RotationUpdate]
displayType: infoOnlyNoBox
buildSpeed: 0s
text: Speed:%{self.speed}
autoTrigger: if memory.rotationLock == "enabled"
setUnitMemory: """
    dirBetweenMovement = directionBetween(self, activeWaypointTarget),
    relativeDir = ((memory.dirBetweenMovement - memory.dirIs + 180) % 360) - 180,
    normalizedDir = select(memory.relativeDir < -180, memory.relativeDir + 360, select(memory.relativeDir > 180, memory.relativeDir - 360, memory.relativeDir)),
    speedMultiplier = select(memory.normalizedDir >= -45 and memory.normalizedDir <= 45, 1.0, 
        select((memory.normalizedDir > 45 and memory.normalizedDir <= 90) or (memory.normalizedDir < -45 and memory.normalizedDir >= -90), 0.75, 
        select((memory.normalizedDir > 90 and memory.normalizedDir <= 135) or (memory.normalizedDir < -90 and memory.normalizedDir >= -135), 0.5, 0.25)))
"""


#setUnitMemory: """
#    dirBetweenMovement = directionBetween(self, activeWaypointTarget),
#    relativeDir = ((memory.dirBetweenMovement - memory.dirIs + 180) % 360) - 180,
#    normalizedDir = select(memory.relativeDir < -180, memory.relativeDir + 360, select(memory.relativeDir > 180, memory.relativeDir - 360, memory.relativeDir)),
#    speedMultiplier = select(abs(memory.normalizedDir) <= 45, 1.0, select(abs(memory.normalizedDir) <= 90, 0.5, select(abs(memory.normalizedDir) <= 135, 0.5, 0.25)))
#"""
setUnitStats: moveSpeed = ${MOVESPEED} * memory.speedMultiplier

#[action_RotationUpdate]
#text: sp:%{self.speed} __ selfDir:%{memory.selfDir} __ mul:%{memory.speedMultiplier}
#autoTrigger: if memory.rotationLock == "enabled"
#setUnitMemory: """
#    selfDir = (self.dir + 180),
#    dirBetweenMovement = memory.selfDir - directionBetween(self, activeWaypointTarget)
#"""
##    dirBetweenMovement = ((directionBetween(self, activeWaypointTarget) + 180) % 360) - 180,
##    speedMultiplier = select(abs(memory.relativeDir) <= 45, 1.0, select(abs(memory.relativeDir) <= 90, 0.75, select(abs(memory.relativeDir) <= 135, 0.5, 0.25)))
##    relativeDir = ((memory.dirBetweenMovement - memory.dirIs + 180) % 360) - 180,
#
#setUnitStats: moveSpeed = ${MOVESPEED} * memory.speedMultiplier






[hiddenAction_setAsMiner]
#requireConditional: if not self.numberOfUnitsInNeutralTeam(withinRange=100, withTag='resource', greaterThan=0)
autoTrigger: if self.isControlledByAI() and self.numberOfAttachedUnits(withTag='miner_basic', greaterThan=0) and memory.actionTimer > 2
setCustomTarget1: globalSearchForFirstUnit(withTag='CC', relation='own').readUnitMemory('currentPriorityResource', type='unit')
addWaypoint_target_fromReference: customTarget1
addWaypoint_type: touchTarget
addWaypoint_prepend: true
addWaypoint_target_mapMustBeReachable: false
setUnitMemory: actionTimer = 0
clearAllWaypoints: true

_____________________________________________________
_____________________________________________________
ai.template
_____________________________________________________
_____________________________________________________

[core]

#### Variables  		####
@memory distance: float
@memory maxRange: float
@memory idealRange: float

#### AI Control 		####
@global patternTimer: 10
@memory priority: string

@memory aiBoolean: float
@memory attackPattern: float
@memory attackPatternTimer: float
@memory binary: string

[action_turnOn_scowl]
autoTrigger: if self.numberOfAttachedUnits(withTag='scowl', greaterThan=1)
#isVisible: false
text: On
setUnitMemory: binary= "on"
[action_turnOff]
#isVisible: false
text: Off
setUnitMemory: binary= "off"

[hiddenAction_updateUnitMemory_attackPattern]
autoTrigger: true
setUnitMemory: attackPatternTimer = (memory.attackPatternTimer + 1)

#########
############
###############
##################
### Measurements 		###
##################
###############
############
#########


[hiddenAction_debug_GetDistances]
autoTrigger: if self.customTimer(laterThanSeconds=0)
alsoTriggerAction: debug_set_idealRange, debug_set_maxRange, debug_set_distance

[hiddenAction_debug_set_distance]
setUnitMemory: distance = distanceBetween(self, nearestUnit(relation='enemy', withTag='module', withinRange=1500))
[hiddenAction_debug_set_maxRange]
setUnitMemory: maxRange = memory.rangeaverage * 100
[hiddenAction_debug_set_idealRange]
setUnitMemory: idealRange =  memory.maxRange - memory.maxRange * 0.1

[hiddenAction_AI_attackPattern_0]
autoTrigger: if memory.attackPatternTimer > ${patternTimer} and memory.attackPattern == 0
setUnitMemory: attackPattern = 1, attackPatternTimer = 0

[hiddenAction_AI_attackPattern_1]
autoTrigger: if memory.attackPatternTimer > ${patternTimer} and memory.attackPattern == 1
setUnitMemory: attackPattern = 1, attackPatternTimer = 0




[template_orbit]
clearAllWaypoints: true
addWaypoint_type: move
addWaypoint_prepend: true
setCustomTarget1: nearestUnit(withTag='citadel', relation='own', withinRange=1500)
addWaypoint_target_fromReference: """createMarker(
  x=customTarget1.x+cos(directionBetween(customTarget1,self)+${dirOffset})*memory.maxRange,
  y=customTarget1.y+sin(directionBetween(customTarget1,self)+${dirOffset})*memory.maxRange
)
"""
[hiddenAction_orbit_Normal]
requireConditional: if memory.binary == "on" and numberOfUnitsInEnemyTeam(lessThan=1, withinRange=1000, withTag='ship')
@define dirOffset: -45
@define distOffset: 250
@copyFromSection: template_orbit
setUnitMemory: priority = "defend"

#requireConditional: if self.isControlledByAI() and not self.tags(includes='command')
autoTrigger: false
#if not self.hasActiveWaypoint(type='attackMove')

# numberOfUnitsInEnemyTeam(lessThan=1, withinRange=1000) or numberOfUnitsInTeam(withTag='command', lessThan=1)

#[hiddenAction_orbit_Command_Admiral]
#buildSpeed: 0s
#text: ADMIRAL
#autoTrigger: if memory.distance == 0
#requireConditional: if self.isControlledByAI() and self.tags(includes='command')
#clearAllWaypoints: true
#addWaypoint_type: guard
#addWaypoint_prepend: true
#addWaypoint_target_nearestUnit_team: own
#addWaypoint_target_nearestUnit_tagged: citadel
#[hiddenAction_orbit_Command_Standard]
#@define dirOffset: -45
#@define distOffset: 250
#@copyFromSection: template_orbit
#requireConditional: if self.isControlledByAI() and not self.tags(includes='command')
#autoTrigger: if numberOfUnitsInTeam(withTag='command', greaterThan=0) and self.isControlledByAI() 
#setCustomTarget1: nearestUnit(withTag='command', relation='own')

## Aggro


[hiddenAction_aggro_closer]
requireConditional: if memory.binary == "on" and numberOfUnitsInEnemyTeam(greaterThan=0, withTag='ship')
autoTrigger: false 
#if memory.distance >= memory.idealRange and numberOfUnitsInEnemyTeam(greaterThan=0, withTag='ship')
clearAllWaypoints: true
addWaypoint_type: attackMove
addWaypoint_prepend: true
addWaypoint_target_nearestUnit_team: enemy
addWaypoint_target_nearestUnit_tagged: ship



[template_aggro]
requireConditional: if self.hasActiveWaypoint(type='attackMove') and numberOfUnitsInEnemyTeam(greaterThan=0, withTag='ship', withinRange=450)
# and memory.binary == "on"
autoTrigger: false
#if memory.distance < memory.idealRange
# and memory.attackPattern == ${pattern}
clearAllWaypoints: true
addWaypoint_type: attackMove
addWaypoint_prepend: false
#setUnitMemory: priority = "attack"
setCustomTarget1: nearestUnit(withTag='ship', relation='enemy')
addWaypoint_target_fromReference: """createMarker(
  x=customTarget1.x+cos(directionBetween(customTarget1,self)+${dirOffset})*memory.idealRange,
  y=customTarget1.y+sin(directionBetween(customTarget1,self)+${dirOffset})*memory.idealRange
)
"""


[hiddenAction_aggro_STRAFE_1]
  @copyFromSection: template_aggro
  @define pattern: 0
  @define dirOffset: 15

_____________________________________________________
_____________________________________________________
analysis.template
_____________________________________________________
_____________________________________________________
#   #   #   #   #   #   #   #   #   #   #   

#   #   #   #   #   #   #   #   #   #   #   

#   #   #   #   #   #   #   #   #   #   #   

# Status Condition 1 = Stasis

# Status Condition 2 = Antishield

# Status Condition 3 = Exhausted

# Status Condition 4 = Break

# Status Condition 5 = Dampened

# Status Condition 6 = Voidemic

#   #   #   #   #   #   #   #   #   #   #   

#   #   #   #   #   #   #   #   #   #   #   

#   #   #   #   #   #   #   #   #   #   #   

[template_addStatus]
isVisible: false
requireConditional: if memory.activeCounter[${index}] < ${timer / 2}
autoTrigger: if not self.tags(includes='${status}') and numberOfUnitsInEnemyTeam(withTag='${status}Invoke', withinRange=60, greaterThan=0)
pos: -666
text: Add Status: ${status}
setUnitMemory: status[9] = ${index}, stack[9] = ${timer}, timeout[9] = ${timer}, active[9] = true, activeCounter[${index}] = ${timer}
buildSpeed: 0s
temporarilyAddTags: ${status}

[action_addStatus_stasis]
@define timer: 8
@define index: 1
@copyFromSection: template_addStatus
@define status: stasis

[action_addStatus_antishield]
@define timer: 8
@define index: 2
@copyFromSection: template_addStatus
@define status: antishield

[action_addStatus_exhausted]
@define timer: 8
@define index: 3
@copyFromSection: template_addStatus
@define status: exhausted

[action_addStatus_break]
@define timer: 12
@define index: 4
@copyFromSection: template_addStatus
@define status: break

[action_addStatus_dampened]
@define timer: 10
@define index: 5
@copyFromSection: template_addStatus
@define status: dampened

[action_addStatus_voidemic]
@define timer: 8
@define index: 6
@copyFromSection: template_addStatus
@define status: voidemic

[template_activeCounter]
autoTrigger: if memory.activeCounter[${index}] > 0
setUnitMemory: """
activeCounter[${index}] = memory.activeCounter[${index}] - 1
"""
[hiddenAction_activeCounter_1]
@copyFromSection: template_activeCounter
@define index:1 
[hiddenAction_activeCounter_2]
@copyFromSection: template_activeCounter
@define index:2 
[hiddenAction_activeCounter_3]
@copyFromSection: template_activeCounter
@define index:3 
[hiddenAction_activeCounter_4]
@copyFromSection: template_activeCounter
@define index:4 
[hiddenAction_activeCounter_5]
@copyFromSection: template_activeCounter
@define index:5 
[hiddenAction_activeCounter_6]
@copyFromSection: template_activeCounter
@define index:6

[template_removeStatus]
autoTrigger: if memory.activeCounter[${index}] == 0
temporarilyRemoveTags: ${status}
[hiddenAction_removeStatus_1]
@copyFromSection: template_removeStatus
@define index:1 
@define status: stasis
[hiddenAction_removeStatus_2]
@copyFromSection: template_removeStatus
@define index:2 
@define status: antishield
[hiddenAction_removeStatus_3]
@copyFromSection: template_removeStatus
@define index:3 
@define status: exhausted
[hiddenAction_removeStatus_4]
@copyFromSection: template_removeStatus
@define index:4 
@define status: break
[hiddenAction_removeStatus_5]
@copyFromSection: template_removeStatus
@define index:5 
@define status: dampened
[hiddenAction_removeStatus_6]
@copyFromSection: template_removeStatus
@define index:6
@define status: voidemic


[template_remStatus]
isVisible: false
autoTrigger: if self.tags(includes='${status}') and memory.activeCounter[${index}] == 0
pos: -666
text: Remove Status: ${status}
buildSpeed: 0s
temporarilyRemoveTags: ${status}
[action_addStatus_stasis]
@define index: 1
@copyFromSection: template_addStatus
@define status: stasis
[action_addStatus_antishield]
@define index: 2
@copyFromSection: template_addStatus
@define status: antishield
[action_addStatus_exhausted]
@define index: 3
@copyFromSection: template_addStatus
@define status: exhausted
[action_addStatus_break]
@define index: 4
@copyFromSection: template_addStatus
@define status: break
[action_addStatus_dampened]
@define index: 5
@copyFromSection: template_addStatus
@define status: dampened
[action_addStatus_voidemic]
@define index: 6
@copyFromSection: template_addStatus
@define status: voidemic

[core]
@memory status: float[]
@memory stack: float[]
@memory timeout: float[]
@memory choose: float
@memory index: float
@memory active: bool[]
@memory activeCounter: float[]

[template_choose]
pos: 0
buildSpeed: 0s
isVisible: false
#if memory.choose == ${number}
text: Choose Type: ${type} 
setUnitMemory: choose= ${number} + 1
[action_choose_1]
@define number: 1
@define type: Status
@copyFromSection: template_choose
[action_choose_2]
@define number: 2
@define type: Stack
@copyFromSection: template_choose
[action_choose_3]
@define number: 3
@define type: timeout
@copyFromSection: template_choose
setUnitMemory: choose=1


[template_index]
pos: 0
buildSpeed: 0s
isVisible: false
#if memory.index == ${number}
text: Index Change: ${number}
setUnitMemory: index= ${number} + 1
[action_index_1]
@define number: 1
@define type: Status
@copyFromSection: template_index
[action_index_2]
@define number: 2
@define type: Stack
@copyFromSection: template_index
[action_index_3]
@define number: 3
@define type: timeout
@copyFromSection: template_index
[action_index_4]
@define number: 4
@define type: timeout
@copyFromSection: template_index
[action_index_5]
@define number: 5
@define type: Status
@copyFromSection: template_index
[action_index_6]
@define number: 6
@define type: Stack
@copyFromSection: template_index
[action_index_7]
@define number: 7
@define type: timeout
@copyFromSection: template_index
[action_index_8]
@define number: 8
@define type: timeout
@copyFromSection: template_index
[action_index_9]
@define number: 9
@define type: timeout
@copyFromSection: template_index
setUnitMemory: index=1


[template_display]
isVisible: false
pos: 1
buildSpeed: 0s
text: ${type} #
description: ${type}:\n%{memory.${type}[1]}\n%{memory.${type}[2]}\n%{memory.${type}[3]}\n%{memory.${type}[4]}\n%{memory.${type}[5]}\n%{memory.${type}[6]}\n%{memory.${type}[7]}\n%{memory.${type}[8]}\n%{memory.${type}[7]}\n%{memory.${type}[9]}
addResources: 1
[action_display_1]
@define type: status
@copyFromSection: template_display
[action_display_2]
@define type: stack
@copyFromSection: template_display
[action_display_3]
@define type: timeout
@copyFromSection: template_display
[action_display_4]
@define type: active
@copyFromSection: template_display
[action_display_5]
@define type: activeCounter
@copyFromSection: template_display


[template_update]
pos: 1
buildSpeed: 0s
text: Update ${type}
isVisible: false
#if memory.choose == ${number}
setUnitMemory: ${type}[memory.index] = memory.${type}[memory.index] + 1 
[action_update_1]
@define number: 1
@define type: status
@copyFromSection: template_update
[action_update_2]
@define number: 2
@define type: stack
@copyFromSection: template_update
[action_update_3]
@define number: 3
@define type: timeout
@copyFromSection: template_update


[template_reset]
isVisible: false
buildSpeed: 0s
text: Reset ${type}
pos: 1
autoTrigger: if memory.${type}[memory.index] > 8
setUnitMemory: ${type}[memory.index] = 0
[action_reset_1]
@define number: 1
@define type: status
@copyFromSection: template_reset
[action_reset_2]
@define number: 2
@define type: stack
@copyFromSection: template_reset
[action_reset_4]
autoTrigger: false
@define number: 4
@define type: active
@copyFromSection: template_reset
setUnitMemory: ${type}[memory.index] = false

[template_null]
isVisible: false
pos: ${number}
displayType: infoOnlyNoBox
addResources: 1
[action_null_1]
@define number: 4.1
@copyFromSection: template_null
[action_null_2]
@define number: 4.2
@copyFromSection: template_null
[action_null_3]
@define number: 4.3
@copyFromSection: template_null
[action_null_4]
@define number: 4.4
@copyFromSection: template_null

[template_sourceIndex]
isVisible: false
pos: 4.5
buildSpeed: 0s
text: Source Index ${index}:  %{memory.status[${index}]} 
addResources: 1
[action_sourceIndex_1]
@define index: 1
@copyFromSection: template_sourceIndex
[action_sourceIndex_2]
@define index: 2
@copyFromSection: template_sourceIndex
[action_sourceIndex_3]
@define index: 3
@copyFromSection: template_sourceIndex
[action_sourceIndex_4]
@define index: 4
@copyFromSection: template_sourceIndex
[action_sourceIndex_5]
@define index: 5
@copyFromSection: template_sourceIndex
[action_sourceIndex_6]
@define index: 6
@copyFromSection: template_sourceIndex
[action_sourceIndex_7]
@define index: 7
@copyFromSection: template_sourceIndex
[action_sourceIndex_8]
@define index: 8
@copyFromSection: template_sourceIndex
[action_sourceIndex_9]
@define index: 9
@copyFromSection: template_sourceIndex

[template_cull]
autoTrigger: if memory.active[${index}] == false
setUnitMemory: """
status[${index}] = memory.status[(${index} + 1)],
stack[${index}] = memory.stack[(${index} + 1)],
timeout[${index}] = memory.timeout[(${index} + 1)],
active[${index}] = memory.active[(${index} + 1)]
"""
[hiddenAction_cull_0]
@define index: 0
@copyFromSection: template_cull
alsoTriggerAction: cull_1
[hiddenAction_cull_1]
@define index: 1
@copyFromSection: template_cull
alsoTriggerAction: cull_2
[hiddenAction_cull_2]
@define index: 2
@copyFromSection: template_cull
alsoTriggerAction: cull_3
[hiddenAction_cull_3]
@define index: 3
@copyFromSection: template_cull
alsoTriggerAction: cull_4
[hiddenAction_cull_4]
@define index: 4
@copyFromSection: template_cull
alsoTriggerAction: cull_5
[hiddenAction_cull_5]
@define index: 5
@copyFromSection: template_cull
alsoTriggerAction: cull_6
[hiddenAction_cull_6]
@define index: 6
@copyFromSection: template_cull
alsoTriggerAction: cull_7
[hiddenAction_cull_7]
@define index: 7
@copyFromSection: template_cull
alsoTriggerAction: cull_8
[hiddenAction_cull_8]
@define index: 8
@copyFromSection: template_cull
alsoTriggerAction: cull_9
[hiddenAction_cull_9]
@define index: 9
@copyFromSection: template_cull

[template_deplete]
requireConditional:  if memory.timeout[${index}] == 0 
autoTrigger: if memory.timeout[${index}] == 0 
setUnitMemory: active[${index}] = false
[hiddenAction_deplete_1]
@define index: 1
@copyFromSection: template_deplete
alsoTriggerAction: deplete_2
[hiddenAction_deplete_2]
@define index: 2
@copyFromSection: template_deplete
alsoTriggerAction: deplete_3
[hiddenAction_deplete_3]
@define index: 3
@copyFromSection: template_deplete
alsoTriggerAction: deplete_4
[hiddenAction_deplete_4]
@define index: 4
@copyFromSection: template_deplete
alsoTriggerAction: deplete_5
[hiddenAction_deplete_5]
@define index: 5
@copyFromSection: template_deplete
alsoTriggerAction: deplete_6
[hiddenAction_deplete_6]
@define index: 6
@copyFromSection: template_deplete
alsoTriggerAction: deplete_7
[hiddenAction_deplete_7]
@define index: 7
@copyFromSection: template_deplete
alsoTriggerAction: deplete_8
[hiddenAction_deplete_8]
@define index: 8
@copyFromSection: template_deplete
alsoTriggerAction: deplete_9
[hiddenAction_deplete_9]
@define index: 9
@copyFromSection: template_deplete


[template_timeout]
requireConditional: if memory.timeout[${index}] > 0
autoTrigger: if memory.timeout[${index}] > 0
setUnitMemory: """
timeout[${index}] = memory.timeout[${index}] - 1,
stack[${index}] = memory.timeout[${index}]
"""
[hiddenAction_timeout_1]
@define index: 1
@copyFromSection: template_timeout
[hiddenAction_timeout_2]
@define index: 2
@copyFromSection: template_timeout
[hiddenAction_timeout_3]
@define index: 3
@copyFromSection: template_timeout
[hiddenAction_timeout_4]
@define index: 4
@copyFromSection: template_timeout
[hiddenAction_timeout_5]
@define index: 5
@copyFromSection: template_timeout
[hiddenAction_timeout_6]
@define index: 6
@copyFromSection: template_timeout
[hiddenAction_timeout_7]
@define index: 7
@copyFromSection: template_timeout
[hiddenAction_timeout_8]
@define index: 8
@copyFromSection: template_timeout
[hiddenAction_timeout_9]
@define index: 9
@copyFromSection: template_timeout

# This is where the decals will go
###################################
# Decal Section for Status Condition Boxes
###################################

# Define a general box template that is reused by each individual decal


[hiddenAction_initializeStatus]
autoTriggerOnEvent: created
setUnitMemory: """
status[1] = 0,
status[2] = 0,
status[3] = 0,
status[4] = 0,
status[5] = 0,
status[6] = 0,
status[7] = 0,
status[8] = 0,
stack[1] = 0,
stack[2] = 0,
stack[3] = 0,
stack[4] = 0,
stack[5] = 0,
stack[6] = 0,
stack[7] = 0,
stack[8] = 0
"""
[template_underBox]
order: 665
onlyWhenSelectedByAnyPlayer: true
#isVisible: if memory.status[${index}] > 0
stack_indexStart: -20
stack_indexCount: memory.stack[${index}] + 1
alwaysStartDirAtZero: true
total_frames: 8
stack_hOffset: 2
imageStack: ROOT:drawable\status\sheet.png*10
frame: 0
xOffsetAbsolute: -60*${leftright} + (0*${index})
alpha: 1
[decal_underBox1]
@define leftright: 1
@define index: 1
@copyFromSection: template_underBox
yOffsetAbsolute: -30

[decal_underBox2]
@define leftright: 1
@define index: 2
@copyFromSection: template_underBox
yOffsetAbsolute: -10

[decal_underBox3]
@define leftright: 1
@define index: 3
@copyFromSection: template_underBox
yOffsetAbsolute: 10

[decal_underBox4]
@define leftright: 1
@define index: 4
@copyFromSection: template_underBox
yOffsetAbsolute: 30

[decal_underBox5]
@define leftright: -1
@define index: 5
@copyFromSection: template_underBox
yOffsetAbsolute: -30

[decal_underBox6]
@define leftright: -1
@define index: 6
@copyFromSection: template_underBox
yOffsetAbsolute: -10

[decal_underBox7]
@define leftright: -1
@define index: 7
@copyFromSection: template_underBox
yOffsetAbsolute: 10

[decal_underBox8]
@define leftright: -1
@define index: 8
@copyFromSection: template_underBox
yOffsetAbsolute: 30


[template_box]
order: 666
onlyWhenSelectedByAnyPlayer: true
#isVisible: if memory.status[${index}] > 0
stack_indexStart: -20
stack_indexCount: memory.stack[${index}] + 1
alwaysStartDirAtZero: true
total_frames: 8
stack_hOffset: 2
imageStack: ROOT:drawable\status\sheet.png*10
frame: memory.status[${index}]
xOffsetAbsolute: -60*${leftright} + (0*${index})
alpha: memory.stack[${index}]

[decal_conditionBox1]
@define leftright: 1
@define index: 1
@copyFromSection: template_box
yOffsetAbsolute: -30

[decal_conditionBox2]
@define leftright: 1
@define index: 2
@copyFromSection: template_box
yOffsetAbsolute: -10

[decal_conditionBox3]
@define leftright: 1
@define index: 3
@copyFromSection: template_box
yOffsetAbsolute: 10

[decal_conditionBox4]
@define leftright: 1
@define index: 4
@copyFromSection: template_box
yOffsetAbsolute: 30

[decal_conditionBox5]
@define leftright: -1
@define index: 5
@copyFromSection: template_box
yOffsetAbsolute: -30

[decal_conditionBox6]
@define leftright: -1
@define index: 6
@copyFromSection: template_box
yOffsetAbsolute: -10

[decal_conditionBox7]
@define leftright: -1
@define index: 7
@copyFromSection: template_box
yOffsetAbsolute: 10

[decal_conditionBox8]
@define leftright: -1
@define index: 8
@copyFromSection: template_box
yOffsetAbsolute: 30


###################################



[hiddenAction_initialize]
autoTriggerOnEvent: created
setUnitMemory: status[0]=0,status[1]=0,status[2]=0,status[3]=0, stack[0]=0,stack[1]=0,stack[2]=0,stack[3]=0,timeout[0]=0, timeout[1]=0, timeout[2]=0, timeout[3]=0, choose=1, index=1




#requireConditional: if memory.timeout[${index}] == 0


_____________________________________________________
_____________________________________________________
ap.template
_____________________________________________________
_____________________________________________________



##########################
###########################
###########################
###########################
#AP bar for ACTION POINTS
#Turns orange when low
###########################
###########################
###########################
###########################
###########################
#AP Bar
###########################

[core]
@memory apGen:float

[hiddenAction_apStat]
autoTrigger: true
addResourcesWithLogic: ap_c=memory.apGen

[hiddenAction_created_ap]
autoTriggerOnEvent: created
setResourcesWithLogic: ap_m=10, ap_c=10
alsoTriggerAction: update_APregen
[action_update_APregen]
isVisible: false
setUnitMemory: apGen = (self.resource.ap_m * 0.0625)

[action_apCap]
isVisible: false
text: apcap
autoTrigger: if self.resource.ap_m < self.resource.ap_c
setResourcesWithLogic: ap_c = self.resource.ap_m

[resource_ap_m]
displayName: ap Max
[resource_ap_c]
displayName: ap Current

[template_AP]
#isVisible: if self.tags(includes='small') 
yOffsetAbsolute: -${SIZE * 8}
alwaysStartDirAtZero: true
layer: beforeUI
#onlyWhenSelectedByOwnPlayer: true
alpha: 0.75

[decal_APicon]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_AP
xOffsetAbsolute: -32
order: 2
image: ROOT:\drawable\hud\action\AP.png

[decal_APbar]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_AP
order: 2
image: ROOT:\drawable\hud\action\abb.png

[decal_APfront]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_AP
order: 5
image: ROOT:\drawable\hud\action\abf.png

[decal_pipfull_AP]
# GREEN
isVisible: if self.resource.ap_c >= self.resource.ap_m / 2
@copyFromSection: template_AP
order: 3
image: ROOT:\drawable\hud\action\abPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.resource.ap_c/self.resource.ap_m*50 - 5

[decal_pipempty_AP]
# ORANGE
isVisible: if self.resource.ap_c <= self.resource.ap_m
@copyFromSection: template_AP
order: 2
image: ROOT:\drawable\hud\action\abPIP2.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.resource.ap_c/self.resource.ap_m*50

[decal_pipempty2_AP]
# RED
isVisible: if self.resource.ap_c <= self.resource.ap_m / 4
@copyFromSection: template_AP
order: 2
image: ROOT:\drawable\hud\action\abPIP4.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.resource.ap_c/self.resource.ap_m*50

[decal_piptrulyfull_AP]
# PURPLE
isVisible: if self.resource.ap_c >= (self.resource.ap_m - self.resource.ap_m / 4.5)
@copyFromSection: template_AP
order: 2
image: ROOT:\drawable\hud\action\abPIP3.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.resource.ap_c/self.resource.ap_m*50

[projectile_universal]
life: 200
areaDamage: 1
areaRadius: 11
mutator1_ifUnitWithTags: ship
mutator1_directDamageMultiplier: 0.25
mutator1_areaDamageMultiplier: 0.25
areaHitAirAndLandAtSameTime: true


###################################
# DEBUG SHIT
###################################

#[action_ap_c_Add]
#pos: 0
#buildSpeed: 0
#text: current ap Add
#addResources: ap_c=5
#[action_ap_c_Remove]
#pos: 0
#buildSpeed: 0
#text: current ap Remove
#addResources: ap_c=-5
#[action_ap_m_Add]
#pos: 0
#buildSpeed: 0
#text: max ap Add
#addResources: ap_m=1
#[action_ap_m_Remove]
#pos: 0
#buildSpeed: 0
#text: max ap Remove
#addResources: ap_m=-1

_____________________________________________________
_____________________________________________________
faction.template
_____________________________________________________
_____________________________________________________
[core]

#canOnlyBeAttackedByUnitsWithTags: null


##global basics##
############
############
[core]
isBuilder: true
buildSpeed: 0s
[attack]
canAttack: true
canAttackFlyingUnits: true
canAttackLandUnits:   true
canAttackUnderwaterUnits: false
showRangeUIGuide: false
isMelee: false

[graphics]
image_offsetH: 0
movementEffect: CUSTOM:shiptrail
movementEffectRate: 1
image: ROOT:drawable\ship_placeholder.png
icon_zoomed_out: ROOT:units\icon.png

[effect_shiptrail]
xOffsetRelative: 0
yOffsetRelative: 0
image: trail.png
life: 65
attachedToUnit: false 
drawUnderUnits: false
[movement]
movementType: LAND
moveSpeed: ${MOVESPEED}
moveAccelerationSpeed: ${MOVEACCEL}
moveDecelerationSpeed: ${MOVEDECEL}
maxTurnSpeed: ${TURNSPEED}
turnAcceleration: ${TURNACCEL}
moveSlidingMode: true
moveIgnoringBody: true
reverseSpeedPercentage: 0

################
################
################


[resource_cerberus]
displayName: cerberus

[hiddenAction_initialize_cerberus]
requireConditional: if self.tags(includes='cerberus')
autoTriggerOnEvent: created
addResources: cerberus=1
#showQuickWarLogToAllPlayers: Initialized: CERBERUS
#showQuickWarLogToAllPlayers: Initialized: CERBERUS

[resource_utopia]
displayName: utopia

[hiddenAction_initialize_utopia]
requireConditional: if self.tags(includes='utopia')
autoTriggerOnEvent: created
addResources: utopia=1
#showQuickWarLogToAllPlayers: Initialized: UTOPIA

[resource_omega]
displayName: omega

[hiddenAction_initialize_omega]
requireConditional: if self.tags(includes='omega')
autoTriggerOnEvent: created
addResources: omega=1
#showQuickWarLogToAllPlayers: Initialized faction: omega

[resource_parazyote]
displayName: parazyote

[hiddenAction_initialize_parazyote]
requireConditional: if self.tags(includes='parazyote')
autoTriggerOnEvent: created
addResources: parazyote=1
#showQuickWarLogToAllPlayers: Initialized faction: parazyote

[resource_zephyr]
displayName: zephyr

[hiddenAction_initialize_zephyr]
requireConditional: if self.tags(includes='zephyr')
autoTriggerOnEvent: created
addResources: zephyr=1
#showQuickWarLogToAllPlayers: Initialized faction: zephyr

[resource_softyboy]
displayName: softyboy

[hiddenAction_initialize_softyboy]
requireConditional: if self.tags(includes='softyboy')
autoTriggerOnEvent: created
addResources: softyboy=1
#showQuickWarLogToAllPlayers: Initialized faction: softyboy

[resource_vagabond]
displayName: vagabond

[hiddenAction_initialize_vagabond]
requireConditional: if self.tags(includes='vagabond')
autoTriggerOnEvent: created
addResources: vagabond=1
#showQuickWarLogToAllPlayers: Initialized faction: vagabond

[resource_raiders]
displayName: raiders

[hiddenAction_initialize_raiders]
requireConditional: if self.tags(includes='raiders')
autoTriggerOnEvent: created
addResources: raiders=1
#showQuickWarLogToAllPlayers: Initialized faction: raiders

[resource_civcore]
displayName: civcore

[hiddenAction_initialize_civcore]
requireConditional: if self.tags(includes='civcore')
autoTriggerOnEvent: created
addResources: civcore=1
#showQuickWarLogToAllPlayers: Initialized faction: civcore

[resource_psieros]
displayName: psieros

[hiddenAction_initialize_psieros]
showQuickWarLogToAllPlayers: Initialized faction: psieros

[resource_surveyors]
displayName: surveyors

[hiddenAction_initialize_surveyors]
requireConditional: if self.tags(includes='surveyors')
autoTriggerOnEvent: created
addResources: surveyors=1
#showQuickWarLogToAllPlayers: Initialized faction: surveyors

[resource_abyssal]
displayName: abyssal

[hiddenAction_initialize_abyssal]
requireConditional: if self.tags(includes='abyssal')
autoTriggerOnEvent: created
addResources: abyssal=1
#showQuickWarLogToAllPlayers: Initialized faction: abyssal




_____________________________________________________
_____________________________________________________
building.template
_____________________________________________________
_____________________________________________________
[core]

isBuilding: true
displayRadius: 50

#@define width: 1
#@define length: 1
#@define widthConstruct: 1
#@define lengthConstruct: 1
#@define widthVisible: 1
#@define lengthVisible: 1

footprint: -${width}, -${length}, ${width}, ${length}
constructionFootprint: -${widthConstruct}, -${lengthConstruct}, ${widthConstruct}, ${lengthConstruct}
displayFootprint: -${widthVisible}, -${lengthVisible}, ${widthVisible}, ${lengthVisible}

[decal_box_name]
#isVisible: if self.tags(includes='small')
xOffsetAbsolute: 0
yOffsetAbsolute: -${SIZE * 8} - 25
order: 12
image: name.png
imageScale: 0.5
alwaysStartDirAtZero: true
layer: beforeUI
teamColors: true
order: 10
onlyPlayersWithUnitControl: true
onlyWhenSelectedByAnyPlayer: true



[hiddenAction_detectedAutomatic]
autoTriggerOnEvent: created
temporarilyAddTags: detected

#For ship sizes Medium

[decal_hex_up]
isVisible: if not self.teamId(equalto=6)
onlyPlayersWithUnitControl: true
imageStack: ROOT:drawable\hud\bghex_building.png, ROOT:drawable\hud\bghex_building.png
stack_hOffset: 0.15
alwaysStartDirAtZero: true
imageScale: 0.3
teamColors: true
onlyOnNonPreview: true 
onlyWhenSelectedByAnyPlayer: true
alpha: 0.2

[decal_hex_arrow]
isVisible: if not self.teamId(equalto=6)
onlyPlayersWithUnitControl: true
stack_hOffset: 2
imageStack: ROOT:drawable\hud\bgarrow_building.png,ROOT:drawable\hud\bgarrow_building.png,ROOT:drawable\hud\bgarrow_building.png,ROOT:drawable\hud\bgarrow_building.png,ROOT:drawable\hud\bgarrow_building.png
@copyFromSection: decal_hex_up

[decal_hex_down]
@copyFromSection: decal_hex_up
stack_hOffset: -3
stack_drawInReverseOrder: true

[decal_hex_black]
@copyFromSection: decal_hex_up
isVisible: if self.teamId(equalto=6)
onlyPlayersWithUnitControl: true
imageStack: ROOT:drawable\hud\bghexstatic_building_black.png, ROOT:drawable\hud\bghexstatic_building_black.png, ROOT:drawable\hud\bghexstatic_building_black.png, ROOT:drawable\hud\bghexstatic_building_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png
teamColors: false

[decal_hex_down_black]
@copyFromSection: decal_hex_black
stack_hOffset: -3
stack_drawInReverseOrder: true
_____________________________________________________
_____________________________________________________
hp.template
_____________________________________________________
_____________________________________________________
###########################
###########################
###########################
###########################
#HP bar indicators for HP
#Changes based on faction
###########################
###########################
###########################
###########################
#To make a new bar, you need 3 elements:
#Pip for HP
#Background bar
#Foreground bar
###########################
###########################
#Diagnostics (3)
###########################
###########################

[core]
displayRadius: 25

[graphics]
showSelectionIndicator: false

[hiddenAction_damageVariance]
autoTrigger: true
setUnitStats: shootDamageMultiplier=rnd(0.75, 1.25)
[hiddenAction_dockedHeal]
autoTrigger: if self.tags(includes='docked')
addResourcesWithLogic: hp = self.maxHp / 1000

[resource_dropdown_faction]
displayName: dropdown

#### FOR DEBUGGING ####

#[action_dropdown_faction_on]
#isVisible: if self.resource(type='dropdown_faction', equalTo=0)
#text: Factions
#addResources: dropdown_faction=1
#buildSpeed: 0
#[action_dropdown_faction_off]
#isVisible: if self.resource(type='dropdown_faction', equalTo=1)
#text: Factions
#addResources:  dropdown_faction=-1
#buildSpeed: 0

##############################

[action_cerberus_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Cerberus +
buildSpeed: 0
temporarilyAddTags: cerberus

[action_cerberus_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Cerberus -
buildSpeed: 0
temporarilyRemoveTags: cerberus

[action_utopia_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Utopia +
buildSpeed: 0
temporarilyAddTags: utopia

[action_utopia_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Utopia -
buildSpeed: 0
temporarilyRemoveTags: utopia

[action_omega_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Omega +
buildSpeed: 0
temporarilyAddTags: omega

[action_omega_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Omega -
buildSpeed: 0
temporarilyRemoveTags: omega

[action_xenox_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Xenox +
buildSpeed: 0
temporarilyAddTags: parazyote

[action_xenox_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Xenox -
buildSpeed: 0
temporarilyRemoveTags: parazyote

[action_zephyr_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Zephyr +
buildSpeed: 0
temporarilyAddTags: zephyr

[action_zephyr_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Zephyr -
buildSpeed: 0
temporarilyRemoveTags: zephyr

[action_softmarl_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Softmarl +
buildSpeed: 0
temporarilyAddTags: softmarl

[action_softmarl_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Softmarl -
buildSpeed: 0
temporarilyRemoveTags: softmarl

[action_vagabond_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Vagabond +
buildSpeed: 0
temporarilyAddTags: vagabond

[action_vagabond_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Vagabond -
buildSpeed: 0
temporarilyRemoveTags: vagabond

[action_raiders_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Raiders +
buildSpeed: 0
temporarilyAddTags: raiders

[action_raiders_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Raiders -
buildSpeed: 0
temporarilyRemoveTags: raiders

[action_civcore_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Civcore +
buildSpeed: 0
temporarilyAddTags: civcore

[action_civcore_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Civcore -
buildSpeed: 0
temporarilyRemoveTags: civcore

[action_psieros_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Psieros +
buildSpeed: 0
temporarilyAddTags: psieros

[action_psieros_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Psieros -
buildSpeed: 0
temporarilyRemoveTags: psieros

[action_surveyors_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Surveyors +
buildSpeed: 0
temporarilyAddTags: surveyors

[action_surveyors_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Surveyors -
buildSpeed: 0
temporarilyRemoveTags: surveyors

[action_abyssal_plus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Abyssal +
buildSpeed: 0
temporarilyAddTags: abyssal

[action_abyssal_minus]
isVisible: if self.resource(type='dropdown_faction', equalTo=1)
text: Abyssal -
buildSpeed: 0
temporarilyRemoveTags: abyssal

[template_health]
isVisible: if self.tags(includes='${faction}') and not self.numberOfAttachedUnits(greaterThan=0, withTag='ship')
yOffsetAbsolute: -${SIZE * 8} - 11
alwaysStartDirAtZero: true
layer: beforeUI
teamColors: false
#onlyWhenSelectedByOwnPlayer: true
alpha: 1

[decal_hpicon]
isVisible: true
xOffsetAbsolute: -32
yOffsetAbsolute: -${SIZE * 8} - 11
order: 2
image: ROOT:\drawable\hud\hp\HP.png
layer: beforeUI
teamColors: false
alwaysStartDirAtZero: true

###########################
###########################
#Health Bar
###########################
###########################

###########################
#ministry
###########################

[decal_pipfullministry]
@define faction: ministry
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\ministryHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarministry]
@define faction: ministry
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\ministry_HP_b.png

[decal_healthfrontministry]
@define faction: ministry
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\ministry_HP_f.png

###########################
#cerberus
###########################

[decal_pipfullcerberus]
@define faction: cerberus
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\cerberusHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarcerberus]
@define faction: cerberus
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\cerberus_HP_b.png

[decal_healthfrontcerberus]
@define faction: cerberus
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\cerberus_HP_f.png

###########################
#utopia
###########################

[decal_pipfullutopia]
@define faction: utopia
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\utopiaHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarutopia]
@define faction: utopia
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\utopia_HP_b.png

[decal_healthfrontutopia]
@define faction: utopia
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\utopia_HP_f.png

###########################
#omega
###########################

[decal_pipfullomega]
@define faction: omega
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\omegaHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbaromega]
@define faction: omega
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\omega_HP_b.png

[decal_healthfrontomega]
@define faction: omega
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\omega_HP_f.png

###########################
#xenox
###########################

[decal_pipfullxenox]
@define faction: parazyote
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\xenoxHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 13

[decal_healthbarxenox]
@define faction: parazyote
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\xenox_HP_b.png

[decal_healthfrontxenox]
@define faction: parazyote
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\xenox_HP_f.png

###########################
#zephyr
###########################

[decal_pipfullzephyr]
@define faction: zephyr
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\zephyrHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarzephyr]
@define faction: zephyr
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\zephyr_HP_b.png

[decal_healthfrontzephyr]
@define faction: zephyr
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\zephyr_HP_f.png

###########################
#softmarl
###########################

[decal_pipfullsoftmarl]
@define faction: softmarl
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\softmarlHPPIP.png
xOffsetAbsolute: -12.5 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 25

[decal_healthbarsoftmarl]
@define faction: softmarl
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\softmarl_HP_b.png

[decal_healthfrontsoftmarl]
@define faction: softmarl
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\softmarl_HP_f.png

###########################
#softmarl
###########################

[decal_pipfullvagabond]
@define faction: vagabond
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\vagabondHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarvagabond]
@define faction: vagabond
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\vagabond_HP_b.png

[decal_healthfrontvagabond]
@define faction: vagabond
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\vagabond_HP_f.png

###########################
#raiders
###########################

[decal_pipfullraiders]
@define faction: raiders
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\raidersHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarraiders]
@define faction: raiders
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\raiders_HP_b.png

[decal_healthfrontraiders]
@define faction: raiders
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\raiders_HP_f.png

###########################
#raiders
###########################

[decal_pipfullcivcore]
@define faction: civcore
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\civcoreHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarcivcore]
@define faction: civcore
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\civcore_HP_b.png

[decal_healthfrontcivcore]
@define faction: civcore
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\civcore_HP_f.png

###########################
#raiders
###########################

[decal_pipfullpsieros]
@define faction: psieros
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\psierosHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarpsieros]
@define faction: psieros
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\psieros_HP_b.png

[decal_healthfrontpsieros]
@define faction: psieros
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\psieros_HP_f.png

###########################
#surveyors
###########################

[decal_pipfullsurveyors]
@define faction: surveyors
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\surveyorsHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarsurveyors]
@define faction: surveyors
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\surveyors_HP_b.png

[decal_healthfrontsurveyors]
@define faction: surveyors
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\surveyors_HP_f.png

###########################
#abyssal
###########################

[decal_pipfullabyssal]
@define faction: abyssal
@copyFromSection: template_health
order: 3
image: ROOT:\drawable\hud\hp\abyssalHPPIP.png
xOffsetAbsolute: -25 * (1 - self.hp() / self.maxHp())
imageScaleX: (self.hp() / self.maxHp()) * 50 

[decal_healthbarabyssal]
@define faction: abyssal
@copyFromSection: template_health
order: 2
image: ROOT:\drawable\hud\hp\abyssal_HP_b.png

[decal_healthfrontabyssal]
@define faction: abyssal
@copyFromSection: template_health
order: 5
image: ROOT:\drawable\hud\hp\abyssal_HP_f.png

_____________________________________________________
_____________________________________________________
hud.template
_____________________________________________________
_____________________________________________________
###########################
###########################
###########################
###########################
#A HUD for the ship, does not include the bars
#Includes a menu for testing HP, SH, EN
###########################
###########################
###########################
###########################

#####################
#####################
#####################
#####################
########[HUD]#########
#####################
#####################
#####################
#####################

[resource_viewRange]
displayName: View Range

[hiddenAction_initialize]
autoTriggerOnEvent: created
addResources: mark=1

#[action_mark_up]
#text: Up Mark
#addResources: mark=1
#[action_mark_down]
#text: Down Mark
#addResources: mark=-1

#For ship sizes Medium

[decal_hex_up]
isVisible: if not self.teamId(equalto=6)
onlyPlayersWithUnitControl: true
image: ROOT:drawable\null.png
#imageStack: ROOT:drawable\hud\bghexstatic.png, ROOT:drawable\hud\bghexstatic.png, ROOT:drawable\hud\bghexstatic.png, ROOT:drawable\hud\bghexstatic.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png, ROOT:drawable\hud\bghex.png
stack_hOffset: 3
alwaysStartDirAtZero: false
imageScale: 0.4
teamColors: true
onlyOnNonPreview: true 
onlyWhenSelectedByAnyPlayer: true
alpha: 0.2

[decal_hex_arrow]
isVisible: if not self.teamId(equalto=6)
onlyPlayersWithUnitControl: true
imageStack: ROOT:drawable\hud\bgarrow.png,ROOT:drawable\hud\bgarrow.png,ROOT:drawable\hud\bgarrow.png,ROOT:drawable\hud\bgarrow.png,ROOT:drawable\hud\bgarrow.png
@copyFromSection: decal_hex_up

[decal_hex_down]
@copyFromSection: decal_hex_up
stack_hOffset: -3
stack_drawInReverseOrder: true

[decal_hex_black]
@copyFromSection: decal_hex_up
isVisible: if self.teamId(equalto=6)
onlyPlayersWithUnitControl: true
imageStack: ROOT:drawable\hud\bghexstatic_black.png, ROOT:drawable\hud\bghexstatic_black.png, ROOT:drawable\hud\bghexstatic_black.png, ROOT:drawable\hud\bghexstatic_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png, ROOT:drawable\hud\bghex_black.png
teamColors: false

[decal_hex_down_black]
@copyFromSection: decal_hex_black
stack_hOffset: -3
stack_drawInReverseOrder: true



[template_HUDbox]
#isVisible: if self.tags(includes='small') 
yOffsetAbsolute: -${SIZE * 8} - 60
alwaysStartDirAtZero: true
layer: beforeUI
teamColors: true
order: 10
onlyPlayersWithUnitControl: true
onlyWhenSelectedByAnyPlayer: true

[decal_box]
isVisible: false
#isVisible: if self.tags(includes='small')
@copyFromSection: template_HUDbox
order: 2
image: ROOT:drawable\hud\analysis\hudbox.png

#[decal_fctnicon]
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_box
#xOffsetAbsolute: -32
#order: 2
#image: HP.png
#[decal_classicon]
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_box
#xOffsetAbsolute: -28
#order: 2
#image: HP.png
#[decal_nameicon]
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_box
#xOffsetAbsolute: -22
#order: 2
#image: HP.png

#[action_status_dampened]
#text: Dampened
#temporarilyAddTags: Dampened

###########################
###########################
#Commanders
###########################
###########################


###########################
#Cmdr. Diagnose
###########################

#[action_commander1_plus]
#text: Add Commander 1
#buildSpeed: 0
#temporarilyAddTags: commander1, commander
#[action_commander1_minus]
#text: Remove Commander 1
#buildSpeed: 0
#temporarilyRemoveTags: commander1, commander
#[action_commander2_plus]
#text: Add Commander 2
#buildSpeed: 0
#temporarilyAddTags: commander2, commander
#[action_commander2_minus]
#text: Remove Commander 2
#buildSpeed: 0
#temporarilyRemoveTags: commander2, commander

###########################
#Cmdr
###########################

[decal_box_commander1]
isVisible: if self.tags(includes='commander1')
@copyFromSection: template_symbol
xOffsetAbsolute: 20
yOffsetAbsolute: -${SIZE * 8} - 65
order: 2
image: ROOT:drawable\hud\commander\commander.png
imageScale: 0.6

[decal_box_commander2]
isVisible: if self.tags(includes='commander2')
@copyFromSection: template_symbol
xOffsetAbsolute: 20
yOffsetAbsolute: -${SIZE * 8} - 65
order: 2
image: ROOT:drawable\hud\commander\commanderAlt.png
imageScale: 0.6

[decal_box_commanderNone]
isVisible: false
@copyFromSection: template_symbol
xOffsetAbsolute: 20
yOffsetAbsolute: -${SIZE * 8} - 65
order: 2
image: ROOT:drawable\hud\commander\commanderNone.png
imageScale: 0.6

###########################
###########################
# Info HUD
###########################
###########################

[template_symbol]
#isVisible: false
yOffsetAbsolute: -${SIZE * 8} - 48
alwaysStartDirAtZero: true
layer: beforeUI
teamColors: true
order: 10
#onlyPlayersWithUnitControl: true
#onlyWhenSelectedByAnyPlayer: true
imageScale: 0.3

[decal_box_name]
#isVisible: if self.globalTeamTags(includes='visualDecal5')
@copyFromSection: template_symbol
xOffsetAbsolute: 0
yOffsetAbsolute: -${SIZE * 8} - 25
order: 2
image: name.png
imageScale: 0.5
onlyWhenSelectedByAnyPlayer: true

[decal_box_name_enemy]
@copyFromSection: template_symbol
xOffsetAbsolute: 0
yOffsetAbsolute: -${SIZE * 8} - 25
order: 2
image: name.png
imageScale: 0.5
isVisible: if not self.tags(includes='detected')
image: ROOT:drawable\unknown\name.png
onlyTeam: enemy
onlyWhenSelectedByEnemyPlayer: true

[decal_box_team_unselected]
#isVisible: if not self.globalTeamTags(includes='visualDecal5')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_symbol
xOffsetAbsolute: 0
yOffsetAbsolute: -${SIZE * 8} - 25
order: 1.9
image: ROOT:units\team.png
imageScale: 0.25
onlyWhenSelectedByAnyPlayer: true

[decal_box_team_selected]
#isVisible: if self.globalTeamTags(includes='visualDecal5')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_symbol
xOffsetAbsolute: 0
yOffsetAbsolute: -${SIZE * 8} - 25
order: 1.9
image: ROOT:units\team.png
imageScale: 0.5
onlyWhenSelectedByAnyPlayer: true

[resource_mark]
displayName: mark

[decal_box_mark_I]
isVisible: false
#isVisible: if self.resource(type='mark', equalTo=1)
@copyFromSection: template_symbol
xOffsetAbsolute: 25
yOffsetAbsolute: -${SIZE * 8} - 85
order: 2
image: ROOT:\drawable\hud\analysis\num_I.png
imageScale: 1

[decal_box_mark_II]
isVisible: false
#isVisible: if self.resource(type='mark', equalTo=2)
@copyFromSection: decal_box_mark_I
image: ROOT:\drawable\hud\analysis\num_II.png
[decal_box_mark_III]
isVisible: false
#isVisible: if self.resource(type='mark', equalTo=3)
@copyFromSection: decal_box_mark_I
image: ROOT:\drawable\hud\analysis\num_III.png
[decal_box_mark_IV]
isVisible: false
#isVisible: if self.resource(type='mark', equalTo=4)
@copyFromSection: decal_box_mark_I
image: ROOT:\drawable\hud\analysis\num_IV.png
[decal_box_mark_V]
isVisible: false
#isVisible: if self.resource(type='mark', equalTo=5)
@copyFromSection: decal_box_mark_I
image: ROOT:\drawable\hud\analysis\num_V.png

###########################
###########################
#Faction
###########################
###########################

[decal_box_faction]
isVisible: false
#isVisible: if self.tags(includes='small')
@copyFromSection: template_symbol
xOffsetAbsolute: -20
yOffsetAbsolute: -${SIZE * 8} - 25
order: 2
image: ROOT:\drawable\hud\faction\gearFaction.png
imageScale: 0.6
onlyWhenSelectedByAnyPlayer: true

###########################
###########################
#Class
###########################
###########################

[decal_box_class]
isVisible: false
#isVisible: if self.tags(includes='small')
@copyFromSection: template_symbol
xOffsetAbsolute: 25
yOffsetAbsolute: -${SIZE * 8} - 25
order: 2
image: ROOT:\drawable\hud\class\gearCruiser.png
imageScale: 0.6
onlyWhenSelectedByAnyPlayer: true

###########################
###########################
#Stat Diagnostics DEBUG uncomment for use
###########################
###########################

#[action_hpCon_plus]
#text: HP +
#addResources: hp=1
#buildSpeed: 0
#[action_hpCon_minus]
#text: HP -
#addResources: hp=-1
#buildSpeed: 0
#[action_shCon_plus]
#text: SH +
#addResources: shield=1
#buildSpeed: 0
#[action_shCon_minus]
#text: SH -
#addResources: shield=-1
#buildSpeed: 0
#[action_enCon_plus]
#text: EN +
#addResources: energy=1
#buildSpeed: 0
#[action_enCon_minus]
#text: EN -
#addResources: energy=-1
#buildSpeed: 0

###########################
###########################
#Diagnostics (Shields)
###########################
###########################

[resource_dropdown]
displayName: dropdown

#[action_dropdown_on]
#isVisible: if self.resource(type='dropdown', equalTo=0)
#text: Shields
#addResources: dropdown=1
#buildSpeed: 0
#[action_dropdown_off]
#isVisible: if self.resource(type='dropdown', equalTo=1)
#text: Shields
#addResources:  dropdown=-1
#buildSpeed: 0

[action_shieldEn_plus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield EN +
buildSpeed: 0
temporarilyAddTags: en
[action_shieldEn_minus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield EN -
buildSpeed: 0
temporarilyRemoveTags: en
[action_shieldEx_plus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield EX +
buildSpeed: 0
temporarilyAddTags: ex
[action_shieldEx_minus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield EX -
buildSpeed: 0
temporarilyRemoveTags: ex
[action_shieldKi_plus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield KI +
buildSpeed: 0
temporarilyAddTags: ki
[action_shieldKi_minus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield KI -
buildSpeed: 0
temporarilyRemoveTags: ki
[action_shieldAM_plus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield AM +
buildSpeed: 0
temporarilyAddTags: am
[action_shieldAM_minus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield AM -
buildSpeed: 0
temporarilyRemoveTags: am

[action_shieldBI_plus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield BI +
buildSpeed: 0
temporarilyAddTags: bi

[action_shieldBI_minus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield BI -
buildSpeed: 0
temporarilyRemoveTags: bi

[action_shieldNe_plus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield Ne +
buildSpeed: 0
temporarilyAddTags: ne

[action_shieldNe_minus]
isVisible: if self.resource(type='dropdown', equalTo=1)
text: Shield Ne -
buildSpeed: 0
temporarilyRemoveTags: ne



###########################
###########################
# Stats
###########################
###########################
[core]
fogOfWarSightRange: 10

#   #   #   #   #   #   
#   #   #   #   #   #   
#   #   #   #   #   #   
#   # Direction Get
#   #   #   #   #   #   
#   #   #   #   #   #   
#   #   #   #   #   #

@memory dirWas: float
@memory dirIs: float
@memory dirDiff: float
@memory decalState: string
@memory dirTimer: float
[action_getDir]
isVisible: false
text: %{memory.dirIs}
autoTrigger: true
setUnitMemory: dirIs = self.dir()
[action_compareDir]
isVisible: false
text: %{memory.dirWas}
autoTrigger: if memory.dirTimer < 1.0
setUnitMemory: dirDiff = ((memory.dirIs + 180) - (memory.dirWas + 180)),  dirTimer = memory.dirTimer + 0.5
[action_compareDir2]
isVisible: false
text: %{memory.dirDiff}
autoTrigger: if memory.dirTimer == 1.0
setUnitMemory: dirWas = memory.dirIs, dirTimer = 0, dirDiff = select(memory.dirDiff > 180, memory.dirDiff - 360, select(memory.dirDiff < -180, memory.dirDiff + 360, memory.dirDiff)), decalState = select(memory.dirDiff > 5, "open_right", select(memory.dirDiff < -5, "open_left", "folded"))

[template_none]
onlyTeam: own
xOffsetRelative: ${x + (SIZE * sizeMult)}
yOffsetRelative: ${y}
dirOffset: ${dir}
#isVisible: if memory.decalState == "open_${wing}"
image: ROOT:drawable\arrow.png
color: #00FF00
imageScale: ${scale}
layer: beforeBody
order: 0.2

[decal_right]
@define wing: right
@define sizeMult: 8
@define x: 8
@define y: 0
@define dir: 135
@define scale: 0.5
alpha: memory.dirDiff / 100

@copyFromSection: template_none

[decal_left]
@define wing: left
@define sizeMult: -8
@define x: -8
@define y: 0
@define dir: -135
@define scale: 0.5
alpha: memory.dirDiff * -1 / 100

@copyFromSection: template_none

[decal_right_2]
order: 0.1
@define wing: right
@define sizeMult: 8
@define x: 16
@define y: -24
@define dir: 180
@define scale: 0.35
alpha: memory.dirDiff / 100

@copyFromSection: template_none

[decal_left_2]
order: 0.1
@define wing: left
@define sizeMult: -8
@define x: -16
@define y: -24
@define dir: -180
@define scale: 0.35
alpha: memory.dirDiff * -1 / 100

@copyFromSection: template_none


#   #   #   #   #   #   
#   #   #   #   #   #   
#   #   #   #   #   #   
#   #   #   #   #   #   
#   #   #   #   #   #   
#   #   #   #   #   #   

# - # - # - # - # - # - # - # - # - # - 
# -- Relevant variable defining are in module.template -- 
# - # - # - # - # - # - # - # - # - # - 

###########################

[action_decalVARinc]
isVisible: false
buildSpeed: 0s
@define val: 35
text: INC
setUnitMemory: """
decalPosArrayY[1] =memory.stats[1] * -1 ,
decalPosArrayY[2] =memory.stats[2] * -1  ,
decalPosArrayY[3] =memory.stats[3] * -1  ,
decalPosArrayY[4] = memory.stats[4] * -1  ,
decalPosArrayY[5] = memory.stats[5] * -1 ,
decalPosArrayY[6] = memory.stats[6] * -1 ,
decalPosArrayX[1] = ${val * -3 + 20} ,
decalPosArrayX[2] = ${val * -2 + 20} ,
decalPosArrayX[3] = ${val * -1 + 20} ,
decalPosArrayX[4] = ${val * 1 - 20} ,
decalPosArrayX[5] = ${val * 2 - 20},
decalPosArrayX[6] = ${val * 3 - 20}
"""

[action_statsNormalize]
isVisible: false
#autoTriggerOnEvent: enteredTransport
autoTrigger: if self.tags(includes='docked')
alsoTriggerAction: decalVar2
buildSpeed: 0s
text: STATS
setUnitMemory: """
stats[1] = (self.hp + self.shield) / 50,
stats[2] = ((${core.fogOfWarSightRange} / 50) + (self.resource.viewRange / 800)) / 2,
stats[3] = self.resource.ap_m / 30,
stats[4] = self.resource.val_dps / 10,
stats[5] = memory.rangeAverage / 8,
stats[6] = (self.maxMoveSpeed) / 2.5
"""
[template_normalizeCap]
isVisible: false
autoTrigger: if memory.stats[${num}] > 1
setUnitMemory: stats[${num}] = 1
alsoTriggerAction: decalVar2
[action_statsNormalizeCap_1]
@copyFromSection: template_normalizeCap
@define num: 1
[action_statsNormalizeCap_2]
@copyFromSection: template_normalizeCap
@define num: 2
[action_statsNormalizeCap_3]
@copyFromSection: template_normalizeCap
@define num: 3
[action_statsNormalizeCap_4]
@copyFromSection: template_normalizeCap
@define num: 4
[action_statsNormalizeCap_5]
@copyFromSection: template_normalizeCap
@define num: 5
[action_statsNormalizeCap_6]
@copyFromSection: template_normalizeCap
@define num: 6

[action_decalVar2]
isVisible: false
buildSpeed: 0s
@global offsetYDiff: 13
@define scale: 30
text: INC
setUnitMemory: """
decalPosArrayX[1] = memory.stats[1] * cos(0 - 90) * ${scale},
decalPosArrayY[1] = memory.stats[1] * sin(0 - 90) * ${scale} + ${SIZE * offsetYDiff},
decalPosArrayX[2] = memory.stats[2] * cos(60 - 90) * ${scale},
decalPosArrayY[2] = memory.stats[2] * sin(60 - 90) * ${scale} + ${SIZE * offsetYDiff},
decalPosArrayX[3] = memory.stats[3] * cos(120 - 90) * ${scale},
decalPosArrayY[3] = memory.stats[3] * sin(120 - 90) * ${scale} + ${SIZE * offsetYDiff},
decalPosArrayX[4] = memory.stats[4] * cos(180 - 90) * ${scale},
decalPosArrayY[4] = memory.stats[4] * sin(180 - 90) * ${scale} + ${SIZE * offsetYDiff},
decalPosArrayX[5] = memory.stats[5] * cos(240 - 90) * ${scale},
decalPosArrayY[5] = memory.stats[5] * sin(240 - 90) * ${scale} + ${SIZE * offsetYDiff},
decalPosArrayX[6] = memory.stats[6] * cos(300 - 90) * ${scale},
decalPosArrayY[6] = memory.stats[6] * sin(300 - 90) * ${scale} + ${SIZE * offsetYDiff}
"""


[decal_stats]
isVisible: if self.tags(includes='docked')
layer: onTop
order: 101
onlyWhenSelectedByOwnPlayer: true
alpha:1
imageScale: 0.3
image: ROOT:drawable\stats.png
yOffsetAbsolute: ${SIZE * offsetYDiff + 40}
alwayStartDirAtZero: true 

[decal_graphUnder]
isVisible: if self.tags(includes='docked')
layer: onTop
order: 100
onlyWhenSelectedByOwnPlayer: true
alpha: 0.4
imageScale: 0.3
image: ROOT:drawable\graph.png
yOffsetAbsolute: ${SIZE * offsetYDiff}
alwayStartDirAtZero: true 

[decal_graphOver]
isVisible: if self.tags(includes='docked')
layer: onTop
order: 100
onlyWhenSelectedByOwnPlayer: true
alpha: 1
imageScale: 0.3
image: ROOT:drawable\graphTop.png
yOffsetAbsolute: ${SIZE * offsetYDiff}
alwayStartDirAtZero: true 

[template_decaltest]
layer: onTop
order: 100
onlyWhenSelectedByOwnPlayer: true
isVisible: if self.tags(includes='docked')
xOffsetAbsolute: memory.decalPosArrayX[${num}]
yOffsetAbsolute: memory.decalPosArrayY[${num}]
imageScale: (memory.stats[${num}] / 4) + 0.25
lineWidth: 4
alwaysStartDirAtZero: true
alpha: 1

[decal_test1]
@copyFromSection: template_decaltest
@define num: 1
drawLineTo: self.getOffsetAbsolute(x=memory.decalPosArrayX[2], y=memory.decalPosArrayY[2])
color: #00FF00
image: ROOT:drawable\icons\cruiser.png

[decal_test2]
@copyFromSection: template_decaltest
@define num: 2
drawLineTo: getOffsetAbsolute(x=memory.decalPosArrayX[3], y=memory.decalPosArrayY[3])
color: #FF00FF
image: ROOT:drawable\icons\flagship.png

[decal_test3]
@copyFromSection: template_decaltest
@define num: 3
drawLineTo: getOffsetAbsolute(x=memory.decalPosArrayX[4], y=memory.decalPosArrayY[4])
color: #0000FF
image: ROOT:drawable\icons\probe.png

[decal_test4]
@copyFromSection: template_decaltest
@define num: 4
drawLineTo: getOffsetAbsolute(x=memory.decalPosArrayX[5], y=memory.decalPosArrayY[5])
color: #FF0000
image: ROOT:drawable\icons\destroyer.png

[decal_test5]
@copyFromSection: template_decaltest
@define num: 5
drawLineTo: getOffsetAbsolute(x=memory.decalPosArrayX[6], y=memory.decalPosArrayY[6])
color: #FFA500
image: ROOT:drawable\icons\cutter.png

[decal_test6]
@copyFromSection: template_decaltest
@define num: 6
drawLineTo: getOffsetAbsolute(x=memory.decalPosArrayX[1], y=memory.decalPosArrayY[1])
color: #FFFF00
image: ROOT:drawable\icons\frigate.png

[decal_test7]
@copyFromSection: template_decaltest
@define num: 7
#color: #555555
image: ROOT:drawable\icons\hex.png
order: 101
yOffsetAbsolute: ${SIZE * offsetYDiff}
imageScale: 0.3

[template_decaltest2]
layer: onTop
order: 100
onlyWhenSelectedByOwnPlayer: true
isVisible: if self.tags(includes='docked')
xOffsetAbsolute: memory.decalPosArrayX[${num}]
yOffsetAbsolute: memory.decalPosArrayY[${num}]
imageScale: 0.6
lineWidth: 2
alwaysStartDirAtZero: true
drawLineTo: self.getOffsetAbsolute(x=0, y=${SIZE * offsetYDiff})
color: #FFFFFF

[decal_emptyDecal1]
@copyFromSection: template_decaltest2
@define num: 1
image: ROOT:drawable\null.png

[decal_emptyDecal2]
@copyFromSection: template_decaltest2
@define num: 2
image: ROOT:drawable\null.png

[decal_emptyDecal3]
@copyFromSection: template_decaltest2
@define num: 3
image: ROOT:drawable\null.png

[decal_emptyDecal4]
@copyFromSection: template_decaltest2
@define num: 4
image: ROOT:drawable\null.png

[decal_emptyDecal5]
@copyFromSection: template_decaltest2
@define num: 5
image: ROOT:drawable\null.png

[decal_emptyDecal6]
@copyFromSection: template_decaltest2
@define num: 6
image: ROOT:drawable\null.png

_____________________________________________________
_____________________________________________________
module.template
_____________________________________________________
_____________________________________________________
[core]
autoTriggerCooldownTime: 60
#canNotBeDamaged: true
#unitsSpawnedOnDeath_setToTeamOfLastAttacker: true
#unitsSpawnedOnDeath: xpSphere

@memory stats: float[]
@memory decalPosArrayX: float[]
@memory decalPosArrayY: float[]
@memory livingModules: float
#[hiddenAction_shipClassConfirm]
#autoTrigger: if self.tags(includes='${core.name}Prototype')
#temporarilyRemoveTags: ${core.name}Prototype


@memory condition_stasis: float
@memory condition_dampened: float
@memory condition_corrosion: float

@memory mod_thruster_forward: float
@memory mod_thruster_agile: float

@memory rangeAverage: float

[hiddenAction_updateUnitMemory_livingModules]
autoTrigger: true
setUnitMemory: livingModules = (self.numberOfAttachedUnits(withTag='module') - self.numberOfAttachedUnits(withTag='destroyed'))

[action_displayDead]
buildSpeed: 0s
pos: -3
text: Modules: %{memory.livingModules} / %{self.numberOfAttachedUnits(withTag='module')}
#/%{self.numberOfAttachedUnits(withTag='module')}
setResourcesWithLogic: credits=0

[action_displayDeadGap]
buildSpeed: 0s
pos: -3
text: Status
#/%{self.numberOfAttachedUnits(withTag='module')}
displayType: infoOnly
setResourcesWithLogic: credits=0
description: Stasis: %{memory.condition_stasis} stacks\nDampened: %{memory.condition_dampened} stacks\nCorrosion: %{memory.condition_Corrosion} stacks

###########################
###########################
###########################
###########################
#Fits in with the HUD adds 
#module indicators
###########################
###########################
###########################
###########################

[resource_corvette]
displayName: corvette
[resource_cruiser]
displayName: cruiser
[resource_battleship]
displayName: battleship
[resource_gunship]
displayName: gunship
[resource_destroyer]
displayName: destroyer
[resource_hunter]
displayName: hunter
[resource_cog]
displayName: cog
[resource_battlecruiser]
displayName: battlecruiser
[resource_carrier]
displayName: carrier
[resource_cutter]
displayName: cutter
[resource_frigate]
displayName: frigate
[resource_freighter]
displayName: freighter

#####################
#Inheritence
#####################

[resource_ap_m]
displayName: ap Max
[resource_ap_c]
displayName: ap Current

[resource_weight_m]
displayName: Weight Max
[resource_weight_c]
displayName: Weight Current

[resource_num_DPS]
displayName: DPS Number Count
[resource_val_DPS]
displayName: DPS Value Count
[resource_val_RANGE]
displayName: Range Value Count


#####################
#Modules
#####################


[template_tech]
isVisible: false
yOffsetAbsolute: -${SIZE * 8} - 48
alwaysStartDirAtZero: true
layer: beforeUI
teamColors: false
order: 10
onlyPlayersWithUnitControl: true
onlyWhenSelectedByAnyPlayer: true
imageScale: 0.3


#[attachment_weapons_1]
#onCreateSpawnUnitOf: weapon_slot_empty
#isUnselectable: false
#canBeAttackedAndDamaged: true
#redirectDamageToParent: true
#redirectDamageToParent_shieldOnly: true
#idleDir: 0
#x: 12
#y: -24
#prioritizeParentsMainTarget: true
#lockRotation: true

#####################
#Slot #1
#####################


[decal_box_weapon_1]
isVisible: if self.tags(includes='slot_weapon_1')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: -28
order: 2
image: ROOT:drawable\hud\equip\weapon.png

[decal_box_armor_1]
isVisible: if self.tags(includes='slot_armor_1')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: -28
order: 2
image: ROOT:drawable\hud\equip\armor.png

[decal_box_shields_1]
isVisible: if self.tags(includes='slot_shields_1')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: -28
order: 2
image: ROOT:drawable\hud\equip\shields.png

[decal_box_special_1]
isVisible: if self.tags(includes='slot_special_1')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: -28
order: 2
image: ROOT:drawable\hud\equip\special.png

[decal_box_tech_1]
isVisible: if self.tags(includes='slot_none_1')
@copyFromSection: template_tech
xOffsetAbsolute: -14
order: 2
image: ROOT:drawable\hud\equip\equipment.png
#this means n/a


#####################
#Slot #2
#####################

[decal_box_tech_2]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: -14
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #3
#####################

[decal_box_tech_3]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: 0
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #4
#####################

[decal_box_tech_4]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: 14
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #5
#####################

[decal_box_tech_5]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
#yOffsetAbsolute:
xOffsetAbsolute: 28
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #6
#####################

[decal_box_tech_6]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
yOffsetAbsolute: -${SIZE * 8} - 34
xOffsetAbsolute: -28
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #7
#####################

[decal_box_tech_7]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
yOffsetAbsolute: -${SIZE * 8} - 34
xOffsetAbsolute: -14
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #8
#####################

[decal_box_tech_8]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
yOffsetAbsolute: -${SIZE * 8} - 34
xOffsetAbsolute: 0
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #9
#####################

[decal_box_tech_9]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
yOffsetAbsolute: -${SIZE * 8} - 34
xOffsetAbsolute: 14
order: 2
image: ROOT:drawable\hud\equip\equipment.png

#####################
#Slot #10
#####################

[decal_box_tech_10]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_tech
yOffsetAbsolute: -${SIZE * 8} - 34
xOffsetAbsolute: 28
order: 2
image: ROOT:drawable\hud\equip\equipment.png





#######################
#######################
#######################
#######################




#######################
#######################
#######################
#######################



#[hiddenAction_created_viableTarget]
#autoTriggerOnEvent: created
#temporarilyAddTags: viableTarget


#### For the weight system ####
#^^^^^^^^^^^^^^^^^^^^^^^^^^^#

[hiddenAction_leftTransport]
autoTriggerOnEvent: leftTransport
temporarilyRemoveTags: docked

[hiddenAction_enteredTransport]
autoTriggerOnEvent: enteredTransport
temporarilyAddTags: docked

[hiddenAction_created_weight]
autoTriggerOnEvent: created
setResourcesWithLogic: weight_m=0, weight_c=0

[action_weightDisplay]
pos: 0
buildSpeed: 0s
text: Weight:%{self.resource.weight_c}/%{self.resource.weight_m}
displayType: infoOnlyNoBox
addResources:  1

[template_weight]
onlyTeam: ally
isVisible: if self.tags(includes='docked')
yOffsetAbsolute: ${SIZE * 6}
alwaysStartDirAtZero: true
layer: beforeUI
#onlyWhenSelectedByOwnPlayer: true

[decal_weighticon]
teamColors: false
@copyFromSection: template_weight
xOffsetAbsolute: -32
order: 2
image: ROOT:\drawable\hud\weight\WEIGHT.png

[decal_weightbar]
teamColors: false
@copyFromSection: template_weight
order: 2
image: ROOT:\drawable\hud\weight\wb.png

[decal_weightfront]
teamColors: false
@copyFromSection: template_weight
order: 5
image: ROOT:\drawable\hud\weight\wf.png

[decal_pipfull_weight]
teamColors: false
isVisible: if self.resource.weight_c >= (self.resource.weight_m / 1.25) and self.tags(includes='docked')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_weight
order: 3
image: ROOT:\drawable\hud\weight\wPIP2.png
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.resource.weight_c / self.resource.weight_m*50

[decal_pipempty_weight]
teamColors: false
@copyFromSection: template_weight
order: 2
image: ROOT:\drawable\hud\weight\wPIP.png
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.resource.weight_c / self.resource.weight_m*50

############################

############################


[template_weight_docked]
onlyTeam: ally
isVisible: if self.tags(includes='docked')
yOffsetAbsolute: ${SIZE * 8}
alwaysStartDirAtZero: true
layer: beforeUI


#[decal_weighticon_docked]
#teamColors: false
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_weight_docked
#xOffsetAbsolute: -32
#order: 2
#image: ROOT:\drawable\hud\weight\WEIGHT.png
#[decal_weightbar_docked]
#teamColors: false
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_weight_docked
#order: 2
#image: ROOT:\drawable\hud\weight\wb.png
#[decal_weightfront_docked]
#teamColors: false
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_weight_docked
#order: 5
#image: ROOT:\drawable\hud\weight\wf.png
#[decal_pipfull_weight_docked]
#teamColors: false
#isVisible: if self.resource.weight_c >= (self.resource.weight_m / 1.25)
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_weight_docked
#order: 3
#image: ROOT:\drawable\hud\weight\wPIP2.png
##xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
#imageScaleX: self.resource.weight_c / self.resource.weight_m*50
#[decal_pipempty_weight_docked]
#teamColors: false
##isVisible: if self.tags(includes='small')
#@copyFromSection: template_weight_docked
#order: 2
#image: ROOT:\drawable\hud\weight\wPIP.png
##xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
#imageScaleX: self.resource.weight_c / self.resource.weight_m*50



#######################
#######################
#######################
#######################


[template_attachment]
x: 0
y: 0
idleDir: 0

isUnselectable: false
canBeAttackedAndDamaged: true
#redirectDamageToParent: true
#redirectDamageToParent_shieldOnly: true

keepAliveWhenParentDies: true
prioritizeParentsMainTarget: true
#showAllActionsFrom: true
lockRotation: false 
resetRotationWhenNotAttacking: true

[attachment_weapons_1]
@copyFromSection: template_attachment
[attachment_weapons_2]
@copyFromSection: template_attachment
[attachment_weapons_3]
@copyFromSection: template_attachment
[attachment_weapons_4]
@copyFromSection: template_attachment
[attachment_weapons_5]
@copyFromSection: template_attachment
[attachment_weapons_6]
@copyFromSection: template_attachment
[attachment_weapons_7]
@copyFromSection: template_attachment
[attachment_weapons_8]
@copyFromSection: template_attachment
[attachment_weapons_9]
@copyFromSection: template_attachment
[attachment_weapons_10]
@copyFromSection: template_attachment
[attachment_shields_1]
@copyFromSection: template_attachment
[attachment_shields_2]
@copyFromSection: template_attachment
[attachment_shields_3]
@copyFromSection: template_attachment
[attachment_specials_1]
@copyFromSection: template_attachment
[attachment_specials_2]
@copyFromSection: template_attachment
[attachment_specials_3]
@copyFromSection: template_attachment
[attachment_specials_4]
@copyFromSection: template_attachment
[attachment_specials_5]
@copyFromSection: template_attachment
[attachment_specials_6]
@copyFromSection: template_attachment
[attachment_armor_1]
@copyFromSection: template_attachment
[attachment_armor_2]
@copyFromSection: template_attachment
[attachment_armor_3]
@copyFromSection: template_attachment
[attachment_armor_4]
@copyFromSection: template_attachment
[attachment_armor_5]
@copyFromSection: template_attachment
[attachment_armor_6]
@copyFromSection: template_attachment
[attachment_armor_7]
@copyFromSection: template_attachment
[attachment_armor_8]
@copyFromSection: template_attachment
[attachment_armor_9]
@copyFromSection: template_attachment
[attachment_armor_10]
@copyFromSection: template_attachment
[attachment_armor_11]
@copyFromSection: template_attachment
[attachment_armor_12]
@copyFromSection: template_attachment
[attachment_armor_13]
@copyFromSection: template_attachment
[attachment_armor_14]
@copyFromSection: template_attachment
[attachment_armor_15]
@copyFromSection: template_attachment
[attachment_squadron_1]
@copyFromSection: template_attachment
[attachment_squadron_2]
@copyFromSection: template_attachment
[attachment_squadron_3]
@copyFromSection: template_attachment
[attachment_squadron_4]
@copyFromSection: template_attachment
[attachment_squadron_5]
@copyFromSection: template_attachment
[attachment_squadron_6]
@copyFromSection: template_attachment





####################################################
####################################################

#[template_apSteal]
#requireConditional: if self.resource.ap_m > self.resource.ap_c - 1
#takeResources: ap_c=1
#takeResources_directTransferStoppingAtZero: true
#takeResources_includeUnitsInTransport: true
#[hiddenAction_apSteal_shields_1]
#@copyFromSection: template_apSteal
#autoTrigger: if attachment(slot='shields_1').resource.ap_c > 0
#takeResources_includeReference: self.attachment(withTag='module', slot='shields_1')
#[hiddenAction_apSteal_shields_2]
#@copyFromSection: template_apSteal
#autoTrigger: if attachment(slot='shields_2').resource.ap_c > 0
#takeResources_includeReference: self.attachment(withTag='module', slot='shields_2')
#[hiddenAction_apSteal_shields_3]
#@copyFromSection: template_apSteal
#autoTrigger: if attachment(slot='shields_3').resource.ap_c > 0
#takeResources_includeReference: self.attachment(withTag='module', slot='shields_3')

####################################################
####################################################


[hiddenAction_apFlatten]
autoTrigger: if self.resource.ap_c >= self.resource.ap_m
setResourcesWithLogic: ap_c=self.resource.ap_m

[template_weightSteal]
takeResources_directTransferStoppingAtZero: true
takeResources_includeUnitsInTransport: true
autoTrigger: if attachment(slot='${slot}').resource.weight_c > 0 or attachment(slot='${slot}').resource.num_dps > 0 
takeResources_includeReference: self.attachment(withTag='module', slot='${slot}')
takeResources: weight_c=999, num_dps = 1, val_dps = 999, val_RANGE = 999
alsoTriggerAction: setRangeAverage

[hiddenAction_setRangeAverage]
autoTrigger: if self.resource.val_RANGE == 0
setUnitMemory: rangeAverage = self.resource.val_RANGE / self.resource.num_dps

####################################################
####################################################

[hiddenAction_weightSteal_weapons_1]
@define slot: weapons_1
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_2]
@define slot: weapons_2
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_3]
@define slot: weapons_3
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_4]
@define slot: weapons_4
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_5]
@define slot: weapons_5
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_6]
@define slot: weapons_6
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_7]
@define slot: weapons_7
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_8]
@define slot: weapons_8
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_9]
@define slot: weapons_9
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_weapons_10]
@define slot: weapons_10
@copyFromSection: template_weightSteal
####################################################
[hiddenAction_weightSteal_shields_1]
@define slot: shields_1
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_shields_2]
@define slot: shields_2
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_shields_3]
@define slot: shields_3
@copyFromSection: template_weightSteal
####################################################
[hiddenAction_weightSteal_specials_1]
@define slot: specials_1
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_specials_2]
@define slot: specials_2
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_specials_3]
@define slot: specials_3
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_specials_4]
@define slot: specials_4
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_specials_5]
@define slot: specials_5
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_specials_6]
@define slot: specials_6
@copyFromSection: template_weightSteal
####################################################
[hiddenAction_weightSteal_armor_1]
@define slot: armor_1
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_2]
@define slot: armor_2
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_3]
@define slot: armor_3
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_4]
@define slot: armor_4
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_5]
@define slot: armor_5
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_6]
@define slot: armor_6
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_7]
@define slot: armor_7
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_8]
@define slot: armor_8
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_9]
@define slot: armor_9
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_10]
@define slot: armor_10
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_11]
@define slot: armor_11
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_12]
@define slot: armor_12
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_13]
@define slot: armor_13
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_14]
@define slot: armor_14
@copyFromSection: template_weightSteal
[hiddenAction_weightSteal_armor_15]
@define slot: armor_15
@copyFromSection: template_weightSteal


###################
# DEBUG SHIT
###################


#[action_weight_c_Add]
#text: Weight C +
#pos: 0
#buildSpeed: 0
#addResources: weight_c=1
#[action_weight_c_Remove]
#text: Weight C -
#pos: 0
#buildSpeed: 0
#addResources: weight_c=-1
#[action_weight_m_Add]
#text: Weight M +
#pos: 0
#buildSpeed: 0
#addResources: weight_m=1
#[action_weight_m_Remove]
#text: Weight M -
#pos: 0
#buildSpeed: 0
#addResources: weight_m=-1

[hiddenAction_onCreatedShipBay]
autoTriggerOnEvent: created
requireConditional: if numberOfUnitsInTeam(withTag='refit', withinRange=50, greaterThan=0)
addWaypoint_type: loadInto
addWaypoint_target_nearestUnit_tagged: refit
addWaypoint_target_nearestUnit_team: own



[resource_ship_bull]
displayName: bull
[resource_ship_ballistic]
displayName: ballistic
[resource_ship_centurion]
displayName: centurion
[resource_ship_cyanide]
displayName: cyanide
[resource_ship_maestro]
displayName: maestro
[resource_ship_caprice]
displayName: caprice
[resource_ship_executioner]
displayName: executioner


[template_bull]
price: Ylithium=600, Faustal=200, upkeep=2
[template_ballistic]
price: Ylithium=1250, Faustal=800, Zynthium=500, upkeep=3
[template_centurion]
price: Ylithium=5000, Antimalium=2000, Segradion=900, Faustal=1500, Zynthium=1200, upkeep=6
[template_cyanide]
price: Ylithium=600, Faustal=200, upkeep=2
[template_maestro]
price: Ylithium=1000, Norsotium=600, upkeep=3
[template_caprice]
price: Ylithium=1500, Segradion=1200, upkeep=3
[template_executioner]
price: Ylithium=2500, Antimalium=2000, Zynthium=450, upkeep=4


[action_debug_loadout]
isVisible: false
text: debugLoadout
setResourcesWithLogic: loadoutConfig=1

#[hiddenAction_generateLoadout_0]
#autoTriggerOnEvent: created
#requireConditional: if self.resource.loadoutConfig == 0
#attachments_addNewUnits: 
#attachments_onlyOnSlots: 

#################################
#CORE STATES
#################################

######################
##### Forward Thrusters #####
######################

[resource_coreConfig]
hidden: true
displayName: --

[template_core_color]
autoTrigger: if numberOfUnitsInTeam(withinRange=50, withTag='galvanized${color}', greaterThan=0)
temporarilyAddTags: galvanized${color}
## Activates some things 

[hiddenAction_core_Red]
@define color: Red
@copyFromSection: template_core_color
setUnitStats: moveSpeed=20

[hiddenAction_core_Orange]
@define color: Orange
@copyFromSection: template_core_color


[hiddenAction_core_Yellow]
@define color: Yellow
@copyFromSection: template_core_color


[hiddenAction_core_Green]
@define color: Green
@copyFromSection: template_core_color


[hiddenAction_core_Blue]
@define color: Blue
@copyFromSection: template_core_color


[hiddenAction_core_Indigo]
@define color: Indigo
@copyFromSection: template_core_color


[hiddenAction_core_Violet]
@define color: Violet
@copyFromSection: template_core_color




#################################
#MODIFICATION STATES
#################################

######################
##### Forward Thrusters #####
######################

[hiddenAction_thrusterForward_add]
autoTrigger: if self.numberOfAttachedUnits(withTag='thruster_forward', greaterThan=0) and memory.mod_thruster_forward == 0
setUnitMemory: mod_thruster_forward = 1
setUnitStats: moveSpeed += (${MOVESPEED}*0.2), maxTurnSpeed -=  (${TURNSPEED}*0.2)

[hiddenAction_thrusterForward_remove]
autoTrigger: if self.numberOfAttachedUnits(withTag='thruster_forward', lessThan=1) and memory.mod_thruster_forward == 1
setUnitMemory: mod_thruster_forward = 0
setUnitStats: moveSpeed -= (${MOVESPEED}*0.2), maxTurnSpeed +=  (${TURNSPEED}*0.2)

######################
##### Rotation Thrusters #####
######################

[hiddenAction_thrusterRotate_add]
autoTrigger: if self.numberOfAttachedUnits(withTag='thruster_rotation', greaterThan=0) and memory.mod_thruster_forward == 0
setUnitMemory: mod_thruster_forward = 1
setUnitStats: moveSpeed -= (${MOVESPEED}*0.2), maxTurnSpeed +=  (${TURNSPEED}*0.2)

[hiddenAction_thrusterRotate_remove]
autoTrigger: if self.numberOfAttachedUnits(withTag='thruster_rotation', lessThan=1) and memory.mod_thruster_forward == 1
setUnitMemory: mod_thruster_forward = 0
setUnitStats: moveSpeed += (${MOVESPEED}*0.2), maxTurnSpeed -=  (${TURNSPEED}*0.2)



_____________________________________________________
_____________________________________________________
temple.template
_____________________________________________________
_____________________________________________________

[core]
createNeutral: true
stayNeutral: true

isBuilding: true
tags: building, temple
createOnAggressiveTeam: true
maxHp: 500
defineUnitMemory: float variant

[action_created_reset]
autoTriggerOnEvent: created
resetCustomTimer: true

[action_shaved]
autoTrigger: if numberOfUnitsInNeutralTeam(withTag='shaver', greaterThan=0, withinRange=100)
deleteSelf: true

[graphics]
showQueueBar: false
showHealthBar: false

[decal_stack]
stack_hOffset: 2

imageStack: rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png,rim.png, base_${temple}.png, base_${temple}.png, top.png,  top2.png,  top.png,  top2.png,  top.png,  top2.png

[movement]
targetHeight: 20
targetHeightDrift: 6
startingHeightOffset: 50

#[hiddenAction_]

[hiddenAction_spawnEffigy]
spawnUnits: effigy
temporarilyAddTags: summoned
autoTrigger: if numberOfUnitsInAllTeams(withTag='ship', withinRange=100, greaterThan=0) and numberOfUnitsInAllTeams(withTag='talk_effigy', withinRange=100, greaterThan=0) and not self.tags(includes='summoned')

[decal_box_name]
#isVisible: if self.tags(includes='small')
xOffsetAbsolute: 0
yOffsetAbsolute: 0
image: IGNORE
imageScale: 0


_____________________________________________________
_____________________________________________________
shields.template
_____________________________________________________
_____________________________________________________
###########################
###########################
###########################
###########################
#Shield bar indicators for Shields
#Changes based on what type of shields
###########################
###########################
###########################
###########################

###########################
#Shields Basics
###########################

[template_shields]
isVisible: if not self.numberOfAttachedUnits(greaterThan=0, withTag='ship')
yOffsetAbsolute: -${SIZE * 8} - 5
alwaysStartDirAtZero: true
layer: beforeUI
#onlyWhenSelectedByOwnPlayer: true
alpha: 0.75

[decal_shieldsicon]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
xOffsetAbsolute: -32
order: 2
image: ROOT:\drawable\hud\shields\shield.png

[decal_shieldsbar]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 1
image: ROOT:\drawable\hud\shields\oSHb-s.png

[decal_shieldsfront]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 7
image: ROOT:\drawable\hud\shields\oSHf-s.png

[decal_pipfull_shields_normal]
isVisible: if (not self.tags(includes='ex') or not self.tags(includes='ki') or not self.tags(includes='en') or not self.tags(includes='am') or not self.tags(includes='ne') or not self.tags(includes='bi')) and not self.numberOfAttachedUnits(greaterThan=0, withTag='ship') 
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 1
image: ROOT:\drawable\hud\shields\norPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

###########################
###########################
#Single-Element
###########################
###########################

[decal_pipfull_shields_ex]
isVisible: if self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\exPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

[decal_pipfull_shields_en]
isVisible: if self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\enPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

[decal_pipfull_shields_ki]
isVisible: if self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\kiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

[decal_pipfull_shields_am]
isVisible: if self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\amPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

[decal_pipfull_shields_bi]
isVisible: if self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\bioPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

[decal_pipfull_shields_ne]
isVisible: if self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\necPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*50

###########################
###########################
#Double-Element
###########################
###########################

[decal_pipfull_shields_ex-en]
isVisible: if self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\exenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ki-en]
isVisible: if self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\kienPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ki-ex]
isVisible: if self.tags(includes='ex') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\kiexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ex-am]
isVisible: if self.tags(includes='ex') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\examPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_en-am]
isVisible: if self.tags(includes='en') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\enamPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ki-am]
isVisible: if self.tags(includes='ki') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\kiamPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ex-bi]
isVisible: if self.tags(includes='ex') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\biexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_en-bi]
isVisible: if self.tags(includes='en') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\bienPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ki-bi]
isVisible: if self.tags(includes='ki') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\bikiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ex-ne]
isVisible: if self.tags(includes='ex') and self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\neexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_en-ne]
isVisible: if self.tags(includes='en') and self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\neenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ki-ne]
isVisible: if self.tags(includes='ki') and self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\nekiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-am]
isVisible: if self.tags(includes='bi') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\biamPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-am]
isVisible: if self.tags(includes='ne') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\neamPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-bi]
isVisible: if self.tags(includes='ne') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\nebiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

###########################
###########################
#Triple-Element
###########################
###########################

[decal_pipfull_shields_ki-ex-en]
isVisible: if self.tags(includes='ex') and self.tags(includes='ki') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\kiexenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-bi-am]
isVisible: if self.tags(includes='ne') and self.tags(includes='bi') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\nebiamPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-ki-ex]
isVisible: if self.tags(includes='ne') and self.tags(includes='ki') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\nekiexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-ex-en]
isVisible: if self.tags(includes='ne') and self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neexenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-en-ki]
isVisible: if self.tags(includes='ne') and self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neenkiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-ki-ex]
isVisible: if self.tags(includes='bi') and self.tags(includes='ki') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bikiexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-ex-en]
isVisible: if self.tags(includes='bi') and self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biexenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-en-ki]
isVisible: if self.tags(includes='bi') and self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bienkiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_am-ki-ex]
isVisible: if self.tags(includes='am') and self.tags(includes='ki') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\amexkiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_am-ex-en]
isVisible: if self.tags(includes='am') and self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\amenexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_am-en-ki]
isVisible: if self.tags(includes='am') and self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\amenkiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-ne-ex]
isVisible: if self.tags(includes='bi') and self.tags(includes='ne') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bineexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-ne-en]
isVisible: if self.tags(includes='bi') and self.tags(includes='ne') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bineenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-ne-ki]
isVisible: if self.tags(includes='bi') and self.tags(includes='ne') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\binekiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-am-ex]
isVisible: if self.tags(includes='bi') and self.tags(includes='am') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biamexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-am-en]
isVisible: if self.tags(includes='bi') and self.tags(includes='am') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biamenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_bi-am-ki]
isVisible: if self.tags(includes='bi') and self.tags(includes='am') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biamkiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-am-ex]
isVisible: if self.tags(includes='ne') and self.tags(includes='am') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neamexPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-am-en]
isVisible: if self.tags(includes='ne') and self.tags(includes='am') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neamenPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25

[decal_pipfull_shields_ne-am-ki]
isVisible: if self.tags(includes='ne') and self.tags(includes='am') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neamkiPIP.png
teamColors: false
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*25




###########################################
########## Type check chunks      ###################
###########################################

[resource_kinetic]
displayName: kinetic

[resource_explosive]
displayName: explosive

[resource_energetic]
displayName: energetic

[resource_voidemic]
displayName: voidemic

[resource_biological]
displayName: biological

[resource_ethereal]
displayName: ethereal

[hiddenAction_CHECK_KI]
autoTrigger: if self.numberOfAttachedUnits(withTag='kinetic', greaterThan=0) and self.resource(type='kinetic', equalTo=0)
temporarilyAddTags: ki
setResourcesWithLogic: kinetic=1
#showQuickWarLogToAllPlayers: Kinetic shields have been added to the charge
[hiddenAction_REMOVE_KI]
autoTrigger: if self.numberOfAttachedUnits(withTag='kinetic', lessThan=1) and self.resource(type='kinetic', greaterThan=0)
temporarilyRemoveTags: ki
setResourcesWithLogic: kinetic=0
#showQuickWarLogToAllPlayers: Kinetic shields have been removed from the charge
[hiddenAction_CHECK_EX]
autoTrigger: if self.numberOfAttachedUnits(withTag='explosive', greaterThan=0) and self.resource(type='explosive', equalTo=0)
temporarilyAddTags: ex
setResourcesWithLogic: explosive=1
#showQuickWarLogToAllPlayers: Explosive shields have been added to the charge
[hiddenAction_REMOVE_EX]
autoTrigger: if self.numberOfAttachedUnits(withTag='explosive', lessThan=1) and self.resource(type='explosive', greaterThan=0)
temporarilyRemoveTags: ex
setResourcesWithLogic: explosive=0
#showQuickWarLogToAllPlayers: Explosive shields have been removed from the charge
[hiddenAction_CHECK_EN]
autoTrigger: if self.numberOfAttachedUnits(withTag='energetic', greaterThan=0) and self.resource(type='energetic', equalTo=0)
temporarilyAddTags: en
setResourcesWithLogic: energetic=1
#showQuickWarLogToAllPlayers: Energy shields have been added to the charge
[hiddenAction_REMOVE_EN]
autoTrigger: if self.numberOfAttachedUnits(withTag='energetic', lessThan=1) and self.resource(type='energetic', greaterThan=0)
temporarilyRemoveTags: en
setResourcesWithLogic: energetic=0
#showQuickWarLogToAllPlayers: Energy shields have been removed from the charge
[hiddenAction_CHECK_VO]
autoTrigger: if self.numberOfAttachedUnits(withTag='voidemic', greaterThan=0) and self.resource(type='voidemic', equalTo=0)
temporarilyAddTags: am
setResourcesWithLogic: voidemic=1
#showQuickWarLogToAllPlayers: Kinetic shields have been added to the charge
[hiddenAction_REMOVE_VO]
autoTrigger: if self.numberOfAttachedUnits(withTag='voidemic', lessThan=1) and self.resource(type='voidemic', greaterThan=0)
temporarilyRemoveTags: am
setResourcesWithLogic: voidemic=0
#showQuickWarLogToAllPlayers: Kinetic shields have been removed from the charge
[hiddenAction_CHECK_BI]
autoTrigger: if self.numberOfAttachedUnits(withTag='osmosis', greaterThan=0) and self.resource(type='biological', equalTo=0)
temporarilyAddTags: bi
setResourcesWithLogic: biological=1
#showQuickWarLogToAllPlayers: Explosive shields have been added to the charge
[hiddenAction_REMOVE_BI]
autoTrigger: if self.numberOfAttachedUnits(withTag='osmosis', lessThan=1) and self.resource(type='biological', greaterThan=0)
temporarilyRemoveTags: bi
setResourcesWithLogic: biological=0
#showQuickWarLogToAllPlayers: Explosive shields have been removed from the charge
[hiddenAction_CHECK_NE]
autoTrigger: if self.numberOfAttachedUnits(withTag='ether', greaterThan=0) and self.resource(type='ethereal', equalTo=0)
temporarilyAddTags: ne
setResourcesWithLogic: ethereal=1
#showQuickWarLogToAllPlayers: Energy shields have been added to the charge
[hiddenAction_REMOVE_NE]
autoTrigger: if self.numberOfAttachedUnits(withTag='ether', lessThan=1) and self.resource(type='ethereal', greaterThan=0)
temporarilyRemoveTags: ne
setResourcesWithLogic: ethereal=0
#showQuickWarLogToAllPlayers: Energy shields have been removed from the charge


[core]
@memory past: float
@memory timerDamage: float

[hiddenAction_compareHP-AP-SH]
autoTrigger: true
setUnitMemory: past = self.hp

[action_convertShieldsFromAP]
requireConditional: if not self.tags(includes='timerDamage')
isVisible: false
text: Shields Convert
autoTrigger: if self.shield() < self.maxShield()
temporarilyRemoveTags: damaged

# and memory.past == self.hp
# and self.hasTakenDamage(laterThanSeconds=5)

convertResource_maxAmount: 1
convertResource_minAmount: 1
convertResource_from: ap_c
convertResource_to: shield
convertResource_multiplyAmountBy: 3

[action_hasBeenDamaged]
autoTriggerOnEvent: tookDamage(withTag='primary')
temporarilyAddTags: timerDamage

[action_hasBeenDamagedReset]
autoTriggerOnEvent: tookDamage(withTag='primary')
setUnitMemory: timerDamage = 0

[action_timerDamage]
autoTrigger: if self.tags(includes='timerDamage')
setUnitMemory: timerDamage = memory.timerDamage + 1

[action_timerRemove]
autoTrigger: if memory.timerDamage > 7
setUnitMemory: timerDamage = 0
temporarilyRemoveTags: timerDamage
_____________________________________________________
_____________________________________________________
unitBasics.template
_____________________________________________________
_____________________________________________________
[core]
name: basicUnit

[graphics]

image: ROOT:drawable\null.png
imageScale: 1

total_frames: 36
animation_direction_strideX: 1
animation_direction_strideY: 0
rotate_with_direction: false
animation_direction_units: 10
animation_direction_starting: 0

frame_width: 100
frame_height: 100

[attack]
canAttack: true
canAttackLandUnits: true
canAttackFlyingUnits: true
canAttackUnderwaterUnits:false
turretMultiTargeting: true

[movement]
moveSpeed: 0

moveAccelerationSpeed: 0
moveDecelerationSpeed: 0

maxTurnSpeed: 1
turnAcceleration: 0.02

movementType: LAND

moveSlidingMode: true
moveIgnoringBody: true

_____________________________________________________
_____________________________________________________
wreck.template
_____________________________________________________
_____________________________________________________
[core]
effectOnDeath: CUSTOM:explodePrimary*3, CUSTOM:wreckPieces*15, CUSTOM:wreckPieces2*15

#[decal_base]
#imageStack: base.png,base.png,base.png,base.png,base.png,base.png
#stack_hOffset: 0.6


[movement]
slowDeathFall: false
targetHeight: 8
heightChangeRate: 50

[template_wreck]
life: 1250
xOffsetRelative: 0
yOffsetRelative: 0
dirOffsetRandom: 5
xSpeedRelativeRandom: ${movement.moveSpeed / 2}
ySpeedRelativeRandom: ${movement.moveSpeed}
dirSpeedRandom: 0.2
alsoEmitEffects: CUSTOM:explodePrimary
#delayedStartTimer: 24

[effect_wreckPieces]
spawnChance: 1
@copyFromSection: template_wreck
image: ROOT:drawable\wreck\wreckPieces.png
xSpeedRelative: 0
ySpeedRelative: 0
dirSpeed: 0
dirOffsetRandom: 50
dirSpeedRandom: 0.4
xSpeedRelativeRandom: 0.4
ySpeedRelativeRandom: 0.4
scaleFrom: 0.25
hOffset: 3
life: 250
fadeOut: true

[effect_wreck_part]
spawnChance: 1
@copyFromSection: template_wreck
image: ROOT:drawable\wreck\wreckPieces.png
xSpeedRelative: 0
ySpeedRelative: 0
dirSpeed: 0
dirOffsetRandom: 0
dirSpeedRandom: 0.4
xSpeedRelativeRandom: 0.05
ySpeedRelativeRandom: 0.05
scaleFrom: 1
#hOffset: 3
life: 600
fadeOut: true

[effect_wreckPieces2]
spawnChance: 1
@copyFromSection: effect_wreckPieces
image: ROOT:drawable\wreck\wreckPieces2.png

[hiddenAction_critical]
resetCustomTimer: true 
showQuickWarLogToPlayer: One of your ${core.displayText} is close to critical module failure

[hiddenAction_explode]
showMessageToAllPlayers: %{self.playerName}'s ${core.displayText} was destroyed!
autoTriggerOnEvent: destroyed
spawnEffects: CUSTOM:explodeSecondary*12

[effect_explodePrimary]
xOffsetRelativeRandom: 5
yOffsetRelativeRandom: 5
scaleFrom: 1
scaleTo: 2
life: 6
#lifeRandom: 8
fadeInTime: 0
fadeOut: true
image: ROOT:drawable\wreck\explode.png
alsoPlaySound: ROOT:audio\wreck\explode.wav
dirOffsetRandom: 180
alpha: 1
total_frames: 6
animateFrameStart: 0
animateFrameEnd: 5
animateFramePingPong: false
animateFrameSpeed: 0.25
alsoEmitEffectsOnDeath: CUSTOM:explodePrimary
attachedToUnit: true

[effect_explodeSecondary]
color: #FFEB96
dirOffsetRandom: 360
alwayStartDirAtZero: true
xOffsetAbsoluteRandom: 5
yOffsetAbsoluteRandom: 5
scaleFrom: 0
scaleTo: 3
life: 40
lifeRandom: 15
fadeInTime: 0
fadeOut: true
image: ROOT:drawable\wreck\explode2.png
alsoPlaySound: ROOT:audio\wreck\explode2.wav
alpha: 0.2
#ySpeedRelative: ${movement.moveSpeed}


_____________________________________________________
_____________________________________________________
wreckAdv.template
_____________________________________________________
_____________________________________________________

[core]
effectOnDeath: CUSTOM:explodePrimary*3, CUSTOM:wreckPieces*15, CUSTOM:wreckPieces2*15

#[decal_base]
#imageStack: base.png,base.png,base.png,base.png,base.png,base.png
#stack_hOffset: 0.6


[movement]
slowDeathFall: false
targetHeight: 8
heightChangeRate: 50

[template_wreck]
life: 1250
xOffsetRelative: 0
yOffsetRelative: 0
dirOffsetRandom: 5
xSpeedRelativeRandom: ${movement.moveSpeed / 2}
ySpeedRelativeRandom: ${movement.moveSpeed}
dirSpeedRandom: 0.2
alsoEmitEffects: CUSTOM:explodePrimary
#delayedStartTimer: 24

[effect_wreckPieces]
spawnChance: 1
@copyFromSection: template_wreck
image: ROOT:drawable\wreck\wreckPieces.png
xSpeedRelative: 0
ySpeedRelative: 0
dirSpeed: 0
dirOffsetRandom: 50
dirSpeedRandom: 0.4
xSpeedRelativeRandom: 0.4
ySpeedRelativeRandom: 0.4
scaleFrom: 0.25
hOffset: 3
life: 250
fadeOut: true

[effect_wreck_part]
spawnChance: 1
@copyFromSection: template_wreck
image: ROOT:drawable\wreck\wreckPieces.png
xSpeedRelative: 0
ySpeedRelative: 0
dirSpeed: 0
dirOffsetRandom: 0
dirSpeedRandom: 0.4
xSpeedRelativeRandom: 0.05
ySpeedRelativeRandom: 0.05
scaleFrom: 1
#hOffset: 3
life: 600
fadeOut: true

[effect_wreckPieces2]
spawnChance: 1
@copyFromSection: effect_wreckPieces
image: ROOT:drawable\wreck\wreckPieces2.png

[hiddenAction_critical]
resetCustomTimer: true 
showQuickWarLogToPlayer: One of your ${core.displayText} is close to critical module failure

[hiddenAction_explode]
showMessageToAllPlayers: %{self.playerName}'s ${core.displayText} was destroyed!
autoTriggerOnEvent: destroyed
spawnEffects: CUSTOM:explodeSecondary*12

[effect_explodePrimary]
xOffsetRelativeRandom: 5
yOffsetRelativeRandom: 5
scaleFrom: 1
scaleTo: 2
life: 6
#lifeRandom: 8
fadeInTime: 0
fadeOut: true
image: ROOT:drawable\wreck\explode.png
alsoPlaySound: ROOT:audio\wreck\explode.wav
dirOffsetRandom: 180
alpha: 1
total_frames: 6
animateFrameStart: 0
animateFrameEnd: 5
animateFramePingPong: false
animateFrameSpeed: 0.25
alsoEmitEffectsOnDeath: CUSTOM:explodePrimary
attachedToUnit: true

[effect_explodeSecondary]
color: #FFEB96
dirOffsetRandom: 360
alwayStartDirAtZero: true
xOffsetAbsoluteRandom: 5
yOffsetAbsoluteRandom: 5
scaleFrom: 0
scaleTo: 3
life: 40
lifeRandom: 15
fadeInTime: 0
fadeOut: true
image: ROOT:drawable\wreck\explode2.png
alsoPlaySound: ROOT:audio\wreck\explode2.wav
alpha: 0.2
#ySpeedRelative: ${movement.moveSpeed}


((( detectionReceiver and detector: one is included in the standard ship templates list, and the other is spawned in when a ship spawns in (this also effectively makes every ship count as a bare minimum of 2 units as a consequence); Detector and Receiver are used to determine "detection ranges", which, for example, if an enemy is not spotted, then they will become spotted if their values drop down to 0
)))

_____________________________________________________
_____________________________________________________
detectionReceiver.template
_____________________________________________________
_____________________________________________________



#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.

############### Detection recipient system
############### For initializing viable targets
############### and spotting mechanic

#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.

[core]
@memory detectTimer: float
autoTriggerCooldownTime: 60
autoTriggerCooldownTime_allowDangerousHighCPU: true

[resource_detection]
displayName: Detect
[resource_viewRange]
displayName: View Range
[decal_alphadetected]
isVisible: if not self.tags(includes='detected')
yOffsetAbsolute: -50
xOffsetAbsolute: -60
imageStack: ROOT:drawable\status\sheet.png
frame: 7
total_frames: 8
alwaysStartDirAtZero: true
alpha: self.resource.detection / 15
color: #FF0000
[decal_detected]
isVisible: if self.tags(includes='detected')
yOffsetAbsolute: -50
xOffsetAbsolute: -60
imageStack: ROOT:drawable\status\sheet.png
frame: 7
total_frames: 8
alwaysStartDirAtZero: true
alpha: memory.detectTimer / 9

[hiddenAction_recipient]
autoTriggerOnEvent: created
temporarilyAddTags: recipient, playerUnit
setResourcesWithLogic: viewRange = 500

[decal_unknown]
isVisible: if not self.tags(includes='detected')
image: ROOT:drawable\unknown\1.png
onlyTeam: enemy
teamColors: true
alwaysStartDirAtZero: true
imageScale: 2
onlyOnNonPreview: true

[hiddenAction_timerZero]
autoTrigger: if memory.detectTimer < 0
setUnitMemory: detectTimer = 0

[hiddenAction_timerAbove]
requireConditional: if memory.detectTimer > 0
autoTrigger: if self.resource.detection > 0
setUnitMemory: detectTimer = (memory.detectTimer - 1)


[hiddenAction_detectionRemove]
autoTrigger: if memory.detectTimer == 0 and self.resource.detection > 0
addResources: detection=-1
[hiddenAction_detectionRemove2]
autoTrigger: if memory.detectTimer == 0 and self.resource.detection > 12
addResources: detection=-1
[hiddenAction_detectionRemove3]
autoTrigger: if memory.detectTimer == 0 and self.resource.detection > 6
addResources: detection=-1

[hiddenAction_detectorRefresh]
autoTriggerOnEvent: newMessage(withTag='detect')
setUnitMemory: detectTimer = 9

[hiddenAction_detectionThreshold]
autoTrigger: if self.resource.detection >= 15
setResourcesWithLogic: detection=14
temporarilyAddTags: detected
temporarilyRemoveTags: recipient
setUnitMemory: detectTimer = 9
playSoundAtUnit: ROOT:audio\sounds\alert.wav

[attachment_detector]
x: 0
y: 0
canAttack: true
canBeAttackedAndDamaged: true
onCreateSpawnUnitOf: detector
isUnselectable: true
[hiddenAction_detected]
autoTrigger: if self.resource.detection == 0 
temporarilyRemoveTags: detected
temporarilyAddTags: recipient


_____________________________________________________
_____________________________________________________
detector.ini
_____________________________________________________
_____________________________________________________
[core]
name: detector
maxHp: 20
mass: 50
price: 0
radius: 10
tags: detector
canNotBeDamaged: true
#canNotBeDirectlyAttacked: true
disableDeathOnZeroHp: true
#isUnselectable: true
autoTriggerCooldownTime: 5
autoTriggerCooldownTime_allowDangerousHighCPU: true
canOnlyBeAttackedByUnitsWithTags: detector

[hiddenAction_noParent]
autoTrigger: if not self.hasParent()
deleteSelf: true

[hiddenAction_detectorAlt]
requireConditional: if not self.tags(includes='detectorSpot')
autoTrigger: if self.hasParent(withTag='detected')
temporarilyAddTags: detectorSpot, recipient

[hiddenAction_detectorRemove]
autoTrigger: if not self.hasParent(withTag='detected')
temporarilyRemoveTags: detectorSpot, recipient

[hiddenAction_recipient]
autoTrigger: if self.tags(includes='recipient') and self.resource.refresh > 0
# and self.customTimer(laterThanSeconds=2)
temporarilyRemoveTags: recipient
sendMessageTo: self.parent
sendMessageWithTags: detect
resetCustomTimer: true
setResourcesWithLogic: refresh=0

[hiddenAction_recipient_down]
autoTrigger: if not self.tags(includes='recipient') and self.customTimer(laterThanSeconds=2) and self.tags(includes='detectorSpot')
temporarilyAddTags: recipient
resetCustomTimer: true
setResourcesWithLogic: refresh=0

[attack]
maxAttackRange: 1100
canAttack: true
canAttackLandUnits: true
canAttackFlyingUnits: true
canAttackUnderwaterUnits: true

[graphics]
isVisible: false
image: ROOT:drawable\none.png

[movement]
movementType: LAND
moveSpeed: 0


[resource_detection]
displayName: Detect
[resource_viewRange]
displayName: View Range

[hiddenAction_detectFire_unit]
autoTrigger: true
addWaypoint_type: attack
addWaypoint_prepend: true
addWaypoint_target_nearestUnit_team: enemy
addWaypoint_target_nearestUnit_tagged: recipient

[template_detection]
invisible: true
x: 0
y: 0
projectile: detection
delay: 0.5s
canOnlyAttackUnitsWithTags: playerUnit
canOnlyAttackUnitsWithoutTags: detected
turnSpeed: 20
canAttackCondition: if parent.resource.viewRange >= ${detect_range}

[turret_detection_0]
@define detect_range: 1100
@copyFromSection:template_detection
[turret_detection_1]
@define detect_range: 200
@copyFromSection:template_detection
limitingRange: 200
[turret_detection_2]
@define detect_range: 300
@copyFromSection:template_detection
limitingRange: 300
[turret_detection_3]
@define detect_range: 400
@copyFromSection:template_detection
limitingRange: 400
[turret_detection_4]
@define detect_range: 500
@copyFromSection:template_detection
limitingRange: 500
[turret_detection_5]
@define detect_range: 600
@copyFromSection:template_detection
limitingRange: 600
[turret_detection_6]
@define detect_range: 700
@copyFromSection:template_detection
limitingRange: 700
[turret_detection_7]
@define detect_range: 800
@copyFromSection:template_detection
limitingRange: 800
[turret_detection_8]
@define detect_range: 900
@copyFromSection:template_detection
limitingRange: 900
[turret_detection_9]
@define detect_range: 1000
@copyFromSection:template_detection
limitingRange: 1000

[template_refresh]
invisible: true
x: 0
y: 0
projectile: refresh
delay: 0.1s
canAttackCondition: if parent.resource.viewRange >= ${detect_range}
canOnlyAttackUnitsWithTags: recipient
turnSpeed: 20

[turret_refresh_0]
@define detect_range: 1100
@copyFromSection:template_refresh
[turret_refresh_1]
@define detect_range: 200
@copyFromSection:template_refresh
limitingRange: 200
[turret_refresh_2]
@define detect_range: 300
@copyFromSection:template_refresh
limitingRange: 300
[turret_refresh_3]
@define detect_range: 400
@copyFromSection:template_refresh
limitingRange: 400
[turret_refresh_4]
@define detect_range: 500
@copyFromSection:template_refresh
limitingRange: 500
[turret_refresh_5]
@define detect_range: 600
@copyFromSection:template_refresh
limitingRange: 600
[turret_refresh_6]
@define detect_range: 700
@copyFromSection:template_refresh
limitingRange: 700
[turret_refresh_7]
@define detect_range: 800
@copyFromSection:template_refresh
limitingRange: 800
[turret_refresh_8]
@define detect_range: 900
@copyFromSection:template_refresh
limitingRange: 900
[turret_refresh_9]
@define detect_range: 1000
@copyFromSection:template_refresh
limitingRange: 1000

[resource_refresh]
displayName: Refresh


[projectile_detection]
life: 100
instant: true
directDamage: 1
explodeEffect: NONE
explodeEffectOnShield: NONE
largeHitEffect: false

mutatorDetect_ifUnitWithTags: playerUnit
mutatorDetect_addResourcesDirectHit: detection=3
mutatorDetect_directDamageMultiplier: 0

mutatorNullify_ifUnitWithoutTags: playerUnit
mutatorNullify_directDamageMultiplier: 0

[projectile_refresh]
life: 100
instant: true
directDamage: 1
explodeEffect: NONE
explodeEffectOnShield: NONE
largeHitEffect: false

mutatorDetect_ifUnitWithTags: detector
mutatorDetect_addResourcesDirectHit: refresh=1
mutatorDetect_directDamageMultiplier: 0

mutatorNullify_ifUnitWithoutTags: detector
mutatorNullify_directDamageMultiplier: 0


(((Module templates: differ from ship/building asset code in that they work on different properties (via attachments and stationar), along with many other attributes very specific to modules
)))

_____________________________________________________
_____________________________________________________
destroyed.template
_____________________________________________________
_____________________________________________________

[core]
price: 0 
radius: 13
mass: 1 
displayText: Destroyed ${moduleType}
displayDescription: -- A ${moduleType} slot that has been decimated\n-- It can be recovered if docked with a friendly unit\n-- If recovered, it will also give you experience
maxHp: 100
tags: module, destroyed
#canNotBeDirectlyAttacked: true
#canNotBeDamaged: true

[hiddenAction_deadlyheal]
autoTrigger: true
addResources: hp=100

[template_shields]
isVisible: false

[decal_HPbar]
isVisible: false
[decal_HPfront]
isVisible: false
[decal_pipfull_HP]
isVisible: false
[decal_shieldsbar]
isVisible: false
[decal_shieldsfront]
isVisible: false

[graphics]
image: ROOT:drawable\equipment\grey.png
image_offsetH: 0
rotate_with_direction: false

[decal_crispy]
yOffsetAbsolute: -20
onlyWhenSelectedByAnyPlayer: true
#isVisible: if not self.tags(includes='recovering')
image: ROOT:drawable\equipment\damaged.png
alwaysStartDirAtZero: true

[resource_recover]
displayName: recover

[action_recover]
isVisible: if parent.tags(includes='docked')
text: Recover Module
description: -- Allows you to recover a destroyed module\n-- Takes 20 seconds to recover a module to healthy functions
temporarilyAddTags: recovering
buildSpeed: 0s
showQuickWarLogToPlayer: Recovering ${moduleType}...
setResourcesWithLogic: kinetic=0, energetic=0, explosive=0, voidemic=0, biological=0, ethereal=0

[hiddenAction_recover_increment]
autoTrigger: if self.tags(includes='recovering')
addResources: recover=1

[decal_recovery]
isVisible: if self.tags(includes='recovering') and self.resource.recover >= 2
image: ROOT:drawable/equipment/recovery/bg.png
alwaysStartDirAtZero: true
imageScale: 0.5

[decal_recover_1]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover >= 4
image: ROOT:drawable/equipment/recovery/ph1.png
alwaysStartDirAtZero: true
[decal_recover_2]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover >= 6
image: ROOT:drawable/equipment/recovery/ph2.png
alwaysStartDirAtZero: true
[decal_recover_3]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover >= 8
image: ROOT:drawable/equipment/recovery/ph3.png
alwaysStartDirAtZero: true
[decal_recover_4]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover  >= 10
image: ROOT:drawable/equipment/recovery/ph4.png
alwaysStartDirAtZero: true
[decal_recover_5]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover  >= 12
image: ROOT:drawable/equipment/recovery/ph5.png
alwaysStartDirAtZero: true
[decal_recover_6]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover  >= 14
image: ROOT:drawable/equipment/recovery/ph6.png
alwaysStartDirAtZero: true
[decal_recover_7]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover >=  16
image: ROOT:drawable/equipment/recovery/ph7.png
alwaysStartDirAtZero: true
[decal_recover_8]
imageScale: 0.5
isVisible: if self.tags(includes='recovering') and self.resource.recover >= 18
image: ROOT:drawable/equipment/recovery/ph8.png
alwaysStartDirAtZero: true

[action_recover_finish]
isVisible: false
autoTrigger: if self.resource.recover >= 20
addResources: hp=99, PlayerXP=5
setResourcesWithLogic: recover=0
showQuickWarLogToPlayer: ${moduleType} has been recovered; +5 XP


[attack]
canAttack: true
canAttackFlyingUnits: true
canAttackLandUnits:   true
canAttackUnderwaterUnits: false
maxAttackRange: 300

turretRotateWithBody: true

isFixedFiring: false

[movement]
movementType: LAND

moveSpeed: 1

moveAccelerationSpeed: 1
moveDecelerationSpeed: 1

maxTurnSpeed: 1
turnAcceleration: 1
_____________________________________________________
_____________________________________________________
morph.template
_____________________________________________________
_____________________________________________________
#	#	#	#	#	#	#	#	#	
# Changelog # 
#	#	#	#	#	#	#	#	#	
# 1/27/24
# * 
#	#	#	#	#	#	#	#	#	
# - How DEFAULT sections work:
# In order to create a new weapon, armor, special or shield,
# it must obtain a spot in the DEFAULT section
#
# - DEFAULT or [type] Slot is considered empty
# - DEFAULT have no weight and substantially lower stats
# - DEFAULT are used when docked to refit to a new Module, which will increase the weight
# - Modules can be removed and are replaced by a DEFAULT, returning their weight back
# - Empty modules are deleted upon death but modules still intact can be scavenged
#
#	#	#	#	#	#	#	#	#	

[hiddenAction_recoverDocked]

[core]
copyFrom: ROOT:templates\equipment\shielding.template

maxShield: ${SHIELD}
maxHp: ${DURA}
shieldRegen: 0
displayRadius: 0

startShieldAtZero: true
#autoTriggerCooldownTime: 1
#autoTriggerCooldownTime_allowDangerousHighCPU: true

#canOnlyBeAttackedByUnitsWithTags: player
generation_resources: hp=${DURA / 5}, shield=${SHIELD/ 5}
generation_active: if self.hasParent(withTag='docked')

@memory rangeAverage: float

[hiddenAction_expunge]
autoTrigger: if not self.hasParent()
deleteSelf: true

[hiddenAction_player_tag]
autoTriggerOnEvent: created
description:Create player tag
temporarilyAddTags: player

[hiddenAction_shieldTake]
autoTrigger: if self.parent.shield() > (self.parent.maxShield() / 2) and self.shield() < self.maxShield() and self.hasTakenDamage(laterThanSeconds=5)
takeResources: shield=1
takeResources_includeParent: true
takeResources_triggerActionIfAnyCollected: shieldEffect

[hiddenAction_shieldEffect]
spawnEffects: CUSTOM:shieldFancy

[effect_shieldFancy]
alwaysStartDirAtZero: true
yOffsetAbsolute: 5
image: ROOT:drawable\morph\random\shield\shield.png
total_frames: 36
animateFrameSpeed: 1
animateFrameStart: 0
animateFrameEnd: 35
animateFrameLooping: true
alsoPlaySound: ROOT:audio\sounds\shieldGen.ogg
life: 60
alpha: 0.85
#color: #0FFFFF
hSpeed: 0.2
scaleTo: 0.2
scaleFrom: 0.4

##########################################

##########################################

##########################################

[resource_cerberus]
displayName: cerberus

[hiddenAction_initialize_cerberus]
requireConditional: if parent.tags(includes='cerberus')
autoTriggerOnEvent: created
addResources: cerberus=1
#showQuickWarLogToAllPlayers: Initialized: CERBERUS

[resource_utopia]
displayName: utopia

[hiddenAction_initialize_utopia]
requireConditional: if parent.tags(includes='utopia')
autoTriggerOnEvent: created
addResources: utopia=1
#showQuickWarLogToAllPlayers: Initialized: UTOPIA

[resource_omega]
displayName: omega

[hiddenAction_initialize_omega]
requireConditional: if parent.tags(includes='omega')
autoTriggerOnEvent: created
addResources: omega=1
#showQuickWarLogToAllPlayers: Initialized faction: omega

[resource_parazyote]
displayName: parazyote

[hiddenAction_initialize_parazyote]
requireConditional: if parent.tags(includes='parazyote')
autoTriggerOnEvent: created
addResources: parazyote=1
#showQuickWarLogToAllPlayers: Initialized faction: parazyote

[resource_zephyr]
displayName: zephyr

[hiddenAction_initialize_zephyr]
requireConditional: if parent.tags(includes='zephyr')
autoTriggerOnEvent: created
addResources: zephyr=1
#showQuickWarLogToAllPlayers: Initialized faction: zephyr

[resource_softmarl]
displayName: softmarl

[hiddenAction_initialize_softmarl]
requireConditional: if parent.tags(includes='softmarl')
autoTriggerOnEvent: created
addResources: softmarl=1
#showQuickWarLogToAllPlayers: Initialized faction: softmarl

[resource_vagabond]
displayName: vagabond

[hiddenAction_initialize_vagabond]
requireConditional: if parent.tags(includes='vagabond')
autoTriggerOnEvent: created
addResources: vagabond=1
#showQuickWarLogToAllPlayers: Initialized faction: vagabond

[resource_raiders]
displayName: raiders

[hiddenAction_initialize_raiders]
requireConditional: if parent.tags(includes='raiders')
autoTriggerOnEvent: created
addResources: raiders=1
#showQuickWarLogToAllPlayers: Initialized faction: raiders

[resource_civcore]
displayName: civcore

[hiddenAction_initialize_civcore]
requireConditional: if parent.tags(includes='civcore')
autoTriggerOnEvent: created
addResources: civcore=1
#showQuickWarLogToAllPlayers: Initialized faction: civcore

[resource_psieros]
displayName: psieros

[hiddenAction_initialize_psieros]
showQuickWarLogToAllPlayers: Initialized faction: psieros

[resource_surveyors]
displayName: surveyors

[hiddenAction_initialize_surveyors]
requireConditional: if parent.tags(includes='surveyors')
autoTriggerOnEvent: created
addResources: surveyors=1
#showQuickWarLogToAllPlayers: Initialized faction: surveyors

[resource_abyssal]
displayName: abyssal

[hiddenAction_initialize_abyssal]
requireConditional: if parent.tags(includes='abyssal')
autoTriggerOnEvent: created
addResources: abyssal=1
#showQuickWarLogToAllPlayers: Initialized faction: abyssal


##########################################

##########################################

##########################################




[template_HP]
#isVisible: if self.tags(includes='small') 
alwaysStartDirAtZero: true
layer: afterBody

dirOffset: 0

xOffsetAbsolute: 0
yOffsetAbsolute: -1.5

imageScaleY: 0.5
imageScaleX: 0.3

#stack_hOffset: 0.25

#self.resource.ap_c/(self.resource.ap_m*3)

[decal_HPbar]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_HP
order: 2
imageStack: ROOT:\drawable\hud\action\abb.png
#, ROOT:\drawable\hud\action\abb.png, ROOT:\drawable\hud\action\abb.png, ROOT:\drawable\hud\action\abb.png
color: #AAAAAA
#xOffsetAbsolute: -5*(1-self.resource.ap_c/self.resource.ap_m)
#onlyWhenSelectedByAnyPlayer: false

[decal_HPfront]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_HP
order: 4
imageStack: ROOT:\drawable\hud\action\abf.png
#, ROOT:\drawable\hud\action\abf.png, ROOT:\drawable\hud\action\abf.png, ROOT:\drawable\hud\action\abf.png
color: #000000
#onlyWhenSelectedByAnyPlayer: false


[decal_pipfull_HP]
# GREEN
isVisible: true
@copyFromSection: template_HP
order: 3
imageStack: ROOT:\drawable\hud\action\abPIP6.png
#, ROOT:\drawable\hud\action\abPIP.png, ROOT:\drawable\hud\action\abPIP.png, ROOT:\drawable\hud\action\abPIP.png
teamColors: true
xOffsetAbsolute: -7.5
#xOffsetAbsolute: -5*(1-self.resource.ap_c/self.resource.ap_m)
#color: #00FF00
onlyWhenSelectedByAnyPlayer: false
imageScaleX:  self.resource.hp/self.maxHp*15

[template_shields]
#isVisible: if self.tags(includes='small') 
xOffsetAbsolute: 0
yOffsetAbsolute: 1.5

alwaysStartDirAtZero: true
layer: afterBody

imageScaleY: 0.5
imageScaleX:  self.resource.shield/self.maxShield()*4

[decal_shieldsicon]
isVisible:false

[decal_shieldsbar]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 1
image: ROOT:\drawable\hud\shields\oSHb-s.png
imageScaleX: 0.3

[decal_shieldsfront]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 7
image: ROOT:\drawable\hud\shields\oSHf-s.png
imageScaleX: 0.3

################
################

[action_hp]
pos: 0
buildSpeed: 0s
text: Durability:%{self.resource.hp}/%{self.maxHp}
displayType: infoOnlyNoBox
addResources:  1

[action_shields]
pos: 0
buildSpeed: 0s
text: Shields:%{self.resource.shield}/%{self.maxShield}
displayType: infoOnlyNoBox
addResources:  1

[action_ap]
pos: 0
buildSpeed: 0s
text: AP: %{self.resource.ap_c} / %{self.resource.ap_m}
displayType: infoOnlyNoBox
addResources:  1

[action_weight]
pos: 0
buildSpeed: 0s
text: Weight: ${weightCheck}
displayType: infoOnlyNoBox
addResources:  1


#Relays the inheritance of the faction + class to the module in order for the module to customize itself to color + stats respectively

[core]

name: morph
displayDescription: EQUIPMENT_STUFF_INITIALIZATION
class: CustomUnitMetadata
price:  5
maxHp: 1
disableDeathOnZeroHp: true
radius: 15

energyNeedsToRechargeToFull: true
tags: module

defineUnitMemory: float timing, float analyzeTiming, float pickShield

#soundOnAttackOrder:
soundOnNewSelection: ROOT:audio\sounds\selectModule.wav

#   #   #   #   #   #   #   #   #   #   #   #   
#   #   Misc stat in resource form
#   #   #   #   #   #   #   #   #   #   #   #   

[resource_ap_m]
displayName: ap Max
[resource_ap_c]
displayName: ap Current

#   #   #   #   #   #   #   #   #   #   #   #   
#   #    Weight + Weight check module '
#   #   #   #   #   #   #   #   #   #   #   #   


[resource_weight_m]
displayName: Weight Max
[resource_weight_c]
displayName: Weight Current

#   #   #   #   #   #   #   #   #   #   #   #   
#   #    Weapon amount + Weapon DPS + Weapon Range
#   #   #   #   #   #   #   #   #   #   #   #   

[resource_num_DPS]
displayName: DPS Number Count
[resource_val_DPS]
displayName: DPS Value Count
[resource_val_RANGE]
displayName: DPS Value Count


[resource_cargo]
displayName: cargo


[hiddenAction_resettags]
autoTrigger: if self.lastConverted(withinSeconds=1)
#resetToDefaultTags: true


[template_weightCheck]
isLocked: if not self.hasParent(withTag='docked')
isLockedMessage: You need to dock to a Ship Bay in order to refit!
isLockedAlt: if parent.resource.weight_c + ${weightCheck} >= parent.resource.weight_m
isLockedAltMessage: There isn`t enough room... Try lowering the weight...
isLockedAlt2: if not numberOfUnitsInTeam(withTag='item_${itemName}', withinRange=250, greaterThan=0)
## and nearestUnit(withTag='refit', relation='own').resource.item_${itemName} == 0
isLockedAlt2Message: You need to have the equipment nearby to refit!
requireConditional: if parent.resource.weight_c <= (parent.resource.weight_m + ${weightCheck}) and numberOfUnitsInTeam(withTag='item_${itemName}', greaterThan=0, withinRange=250)
isVisible: if self.hasParent(withTag='docked')
isActive: if (parent.resource.weight_c + ${weightCheck}) <= parent.resource.weight_m
addResources: weight_c=${weightCheck}
description: Req. Mass: ${weightCheck}
onlyOneUnitAtATime: true
allowMultipleInQueue: false
convertTo_keepCurrentTags: true
takeResources: item_${itemName}=1, contains=1
takeResources_includeUnitsWithinRange: 250
takeResources_discardCollected: true
spawnEffectsOnQueue: CUSTOM:refitSpark
whenBuilding_playAnimation: refitSpark
whenBuilding_triggerAction: refittingMessage
buildSpeed: 0s
convertTo_keepCurrentTags: true
iconImage: ROOT:drawable\modules\${itemName}.png
#ai_isHighPriority: true

[resource_contains]
displayName: contains

[hiddenAction_refittingMessage]
showQuickWarLogToPlayer: Refitting Module... 

[action_analysis_on]
isVisible: false
pos: 1
buildSpeed: 0
text: Analyze ON
description: Turn on analysis view for 10 seconds
#isVisible: if not self.tags(includes='analyze')
temporarilyAddTags: analyze

[action_analysis_off]
isVisible: false
autoTrigger: if self.resource.analyzeTime > 9
pos: 1
buildSpeed: 0
text: Analyze OFF
description: Turn off analysis mode 
#isVisible: if self.tags(includes='analyze')
temporarilyRemoveTags: analyze

setResourcesWithLogic: analyzeTime=0

[action_debugBurning]
isVisible: false
text: debugburn
setResourcesWithLogic: hp = 1

[hiddenAction_burning]
autoTrigger: if (self.hp / self.maxHp) < 0.5
spawnEffects: CUSTOM:burning, sizzle*3
[effect_burning]
dirOffset: -35
yOffsetAbsolute: -4
alwayStartDirAtZero: true
scaleTo: 0.5
scaleFrom: 0.5
life: 130
image: ROOT:drawable\animations\burning.png
total_frames: 90 
animateFrameStart: 1
animateFrameEnd: 89
animateFrameSpeed: 0.75
animateFrameLooping: true
#fadeOut: true
alpha: 1.5
alsoEmitEffectsOnDeath: CUSTOM:sizzle*3
[effect_sizzle]
delayedStartTimer: 15
scaleTo: 0
scaleFrom: 0
image: ROOT:drawable\null.png
spawnChance: 0.05
life: 1
alsoPlaySound: ROOT:audio\sounds\crackle.wav:0.2

[resource_analyzeTime]
displayName: analyzeTime

[hiddenAction_timingAnalyze_1]
text: up
autoTrigger: if self.customTimer(laterThanSeconds=0.25) and self.tags(includes='analyze')
addResources: analyzeTime=1

[hiddenAction_shipDetected]
autoTrigger: if parent.tags(includes='detected')
temporarilyAddTags: detected
[hiddenAction_shipUndetected]
autoTrigger: if not parent.tags(includes='detected')
temporarilyRemoveTags: detected
[decal_unknown]
#yOffsetAbsolute: 40
isVisible: if not parent.tags(includes='detected')
image: ROOT:drawable\unknown\1.png
onlyTeam: enemy
teamColors: true
alwaysStartDirAtZero: true
imageScale: 0.75
order: 10
onlyOnNonPreview: true


[action_swap_empty]
isVisible: if self.hasParent(withTag='docked')
text: Remove Module
description: Gains back occupied weight while removing the MODULE to be used later
autoTriggerOnEvent: destroyed
takeResources: weight_c=${weightCheck}
takeResources_includeParent: true
takeResources_discardCollected: true
alsoTriggerAction: swap_spawnTug
setUnitMemory: rangeAverage = self.resource.val_RANGE / self.resource.num_DPS
setResourcesWithLogic: explosive=0, kinetic=0, energetic=0, void=0, biological=0, ethereal=0

[hiddenAction_swap_spawnTug]
requireConditional: if parent.hp > 0
spawnUnits: weaponContainer(addResources=item_${part}:1|contains:1)

###########################################
###########################################
###########################################
###########################################
###########################################
###########################################
###########################################
###########################################
###########################################
###########################################



























[resource_cerberus]
displayName: cerberus

[hiddenAction_checkfactioncerberus]
autoTrigger: if parent.resource.cerberus > 0 and not self.tags(includes='cerberus')
takeResources: cerberus=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addFactionCerberus

[hiddenAction_addfactioncerberus]
requireConditional: if self.tags(includes='weapon')
#showQuickWarLogToAllPlayers: A ship has been identified as a CERBERUS WEAPON
temporarilyAddTags: cerberus

###########################################
########## Utopia check ###################
###########################################

[resource_utopia]
displayName: utopia

[hiddenAction_checkfactionutopia]
autoTrigger: if parent.resource.utopia > 0 and not self.tags(includes='utopia')
takeResources: utopia=1
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addFactionutopia
#takeResources_discardCollected: true

[hiddenAction_addfactionutopia]
requireConditional: if self.tags(includes='weapon')
#showQuickWarLogToAllPlayers: A ship has been identified as a CERBERUS WEAPON
temporarilyAddTags: utopia


[resource_softmarl]
displayName:softmarl

[hiddenAction_checkFactionSoftmarl]
autoTrigger: if parent.resource.softmarl > 0 and not self.tags(includes='softmarl')
takeResources:softmarl=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addFactionSoftmarl

[hiddenAction_addFactionSoftmarl]
#showQuickWarLogToAllPlayers: A ship has been identified as a SOFTMARL
temporarilyAddTags:softmarl


[resource_cruiser]
displayName: cruiser
[resource_battleship]
displayName: battleship
[resource_gunship]
displayName: gunship
[resource_destroyer]
displayName: destroyer
[resource_hunter]
displayName: hunter
[resource_cog]
displayName: cog
[resource_battlecruiser]
displayName: battlecruiser
[resource_carrier]
displayName: carrier
[resource_cutter]
displayName: cutter
[resource_frigate]
displayName: frigate
[resource_freighter]
displayName: freighter
[resource_corvette]
displayName: corvette
[resource_platform]
displayName: platform
[resource_artillery]
displayName: artillery

[hiddenAction_checkClassdestroyer]
@define class: destroyer
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassdestroyer]
@define class: destroyer
temporarilyAddTags: ${class}



[hiddenAction_checkClasscarrier]
@define class: carrier
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClasscarrier]
@define class: carrier
temporarilyAddTags: ${class}



[hiddenAction_checkClasscog]
@define class: cog
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClasscog]
@define class: cog
temporarilyAddTags: ${class}



[hiddenAction_checkClassbattlecruiser]
@define class: battlecruiser
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassbattlecruiser]
@define class: battlecruiser
temporarilyAddTags: ${class}



[hiddenAction_checkClassFrigate]
@define class: frigate
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassFrigate]
@define class: frigate
temporarilyAddTags: ${class}



[hiddenAction_checkClassFreighter]
@define class: freighter
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassFreighter]
@define class: freighter
temporarilyAddTags: ${class}



[hiddenAction_checkClassFrigate]
@define class: frigate
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassFrigate]
@define class: frigate
temporarilyAddTags: ${class}


[hiddenAction_checkClassHunter]
@define class: hunter
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassHunter]
@define class: hunter
temporarilyAddTags: ${class}


[hiddenAction_checkClassGunship]
@define class: gunship
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassGunship]
@define class: gunship
temporarilyAddTags: ${class}


[hiddenAction_checkClassCutter]
@define class: cutter
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassCutter]
@define class: cutter
temporarilyAddTags: ${class}


[hiddenAction_checkClassCorvette]
@define class: corvette
autoTrigger: if parent.resource.${class} > 0 and not self.tags(includes='${class}')
takeResources: ${class}=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClass${class}

[hiddenAction_addClassCorvette]
@define class: corvette
temporarilyAddTags: ${class}

[hiddenAction_checkClassCruiser]
autoTrigger: if parent.resource.cruiser > 0 and not self.tags(includes='cruiser')
takeResources: cruiser=1
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClassCruiser
#takeResources_discardCollected: true

[hiddenAction_addClassCruiser]
#showQuickWarLogToAllPlayers: DEBUG: module-cruiser-inherit
temporarilyAddTags: cruiser

[hiddenAction_checkClassBattleship]
autoTrigger: if parent.resource.battleship > 0 and not self.tags(includes='battleship')
takeResources: battleship=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClassBattleship

[hiddenAction_addClassBattleship]
temporarilyAddTags: battleship

[hiddenAction_checkClassPlatform]
autoTrigger: if parent.resource.platform > 0 and not self.tags(includes='platform')
takeResources: platform=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClassPlatform

[hiddenAction_addClassPlatform]
temporarilyAddTags: platform

[hiddenAction_checkClassArtillery]
autoTrigger: if parent.resource.artillery > 0 and not self.tags(includes='artillery')
takeResources: artillery=1
#takeResources_discardCollected: true
takeResources_includeParent: true
takeResources_keepResourcesOnTarget: true
takeResources_triggerActionIfAnyCollected: addClassArtillery

[hiddenAction_addClassArtillery]
temporarilyAddTags: artillery

[action_debug_giveAP]
text: GIVE AP DEBUG
isVisible: false
autoTrigger: false
addResources: ap_c=99

[graphics]

scaleImagesTo: 16

total_frames: 36
image: ROOT:drawable\equipment\basesheet.png
rotate_with_direction: false

animation_moving_start: 0
animation_moving_end: 35
animation_moving_speed: 1
animation_idle_start: 0
animation_idle_end: 35
animation_idle_speed: 5
animation_idle_pingPong: false

movementEffectRate: 6

showSelectionIndicator: false
showEnergyBar: true

[decal_turret_selectIndicator]
teamColors: true
order: 3
imageStack: ROOT:drawable\equipment\selectBox.png
stack_hOffset: 1
alpha: memory.timing / 2
alwaysStartDirAtZero: true
onlyWhenSelectedByAnyPlayer: true
xOffsetAbsolute: 0
yOffsetAbsolute: 0
imageScale: memory.timing

[hiddenAction_timing_1]
text: up
autoTriggerOnEvent: created
autoTrigger: if memory.timing==0.6 and self.customTimer(laterThanSeconds=1)
setUnitMemory: timing = 1
resetCustomTimer: true 

[hiddenAction_timing_2]
text: down
autoTrigger: if memory.timing==1 and self.customTimer(laterThanSeconds=1)
setUnitMemory: timing = 0.9
resetCustomTimer: true 

[hiddenAction_timing_3]
text: down
autoTrigger: if memory.timing==0.9 and self.customTimer(laterThanSeconds=1)
setUnitMemory: timing = 0.8
resetCustomTimer: true 

[hiddenAction_timing_4]
text: down
autoTrigger: if memory.timing==0.8 and self.customTimer(laterThanSeconds=1)
setUnitMemory: timing = 0.6
resetCustomTimer: true 

[attack]
turretRotateWithBody: true

canAttack: true
canAttackFlyingUnits: true
canAttackLandUnits:   true
canAttackUnderwaterUnits: false

turretSize: 7
turretTurnSpeed: 4

maxAttackRange: 999
shootDelay: 0s

isFixedFiring: false

[turret_proximity]
canAttackCondition: false
x: 0
y: 0
canShoot: false
image: ROOT:drawable\null.png
interceptProjectiles_withTags: primary
interceptProjectiles_andUnderDistance: 15
projectile: proximity
canOnlyAttackUnitsWithTags: primary

[projectile_proximity]
image: ROOT:drawable\effects\explosions\orangepulse.png
directDamage: 0
life: 250
instant: true
interceptProjectile_removeTargetLifeOnly: true
explodeEffect: NONE
explodeEffectOnShield: NONE

tags: proximity


[movement]
movementType: HOVER
moveSpeed: 0.55
moveAccelerationSpeed: 0.009
moveDecelerationSpeed: 0.002


targetHeight:2
targetHeightDrift: 1

maxTurnSpeed: 1
turnAcceleration: 1

moveSlidingMode :true
moveIgnoringBody: true
moveSlidingDir:  181


############################
############################
# DECALS #####################
############################
############################

##################################

##################################

##################################


[decal_baseturret_notselect]
isVisible: if self.globalTeamTags(includes='visualDecal1') and not self.hasParent(withTag='docked')
layer: onTop
order: 10

[decal_baseturret_select]
layer: onTop
order: 10
isVisible: if self.globalTeamTags(includes='visualDecal1') and not self.hasParent(withTag='docked')

[decal_baseturret_docked]
@copyFromSection: decal_baseturret_select
layer: onTop
order: 11
stack_hOffset: 0.35
isVisible: if self.hasParent(withTag='docked')
onlyWhenSelectedByAnyPlayer: false
xOffsetAbsolute: 0
yOffsetAbsolute: -8
imageScale: 0.3
alpha: 0.6

[decal_baseturret_docked_selected_box]
@copyFromSection: decal_baseturret_select
layer: onTop
order: 11
stack_hOffset: 1.25
isVisible: if self.hasParent(withTag='docked')
onlyWhenSelectedByAnyPlayer: true
xOffsetAbsolute: 0
yOffsetAbsolute: -8
imageScale: 0.4

[decal_baseturret_docked_selected_diamond]
layer: onTop
order: 12
stack_hOffset: 1.25
isVisible: if self.hasParent(withTag='docked')
onlyWhenSelectedByAnyPlayer: true
xOffsetAbsolute: 0
yOffsetAbsolute: -14
imageScale: 0.4
imageStack: ROOT:drawable\dockedBox.png


[animation_refitSpark]
effect_0.15s: {name:CUSTOM|refitSpark*5,  x: 0,y: 0}
effect_0.12s: {name:CUSTOM|refitSpark*5,  x: 0,y: 0}


[effect_refitSpark]
spawnChance: 0.2
life: 40
dirSpeedRandom: 4
xOffsetRelativeRandom: 1
yOffsetRelativeRandom: 1
xSpeedRelativeRandom: 1
ySpeedRelativeRandom: 1
fadeOut: true
image: ROOT:drawable\spark.png
physics: true
physicsGravity: 1
hSpeed: 2
alsoPlaySound: ROOT:audio\sounds\equip.wav

#[decal_baseturret_docked_name]
#layer: onTop
#order: 11
#stack_hOffset: 0.35
#isVisible: if self.hasParent(withTag='docked')
#onlyWhenSelectedByAnyPlayer: false
#xOffsetAbsolute: -10
#yOffsetAbsolute: -5
#image: name.png
    #############################
#### This is the visual info  box, not the icon ####
    #############################


[decal_turret]
isVisible: if self.tags(includes='analyze')

[decal_turret_selected]
isVisible: if self.tags(includes='analyze')

[decal_turret_selected_top]
isVisible: if self.tags(includes='analyze')

    ####################################
#### ####
    ####################################


###############
# GENERATOR script    #
# Provides AP to a ship#
###############

#[hiddenAction_analysis_on]
#requireConditional: if self.tags(includes='shields')
#pos: -1
#buildSpeed: 0
#text: Analyze ON
#description: Turn on analysis view for 10 seconds
#isVisible: if not self.tags(includes='analyze')
#temporarilyAddTags: analyze
#[hiddenAction_AP_reset]
#requireConditional: if self.tags(includes='shields')
#autoTrigger: if self.resource.analyzeTime > 56
#pos: -1
#buildSpeed: 0
#text: Analyze OFF
#description: Turn off analysis mode 
#isVisible: if self.tags(includes='analyze')
#temporarilyRemoveTags: analyze
#setResourcesWithLogic: analyzeTime=0

[hiddenAction_shieldsContingency]
requireConditional: if self.tags(includes='shields')
autoTriggerOnEvent: created
setResourcesWithLogic: ap_m = 3
[hiddenAction_genCycleSet]
autoTrigger: if self.resource.ap_c < self.resource.ap_m and self.tags(includes='shields')
addResources: ap_c = 1
#[hiddenAction_genCycleCount]
#text: genCycle Count
#autoTrigger: if self.resource.genCycle >= 8 and self.tags(includes='shields')
#setResourcesWithLogic: genCycle=0
#addResourcesWithLogic: ap_c = parent.resource.ap_m / 10
#[hiddenAction_genCycleAdd]
#text: genCycle
#autoTrigger: if self.customTimer(laterThanSeconds=0.25) and self.tags(includes='shields')
#addResources: genCycle=0.5

[hiddenAction_genCycle]
autoTrigger: if self.tags(includes='shields')
addResourcesWithLogic: shield=(self.maxShield() / 8)

[resource_genCycle]
displayName: genCycle







################


#################


##################


##################


#################


################


[resource_kinetic]
displayName: kinetic

[resource_explosive]
displayName: explosive

[resource_energetic]
displayName: energetic

[resource_voidemic]
displayName: voidemic

[resource_biological]
displayName: biological

[resource_ethereal]
displayName: ethereal

#[hiddenAction_CHECK_KI]
#autoTrigger: if self.parent(withTag='kinetic') and self.resource(type='kinetic', equalTo=0)
#temporarilyAddTags: ki
#setResourcesWithLogic: kinetic=1
#showQuickWarLogToAllPlayers: Kinetic shields have been added to the charge
#[hiddenAction_REMOVE_KI]
#autoTrigger: if self.parent(withTag='kinetic') and self.resource(type='kinetic', greaterThan=0)
#temporarilyRemoveTags: ki
#setResourcesWithLogic: kinetic=0
#showQuickWarLogToAllPlayers: Kinetic shields have been removed from the charge
#[hiddenAction_CHECK_EX]
#autoTrigger: if self.parent(withTag='explosive') and self.resource(type='explosive', equalTo=0)
#temporarilyAddTags: ex
#setResourcesWithLogic: explosive=1
#showQuickWarLogToAllPlayers: Explosive shields have been added to the charge
#[hiddenAction_REMOVE_EX]
#autoTrigger: if self.parent(withTag='explosive') and self.resource(type='explosive', greaterThan=0)
#temporarilyRemoveTags: ex
#setResourcesWithLogic: explosive=0
#showQuickWarLogToAllPlayers: Explosive shields have been removed from the charge
#[hiddenAction_CHECK_EN]
#autoTrigger: if self.parent(withTag='energetic') and self.resource(type='energetic', equalTo=0)
#temporarilyAddTags: en
#setResourcesWithLogic: energetic=1
#showQuickWarLogToAllPlayers: Energy shields have been added to the charge
#[hiddenAction_REMOVE_EN]
#autoTrigger: if self.parent(withTag='energetic') and self.resource(type='energetic', greaterThan=0)
#temporarilyRemoveTags: en
#setResourcesWithLogic: energetic=0
#showQuickWarLogToAllPlayers: Energy shields have been removed from the charge
#[hiddenAction_CHECK_VO]
#autoTrigger: if self.parent(withTag='void') and self.resource(type='voidemic', equalTo=0)
#temporarilyAddTags: am
#setResourcesWithLogic: voidemic=1
#showQuickWarLogToAllPlayers: Kinetic shields have been added to the charge
#[hiddenAction_REMOVE_VO]
#autoTrigger: if self.parent(withTag='void') and self.resource(type='voidemic', greaterThan=0)
#temporarilyRemoveTags: am
#setResourcesWithLogic: voidemic=0
#showQuickWarLogToAllPlayers: Kinetic shields have been removed from the charge
#[hiddenAction_CHECK_BI]
#autoTrigger: if self.parent(withTag='osmosis') and self.resource(type='biological', equalTo=0)
#temporarilyAddTags: bi
#setResourcesWithLogic: biological=1
#showQuickWarLogToAllPlayers: Explosive shields have been added to the charge
#[hiddenAction_REMOVE_BI]
#autoTrigger: if self.parent(withTag='osmosis') and self.resource(type='biological', greaterThan=0)
#temporarilyRemoveTags: bi
#setResourcesWithLogic: biological=0
#showQuickWarLogToAllPlayers: Explosive shields have been removed from the charge
#[hiddenAction_CHECK_NE]
#autoTrigger: if self.parent.resource.ethereal > 0 and self.resource(type='ethereal', equalTo=0)
#temporarilyAddTags: ne
#setResourcesWithLogic: ethereal=1
#showQuickWarLogToAllPlayers: ETHER SHIELDS on part
#[hiddenAction_REMOVE_NE]
#autoTrigger: if self.parent.resource.ethereal == 0 and self.resource(type='ethereal', greaterThan=0)
#temporarilyRemoveTags: ne
#setResourcesWithLogic: ethereal=0
#showQuickWarLogToAllPlayers: ETHER SHIELDS removed from part








########################
#Debug shit#
########################

#[hiddenAction_clearweight]
#pos: 0
#setResourcesWithLogic: weight_c=0




#[hiddenAction_punchClass_light1]
#@define punchClass: punchClass_light1
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_light2]
#@define punchClass: punchClass_light2
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_light3]
#@define punchClass: punchClass_light3
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_medium1]
#@define punchClass: punchClass_medium1
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#setUnitStats: maxShield+=${SHIELD}, maxHp+=${DURA}
#[hiddenAction_punchClass_medium2]
#@define punchClass: punchClass_medium2
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_medium3]
#@define punchClass: punchClass_medium3
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_heavy1]
#@define punchClass: punchClass_heavy1
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_heavy2]
#@define punchClass: punchClass_heavy2
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}
#[hiddenAction_punchClass_heavy3]
#@define punchClass: punchClass_heavy3
#autoTriggerOnEvent: created
#requireConditional: if self.hasParent(withTag='${punchClass}') and not self.tags(includes='${punchClass}') 
#temporarilyAddTags: ${punchClass}


_____________________________________________________
_____________________________________________________
shielding.template
_____________________________________________________
_____________________________________________________




##################################

###########################
###########################
###########################
###########################
#Shield bar indicators for Shields
#Changes based on what type of shields
###########################
###########################
###########################
###########################

###########################
#Shields Basics
###########################

[decal_pipfull_shields_normal]
isVisible: if not self.tags(includes='ex') or not self.tags(includes='ki') or not self.tags(includes='en') or not self.tags(includes='am') or not self.tags(includes='ne') or not self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 1
image: ROOT:\drawable\hud\shields\norPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

###########################
###########################
#Single-Element
###########################
###########################

[decal_pipfull_shields_ex]
isVisible: if self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\exPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

[decal_pipfull_shields_en]
isVisible: if self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\enPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

[decal_pipfull_shields_ki]
isVisible: if self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\kiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

[decal_pipfull_shields_am]
isVisible: if self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\amPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

[decal_pipfull_shields_bi]
isVisible: if self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\bioPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

[decal_pipfull_shields_ne]
isVisible: if self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 2
image: ROOT:\drawable\hud\shields\necPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*15

###########################
###########################
#Double-Element
###########################
###########################

[decal_pipfull_shields_ex-en]
isVisible: if self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\exenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ki-en]
isVisible: if self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\kienPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ki-ex]
isVisible: if self.tags(includes='ex') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\kiexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ex-am]
isVisible: if self.tags(includes='ex') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\examPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_en-am]
isVisible: if self.tags(includes='en') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\enamPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ki-am]
isVisible: if self.tags(includes='ki') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\kiamPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ex-bi]
isVisible: if self.tags(includes='ex') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\biexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_en-bi]
isVisible: if self.tags(includes='en') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\bienPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ki-bi]
isVisible: if self.tags(includes='ki') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\bikiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ex-ne]
isVisible: if self.tags(includes='ex') and self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\neexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_en-ne]
isVisible: if self.tags(includes='en') and self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\neenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ki-ne]
isVisible: if self.tags(includes='ki') and self.tags(includes='ne')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\nekiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-am]
isVisible: if self.tags(includes='bi') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\biamPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-am]
isVisible: if self.tags(includes='ne') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\neamPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-bi]
isVisible: if self.tags(includes='ne') and self.tags(includes='bi')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 3
image: ROOT:\drawable\hud\shields\nebiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

###########################
###########################
#Triple-Element
###########################
###########################

[decal_pipfull_shields_ki-ex-en]
isVisible: if self.tags(includes='ex') and self.tags(includes='ki') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\kiexenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-bi-am]
isVisible: if self.tags(includes='ne') and self.tags(includes='bi') and self.tags(includes='am')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\nebiamPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-ki-ex]
isVisible: if self.tags(includes='ne') and self.tags(includes='ki') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\nekiexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-ex-en]
isVisible: if self.tags(includes='ne') and self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neexenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-en-ki]
isVisible: if self.tags(includes='ne') and self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neenkiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-ki-ex]
isVisible: if self.tags(includes='bi') and self.tags(includes='ki') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bikiexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-ex-en]
isVisible: if self.tags(includes='bi') and self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biexenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-en-ki]
isVisible: if self.tags(includes='bi') and self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bienkiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_am-ki-ex]
isVisible: if self.tags(includes='am') and self.tags(includes='ki') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\amexkiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_am-ex-en]
isVisible: if self.tags(includes='am') and self.tags(includes='ex') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\amenexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_am-en-ki]
isVisible: if self.tags(includes='am') and self.tags(includes='en') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\amenkiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-ne-ex]
isVisible: if self.tags(includes='bi') and self.tags(includes='ne') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bineexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-ne-en]
isVisible: if self.tags(includes='bi') and self.tags(includes='ne') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\bineenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-ne-ki]
isVisible: if self.tags(includes='bi') and self.tags(includes='ne') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\binekiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-am-ex]
isVisible: if self.tags(includes='bi') and self.tags(includes='am') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biamexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-am-en]
isVisible: if self.tags(includes='bi') and self.tags(includes='am') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biamenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_bi-am-ki]
isVisible: if self.tags(includes='bi') and self.tags(includes='am') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\biamkiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-am-ex]
isVisible: if self.tags(includes='ne') and self.tags(includes='am') and self.tags(includes='ex')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neamexPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-am-en]
isVisible: if self.tags(includes='ne') and self.tags(includes='am') and self.tags(includes='en')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neamenPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5

[decal_pipfull_shields_ne-am-ki]
isVisible: if self.tags(includes='ne') and self.tags(includes='am') and self.tags(includes='ki')
#isVisible: if self.tags(includes='small')
@copyFromSection: template_shields
order: 4
image: ROOT:\drawable\hud\shields\neamkiPIP.png
teamColors: true
#xOffsetAbsolute: -12.5*(1-self.hp()/self.maxHp())
imageScaleX: self.shield()/self.maxShield()*7.5




###########################################
########## Type check chunks      ###################
###########################################

[resource_kinetic]
displayName: kinetic

[resource_explosive]
displayName: explosive

[resource_energetic]
displayName: energetic

[resource_voidemic]
displayName: voidemic

[resource_biological]
displayName: biological

[resource_ethereal]
displayName: ethereal

[hiddenAction_CHECK_KI]
autoTrigger: if self.hasParent(withTag='ki') and self.resource(type='kinetic', equalTo=0)
temporarilyAddTags: ki
setResourcesWithLogic: kinetic=1
showQuickWarLogToAllPlayers: Kinetic shields added to part ...
playSoundAtUnit: ROOT:audio\shields\ki.ogg
[hiddenAction_REMOVE_KI]
autoTrigger: if not self.hasParent(withTag='ki') and self.resource(type='kinetic', greaterThan=0)
temporarilyRemoveTags: ki
setResourcesWithLogic: kinetic=0
showQuickWarLogToAllPlayers: Kinetic shields removed from part ...
playSoundAtUnit: ROOT:audio\shields\remove.ogg
[hiddenAction_CHECK_EX]
autoTrigger: if self.hasParent(withTag='ex') and self.resource(type='explosive', equalTo=0)
temporarilyAddTags: ex
setResourcesWithLogic: explosive=1
showQuickWarLogToAllPlayers: Explosive shields added to part ...
playSoundAtUnit: ROOT:audio\shields\ex.ogg
[hiddenAction_REMOVE_EX]
autoTrigger: if not self.hasParent(withTag='ex') and self.resource(type='explosive', greaterThan=0)
temporarilyRemoveTags: ex
setResourcesWithLogic: explosive=0
showQuickWarLogToAllPlayers: Explosive shields removed from part ...
playSoundAtUnit: ROOT:audio\shields\remove.ogg
[hiddenAction_CHECK_EN]
autoTrigger: if self.hasParent(withTag='en') and self.resource(type='energetic', equalTo=0)
temporarilyAddTags: en
setResourcesWithLogic: energetic=1
showQuickWarLogToAllPlayers: Energy shields added to part ...
playSoundAtUnit: ROOT:audio\shields\en.ogg
[hiddenAction_REMOVE_EN]
autoTrigger: if not self.hasParent(withTag='en') and self.resource(type='energetic', greaterThan=0)
temporarilyRemoveTags: en
setResourcesWithLogic: energetic=0
showQuickWarLogToAllPlayers: Energy shields removed from part ...
playSoundAtUnit: ROOT:audio\shields\remove.ogg

[hiddenAction_CHECK_VO]
autoTrigger: if self.hasParent(withTag='am') and self.resource(type='voidemic', equalTo=0)
temporarilyAddTags: am
setResourcesWithLogic: voidemic=1
showQuickWarLogToAllPlayers: Kinetic shields added to part ...
playSoundAtUnit: ROOT:audio\shields\am.ogg
[hiddenAction_REMOVE_VO]
autoTrigger: if not self.hasParent(withTag='am') and self.resource(type='voidemic', greaterThan=0)
temporarilyRemoveTags: am
setResourcesWithLogic: voidemic=0
showQuickWarLogToAllPlayers: Kinetic shields removed from part ...
playSoundAtUnit: ROOT:audio\shields\remove.ogg
[hiddenAction_CHECK_BI]
autoTrigger: if self.hasParent(withTag='bi') and self.resource(type='biological', equalTo=0)
temporarilyAddTags: bi
setResourcesWithLogic: biological=1
showQuickWarLogToAllPlayers: Explosive shields added to part ...
playSoundAtUnit: ROOT:audio\shields\bi.ogg
[hiddenAction_REMOVE_BI]
autoTrigger: if not self.hasParent(withTag='bi') and self.resource(type='biological', greaterThan=0)
temporarilyRemoveTags: bi
setResourcesWithLogic: biological=0
showQuickWarLogToAllPlayers: Explosive shields removed from part ...
playSoundAtUnit: ROOT:audio\shields\remove.ogg
[hiddenAction_CHECK_NE]
autoTrigger: if self.hasParent(withTag='ne') and self.resource(type='ethereal', equalTo=0)
temporarilyAddTags: ne
setResourcesWithLogic: ethereal=1
showQuickWarLogToAllPlayers: Energy shields added to part ...
playSoundAtUnit: ROOT:audio\shields\ne.ogg
[hiddenAction_REMOVE_NE]
autoTrigger: if not self.hasParent(withTag='ne') and self.resource(type='ethereal', greaterThan=0)
temporarilyRemoveTags: ne
setResourcesWithLogic: ethereal=0
showQuickWarLogToAllPlayers: Energy shields removed from part ...
playSoundAtUnit: ROOT:audio\shields\remove.ogg




#[template_displace]
##requireConditional: if self.tags(includes='shields')
#autoTrigger: ${con} self.hasParent(withTag='${type}') and self.resource(type='${typeLong}', ${eq}=0)
#playSoundAtUnit: ROOT:audio\shields\${type}.ogg
#temporarilyAddTags: ${type}
#setResourcesWithLogic: ${typeLong}=${num}
#
#[hiddenAction_CHECK_KI]
#@copyFromSection: template_displace
#@define type: ki
#@define typeLong: kinetic
#@define num: 1
#@define eq: equalTo
#@define con:if
#showQuickWarLogToAllPlayers: Kinetic shields added to parts ... Max Shields: %{parent.maxShield}
#[hiddenAction_REMOVE_KI]
#@copyFromSection: template_displace
#@define type: ki
#@define typeLong: kinetic
#@define num: 0
#@define eq: greaterThan
#@define con:if not
#temporarilyRemoveTags: ${type}
#temporarilyAddTags: IGNORE
#showQuickWarLogToAllPlayers: Kinetic shields removed from parts ... Max Shields: %{parent.maxShield}
#playSoundAtUnit: ROOT:audio\shields\remove.ogg
#[hiddenAction_CHECK_EX]
#@copyFromSection: template_displace
#@define type: ex
#@define typeLong: explosive
#@define num: 1
#@define eq: equalTo
#@define con:if
#showQuickWarLogToAllPlayers: Explosive shields added to parts ... Max Shields: %{parent.maxShield}
#[hiddenAction_REMOVE_EX]
#@copyFromSection: template_displace
#@define type: ex
#@define typeLong: explosive
#@define num: 0
#@define eq: greaterThan
#@define con:if not
#temporarilyRemoveTags: ${type}
#temporarilyAddTags: IGNORE
#showQuickWarLogToAllPlayers: Explosive shields removed from parts ... Max Shields: %{parent.maxShield}
#playSoundAtUnit: ROOT:audio\shields\remove.ogg
#[hiddenAction_CHECK_EN]
#@copyFromSection: template_displace
#@define type: en
#@define typeLong: energetic
#@define num: 1
#@define eq: equalTo
#@define con:if
#showQuickWarLogToAllPlayers: Energy shields added to parts ... Max Shields: %{parent.maxShield}
#[hiddenAction_REMOVE_EN]
#@copyFromSection: template_displace
#@define type: en
#@define typeLong: energetic
#@define num: 0
#@define eq: greaterThan
#@define con:if not
#temporarilyRemoveTags: ${type}
#temporarilyAddTags: IGNORE
#showQuickWarLogToAllPlayers: Energy shields removed from parts ... Max Shields: %{parent.maxShield}
#playSoundAtUnit: ROOT:audio\shields\remove.ogg
#[hiddenAction_CHECK_VO]
#@copyFromSection: template_displace
#@define type: am
#@define typeLong: voidemic
#@define num: 1
#@define eq: equalTo
#@define con:if
#showQuickWarLogToAllPlayers: Kinetic shields added to parts ... Max Shields: %{parent.maxShield}
#[hiddenAction_REMOVE_VO]
#@copyFromSection: template_displace
#@define type: am
#@define typeLong: voidemic
#@define num: 0
#@define eq: greaterThan
#@define con:if not
#temporarilyRemoveTags: ${type}
#temporarilyAddTags: IGNORE
#showQuickWarLogToAllPlayers: Kinetic shields removed from parts ... Max Shields: %{parent.maxShield}
#playSoundAtUnit: ROOT:audio\shields\remove.ogg
#[hiddenAction_CHECK_BI]
#@copyFromSection: template_displace
#@define type: bi
#@define typeLong: biological
#@define num: 1
#@define eq: equalTo
#@define con:if
#showQuickWarLogToAllPlayers: Explosive shields added to parts ... Max Shields: %{parent.maxShield}
#[hiddenAction_REMOVE_BI]
#@copyFromSection: template_displace
#@define type: bi
#@define typeLong: biological
#@define num: 0
#@define eq: greaterThan
#@define con:if not
#temporarilyRemoveTags: ${type}
#temporarilyAddTags: IGNORE
#showQuickWarLogToAllPlayers: Explosive shields removed from parts ... Max Shields: %{parent.maxShield}
#playSoundAtUnit: ROOT:audio\shields\remove.ogg
#[hiddenAction_CHECK_NE]
#@copyFromSection: template_displace
#@define type: ne
#@define typeLong: ethereal
#@define num: 1
#@define eq: equalTo
#@define con:if
#showQuickWarLogToAllPlayers: Energy shields added to parts ... Max Shields: %{parent.maxShield}
#[hiddenAction_REMOVE_NE]
#@copyFromSection: template_displace
#@define type: ne
#@define typeLong: ethereal
#@define num: 0
#@define eq: greaterThan
#@define con:if not
#temporarilyRemoveTags: ${type}
#showQuickWarLogToAllPlayers: Energy shields removed from parts ... Max Shields: %{parent.maxShield}
#playSoundAtUnit: ROOT:audio\shields\remove.ogg
_____________________________________________________
_____________________________________________________
shields.template
_____________________________________________________
_____________________________________________________


############################################
#Literally just exception for the shield module to only use itself as type
############################################

[core]
maxShield: 15

[hiddenAction_destroyed]
text: Destroyed
autoTrigger: if self.hp == 0
convertTo: shields_slot_destroyed

#[turret_proximity]
#interceptProjectiles_andUnderDistance: 30

[hiddenAction_CHECK_KI]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_REMOVE_KI]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_CHECK_EX]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_REMOVE_EX]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_CHECK_EN]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_REMOVE_EN]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_CHECK_VO]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_REMOVE_VO]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_CHECK_BI]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_REMOVE_BI]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_CHECK_NE]
requireConditional: if not self.tags(includes='shields')

[hiddenAction_REMOVE_NE]
requireConditional: if not self.tags(includes='shields')

_____________________________________________________
_____________________________________________________
shielding_dead.template
_____________________________________________________
_____________________________________________________



##################################

###########################
###########################
###########################
###########################
#Shield bar indicators for Shields
#Changes based on what type of shields
###########################
###########################
###########################
###########################

###########################
#Shields Basics
###########################

[decal_pipfull_shields_normal]
isVisible: false

###########################
###########################
#Single-Element
###########################
###########################

[decal_pipfull_shields_ex]
isVisible: false

[decal_pipfull_shields_en]
isVisible: false

[decal_pipfull_shields_ki]
isVisible: false

[decal_pipfull_shields_am]
isVisible: false

[decal_pipfull_shields_bi]
isVisible: false

[decal_pipfull_shields_ne]
isVisible: false

###########################
###########################
#Double-Element
###########################
###########################

[decal_pipfull_shields_ex-en]
isVisible: false

[decal_pipfull_shields_ki-en]
isVisible: false

[decal_pipfull_shields_ki-ex]
isVisible: false

[decal_pipfull_shields_ex-am]
isVisible: false

[decal_pipfull_shields_en-am]
isVisible: false

[decal_pipfull_shields_ki-am]
isVisible: false

[decal_pipfull_shields_ex-bi]
isVisible: false

[decal_pipfull_shields_en-bi]
isVisible: false

[decal_pipfull_shields_ki-bi]
isVisible: false

[decal_pipfull_shields_ex-ne]
isVisible: false

[decal_pipfull_shields_en-ne]
isVisible: false

[decal_pipfull_shields_ki-ne]
isVisible: false

[decal_pipfull_shields_bi-am]
isVisible: false

[decal_pipfull_shields_ne-am]
isVisible: false

[decal_pipfull_shields_ne-bi]
isVisible: false

###########################
###########################
#Triple-Element
###########################
###########################

[decal_pipfull_shields_ki-ex-en]
isVisible: false

[decal_pipfull_shields_ne-bi-am]
isVisible: false

[decal_pipfull_shields_ne-ki-ex]
isVisible: false

[decal_pipfull_shields_ne-ex-en]
isVisible: false

[decal_pipfull_shields_ne-en-ki]
isVisible: false

[decal_pipfull_shields_bi-ki-ex]
isVisible: false

[decal_pipfull_shields_bi-ex-en]
isVisible: false

[decal_pipfull_shields_bi-en-ki]
isVisible: false

[decal_pipfull_shields_am-ki-ex]
isVisible: false

[decal_pipfull_shields_am-ex-en]
isVisible: false

[decal_pipfull_shields_am-en-ki]
isVisible: false

[decal_pipfull_shields_bi-ne-ex]
isVisible: false

[decal_pipfull_shields_bi-ne-en]
isVisible: false

[decal_pipfull_shields_bi-ne-ki]
isVisible: false

[decal_pipfull_shields_bi-am-ex]
isVisible: false

[decal_pipfull_shields_bi-am-en]
isVisible: false

[decal_pipfull_shields_bi-am-ki]
isVisible: false

[decal_pipfull_shields_ne-am-ex]
isVisible: false

[decal_pipfull_shields_ne-am-en]
isVisible: false

[decal_pipfull_shields_ne-am-ki]
isVisible: false


_____________________________________________________
_____________________________________________________
typeBio.template
_____________________________________________________
_____________________________________________________

[projectile_universal]
mutatorUniversal_ifUnitWithTags: bi
mutatorUniversal_areaDamageMultiplier: 0.5

_____________________________________________________
typeEnergy.template
_____________________________________________________
_____________________________________________________
[projectile_universal]
mutatorUniversal_ifUnitWithTags: en
mutatorUniversal_areaDamageMultiplier: 0.5


_____________________________________________________
_____________________________________________________
typeEther.template
_____________________________________________________
_____________________________________________________

[projectile_universal]
mutatorUniversal_ifUnitWithTags: ne
mutatorUniversal_areaDamageMultiplier: 0.5

_____________________________________________________
typeExplosive.template
_____________________________________________________
_____________________________________________________

[projectile_universal]
mutatorUniversal_ifUnitWithTags: ex
mutatorUniversal_areaDamageMultiplier: 0.5

_____________________________________________________
_____________________________________________________
typeVoid.template
_____________________________________________________
_____________________________________________________

[projectile_universal]
mutatorUniversal_ifUnitWithTags: am
mutatorUniversal_areaDamageMultiplier: 0.5

_____________________________________________________
typeKinetic.template
_____________________________________________________
_____________________________________________________

[projectile_universal]
mutatorUniversal_ifUnitWithTags: ki
mutatorUniversal_areaDamageMultiplier: 0.5

_____________________________________________________
_____________________________________________________
weapon.template
_____________________________________________________
_____________________________________________________

#
#

[core]
autoTriggerCooldownTime: 60

######### AP STUFF ##
[resource_ap_m]
displayName: ap Max
[resource_ap_c]
displayName: ap Current

[hiddenAction_created_ap]
autoTriggerOnEvent: created
setResourcesWithLogic: ap_m=5, ap_c=0

[hiddenAction_apSteal]
autoTrigger: if self.resource.ap_c < (self.resource.ap_m)
takeResources: ap_c=1
takeResources_includeParent: true
takeResources_directTransferStoppingAtZero: true
takeResources_triggerActionIfAnyCollected: apEffect

[hiddenAction_apEffect]
spawnEffects: CUSTOM:apFancy

[effect_apFancy]
alwaysStartDirAtZero: true
yOffsetAbsolute: -5
image: ROOT:drawable\morph\random\sword\sword.png
total_frames: 36
animateFrameSpeed: 2
animateFrameStart: 0
animateFrameEnd: 35
animateFrameLooping: true
alsoPlaySound: ROOT:audio\sounds\apGen.ogg
life: 60
alpha: 0.85
#color: #FF0000
hSpeed: 0.2
scaleTo: 0.2
scaleFrom: 0.4

[hiddenAction_apFlatten]
autoTrigger: if self.resource.ap_c >= (self.resource.ap_m)
setResourcesWithLogic: ap_c=self.resource.ap_m

[template_HP]
yOffsetAbsolute: -1.5
[template_shields]
yOffsetAbsolute: 1.5

[template_AP]
#isVisible: if self.tags(includes='small') 
alwaysStartDirAtZero: true
layer: afterBody

dirOffset: 90

xOffsetAbsolute: 5
yOffsetAbsolute: -10

imageScaleY: 0.5
imageScaleX: 0.3

stack_hOffset: 0.25

#self.resource.ap_c/(self.resource.ap_m*3)

[decal_APbar]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_AP
order: 2
imageStack: ROOT:\drawable\hud\action\abb.png, ROOT:\drawable\hud\action\abb.png, ROOT:\drawable\hud\action\abb.png, ROOT:\drawable\hud\action\abb.png
color: #AAAAAA
#xOffsetAbsolute: -5*(1-self.resource.ap_c/self.resource.ap_m)
#onlyWhenSelectedByAnyPlayer: false

[decal_APfront]
#isVisible: if self.tags(includes='small')
@copyFromSection: template_AP
order: 4
imageStack: ROOT:\drawable\hud\action\abf.png, ROOT:\drawable\hud\action\abf.png, ROOT:\drawable\hud\action\abf.png, ROOT:\drawable\hud\action\abf.png
color: #000000
#onlyWhenSelectedByAnyPlayer: false

[decal_pipemptiest_AP]
# RED
#isVisible: false
isVisible: if self.resource.ap_c <= self.resource.ap_m / 3
@copyFromSection: template_AP
order: 6
imageStack: ROOT:\drawable\hud\action\abPIP4.png, ROOT:\drawable\hud\action\abPIP4.png, ROOT:\drawable\hud\action\abPIP4.png, ROOT:\drawable\hud\action\abPIP4.png
teamColors: true

yOffsetAbsolute: -self.resource.ap_c/self.resource.ap_m*15

imageScaleX:  self.resource.ap_c/self.resource.ap_m*15

[decal_pipempty_AP]
# ORANGE
#isVisible: false
isVisible: if self.resource.ap_c <= self.resource.ap_m / 2
@copyFromSection: template_AP
order: 5
imageStack: ROOT:\drawable\hud\action\abPIP2.png, ROOT:\drawable\hud\action\abPIP2.png, ROOT:\drawable\hud\action\abPIP2.png, ROOT:\drawable\hud\action\abPIP2.png
teamColors: true

yOffsetAbsolute: -self.resource.ap_c/self.resource.ap_m*13

imageScaleX:  self.resource.ap_c/self.resource.ap_m*15

[decal_pipfull_AP]
# GREEN
#isVisible: false
#isVisible: if self.resource.ap_c >= self.resource.ap_m / 2
@copyFromSection: template_AP
order: 4
imageStack: ROOT:\drawable\hud\action\abPIP5.png, ROOT:\drawable\hud\action\abPIP5.png, ROOT:\drawable\hud\action\abPIP5.png, ROOT:\drawable\hud\action\abPIP5.png
teamColors: true
yOffsetAbsolute: -self.resource.ap_c/self.resource.ap_m*10
color: #FFFFFF
imageScaleX:  self.resource.ap_c/self.resource.ap_m*15

[decal_piptrulyfull_AP]
# PURPLE
#isVisible: false
isVisible: if self.resource.ap_c >= self.resource.ap_m

@copyFromSection: template_AP
order: 7
imageStack: ROOT:\drawable\hud\action\abPIP6.png, ROOT:\drawable\hud\action\abPIP6.png, ROOT:\drawable\hud\action\abPIP6.png, ROOT:\drawable\hud\action\abPIP6.png

yOffsetAbsolute: -self.resource.ap_c/self.resource.ap_m*10
#color: #FF00FF
imageScaleX: self.resource.ap_c/self.resource.ap_m*15
teamColors: true

[hiddenAction_pipfullglow]
autoTrigger: if self.resource.ap_c >= self.resource.ap_m
spawnEffects: CUSTOM:pipfullglow

[effect_pipfullglow]
life: 60
alwaysStartDirAtZero: true
fadeOut: true

xOffsetAbsolute: 14
yOffsetAbsolute: -10

scaleTo: 0.8
scaleFrom: 0.8
teamColorRatio: 1

image: ROOT:drawable\hud\action\apbox.png

[decal_36degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='destroyer') or self.tags(includes='artillery')
image: ROOT:drawable\ranges\36.png

[decal_72degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='cutter')
image: ROOT:drawable\ranges\72.png

[decal_108degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='frigate') or self.tags(includes='hunter')
image: ROOT:drawable\ranges\108.png

[decal_144degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='gunship') or self.tags(includes='battleship')
image: ROOT:drawable\ranges\144.png

[decal_180degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='cog') or self.tags(includes='freighter')
image: ROOT:drawable\ranges\180.png

[decal_216degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='battlecruiser')
image: ROOT:drawable\ranges\216.png

[decal_270degrees]
@copyFromSection: template_decal

xOffsetAbsolute: 0
yOffsetAbsolute: 7
isVisible: if self.tags(includes='cruiser')
image: ROOT:drawable\ranges\270.png

[decal_360degrees]
@copyFromSection: template_decal

isVisible: if self.tags(includes='corvette') or self.tags(includes='carrier') or self.tags(includes='platform')
image: ROOT:drawable\ranges\360.png

[template_decal]
imageScale: ${scaleFactor}
alpha: 0.15
onlyWhenSelectedByAnyPlayer: true
xOffsetAbsolute: 0
yOffsetAbsolute: 7

[template_decal_minimum]
imageScale: ${scaleFactor * 0}
alpha: 0.5
onlyWhenSelectedByAnyPlayer: true
xOffsetAbsolute: 0
yOffsetAbsolute: 7

[decal_36degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='destroyer') or self.tags(includes='artillery')
image: ROOT:drawable\ranges\36_min.png
color: #FF0000

[decal_72degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='cutter')
image: ROOT:drawable\ranges\72_min.png
color: #FF0000

[decal_108degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='frigate') or self.tags(includes='hunter')
image: ROOT:drawable\ranges\108_min.png
color: #FF0000

[decal_144degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='gunship') or self.tags(includes='battleship')
image: ROOT:drawable\ranges\144_min.png
color: #FF0000

[decal_180degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='cog') or self.tags(includes='freighter')
image: ROOT:drawable\ranges\180_min.png
color: #FF0000

[decal_216degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='battlecruiser')
image: ROOT:drawable\ranges\216_min.png
color: #FF0000

[decal_270degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='cruiser')
image: ROOT:drawable\ranges\270_min.png
color: #FF0000

[decal_360degrees_minimum]
@copyFromSection: template_decal_minimum

isVisible: if self.tags(includes='corvette') or self.tags(includes='carrier') or self.tags(includes='platform')
image: ROOT:drawable\ranges\360_min.png
color: #FF0000

[template_decal_targeter]
#imageScale: ${scaleFactor * 100}
imageScaleX: 1
imageScaleY: ${scaleFactor}
yOffsetRelative: ${scaleFactor * 4}
alpha: 0.6
onlyWhenSelectedByAnyPlayer: true
xOffsetAbsolute: 0
yOffsetAbsolute: 7
teamColors: true
image: ROOT:drawable\ranges\line.png
layer: onTop

[decal_36degrees_targeter_1]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='destroyer') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: destroyer

[decal_36degrees_targeter_2]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='artillery') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: artillery

[decal_72degrees_targeter]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='cutter') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: cutter

[decal_108degrees_targeter_1]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='frigate') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: frigate

[decal_108degrees_targeter_2]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='hunter') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: hunter

[decal_144degrees_targeter_1]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='gunship') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: gunship

[decal_144degrees_targeter_1]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='battleship') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: battleship

[decal_180degrees_targeter_1]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='cog') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: cog

[decal_180degrees_targeter_2]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='freighter') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: freighter

[decal_216degrees_targeter]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='battlecruiser') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: battlecruiser

[decal_270degrees_targeter]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='cruiser') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: cruiser

[decal_360degrees_targeter_1]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='corvette') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: corvette

[decal_360degrees_targeter_2]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='carrier') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: carrier

[decal_360degrees_targeter_3]
@copyFromSection: template_decal_targeter

isVisible: if self.tags(includes='platform') and self.isAttacking() and self.resource.ap_c > 0
basePositionFromTurret: platform

[projectile_universal]
mutator1_ifUnitWithTags: ship
mutator1_directDamageMultiplier: 1
mutator1_areaDamageMultiplier: 1
areaHitAirAndLandAtSameTime: true

[hiddenAction_destroyed]
text: Destroyed
addResources: hp=-100
autoTrigger: if self.hp == 0
convertTo: weapon_slot_destroyed

[attack]
canOnlyAttackUnitsWithTags: detected
maxAttackRange: ${scaleFactor * 100}



#[projectile_universal]
#mutatorUniversal_ifUnitWithTags: ship
#mutatorUniversal_areaDamageMultiplier: 1
#areaDamage:  1
#areaRadius: 16
#explodeEffect: CUSTOM:explode
#explodeEffectOnShield: CUSTOM:explode

[effect_explode]
image: ROOT:drawable\null.png
fadeOut: true
life: 60
attachedToUnit: false
scaleTo: 0
scaleFrom: 1
alpha: 0.25
alsoPlaySound: ROOT:audio\explosive\missileExplode_a.wav

[template_turret]
image: ROOT:drawable\null.png
x: 0
y: 0
projectile: universal
resourceUsage: ap_c=3
limitingMinRange: ${scaleFactor * 50}


#			#			#			#			#			#			#			
#These are the official classes and their firing arc angles when a weapon is equipped to them
#These are the official classes and their firing arc angles when a weapon is equipped to them
#These are the official classes and their firing arc angles when a weapon is equipped to them
#These are the official classes and their firing arc angles when a weapon is equipped to them
#These are the official classes and their firing arc angles when a weapon is equipped to them
#These are the official classes and their firing arc angles when a weapon is equipped to them
#			#			#			#			#			#			#			


[turret_cruiser]
canAttackCondition: if self.tags(includes='cruiser')
limitingAngle: 135
@copyFromSection: template_turret
barrelY: 15
[turret_cog]
canAttackCondition: if self.tags(includes='cog')
limitingAngle: 90
@copyFromSection: template_turret
[turret_battleship]
canAttackCondition: if self.tags(includes='battleship')
limitingAngle: 72
@copyFromSection: template_turret
[turret_cutter]
canAttackCondition: if self.tags(includes='cutter')
limitingAngle: 36
@copyFromSection: template_turret
[turret_destroyer]
canAttackCondition: if self.tags(includes='destroyer')
limitingAngle: 18
@copyFromSection: template_turret
[turret_artillery]
canAttackCondition: if self.tags(includes='artillery') and not parent.isMoving()
limitingAngle: 18
@copyFromSection: template_turret
[turret_frigate]
canAttackCondition: if self.tags(includes='frigate')
limitingAngle: 54
@copyFromSection: template_turret
[turret_hunter]
canAttackCondition: if self.tags(includes='hunter')
limitingAngle: 54
@copyFromSection: template_turret
[turret_freighter]
canAttackCondition: if self.tags(includes='freighter')
limitingAngle: 90
@copyFromSection: template_turret
[turret_gunship]
canAttackCondition: if self.tags(includes='gunship')
limitingAngle: 72
@copyFromSection: template_turret
[turret_carrier]
canAttackCondition: if self.tags(includes='carrier')
limitingAngle: 180
@copyFromSection: template_turret
[turret_corvette]
canAttackCondition: if self.tags(includes='corvette')
limitingAngle: 180
@copyFromSection: template_turret
[turret_battlecruiser]
canAttackCondition: if self.tags(includes='battlecruiser')
limitingAngle: 108
@copyFromSection: template_turret
[turret_platform]
canAttackCondition: if self.tags(includes='platform')
limitingAngle: 180
@copyFromSection: template_turret

[resource_kinetic]
displayName: kinetic

[resource_explosive]
displayName: explosive

[resource_energetic]
displayName: energetic

[resource_voidemic]
displayName: voidemic

[resource_biological]
displayName: biological

[resource_ethereal]
displayName: ethereal

###################
# DEBUG SHIT
###################

#[hiddenAction_ap_c_Add]
#pos: 0
#buildSpeed: 0
#text: current ap Add
#addResources: ap_c=5
#[hiddenAction_ap_c_Remove]
#pos: 0
#buildSpeed: 0
#text: current ap Remove
#addResources: ap_c=-5
#[hiddenAction_ap_m_Add]
#pos: 0
#buildSpeed: 0
#text: max ap Add
#addResources: ap_m=1
#[hiddenAction_ap_m_Remove]
#pos: 0
#buildSpeed: 0
#text: max ap Remove
#addResources: ap_m=-1



(((all-units.template: This file goes in the root of the folder and applies itself to all units, regardless of if its a ship or not; it's like for global settings. Suggested to not fill too much up or it might start slowing load times (because of all units pulling from all-units.template). Most importantly though it allows the proper useage of global and local resources, synchronizing all resources together so units have a common interfacing
)))

_____________________________________________________
_____________________________________________________
all-units.template
_____________________________________________________
_____________________________________________________

###########################
###########################
###########################
###########################
#Compiles into all-units.template, not
#necessarily a template of its own.
#Contains: Core, Attack, Graphics, Movement
#Distributed Variables, AI, Global Actions
###########################
###########################
###########################
###########################

###########################
###########################
#Core Information
###########################
###########################

#@global faction:None
#@global class:None
#@global baseHP: 1
#@global baseShield: 1 
#@global baseRange: 200
#@global baseDamage:1
#@global baseReload 1s
#@global baseAgility: 1
#@global baseMove: 1
#@global baseRot: 1
#@global baseAcc: 0.06

[core]

shieldDisplayOnlyDeflection: true
radius: 20
mass: 1
price: 1


######################
#Survivability
######################

maxHp: 1
selfRegenRate: 0

maxShield: 1
shieldRegen: 0
startShieldAtZero: true

armour: 0
armourMinDamageToKeep: 0

######################
#Energy
######################

energyMax: 0
energyRegen: 0
energyStartingPercentage: 0
energyNeedsToRechargeToFull: true
energyRegenWhenRecharging: 0

######################
#Death/Damage
######################

#borrowResourcesWhileAlive:

unitsSpawnedOnDeath_setToTeamOfLastAttacker: true

#effectOnDeath: CUSTOM:explode
#effectOnDeathGroundCollision: CUSTOM:explode
explodeOnDeath: false
explodeOnDeathGroundCollision: false

hideScorchMark: true
numBitsOnDeath: 0

autoTriggerCooldownTime: 60
autoTriggerCooldownTime_allowDangerousHighCPU: true
#autoTriggerCheckRate: 

[graphics]
disableLowHpFire: true
disableLowHpSmoke: true

image_shadow: NONE
teamColorsOnTurret: true
teamColoringMode: pureGreen
#Can be pureGreen, hueAdd, hueShift, disabled.

showHealthBar: false
showEnergyBar: false
showShieldBar: false

[attack]
canAttack: true
canAttackLandUnits: true
canAttackFlyingUnits: false
canAttackUnderwaterUnits: false
#showRangeUIGuide: true

[movement]
movementType: LAND

moveSpeed: 1

moveAccelerationSpeed: 1
moveDecelerationSpeed: 1

maxTurnSpeed: 1
turnAcceleration: 1

moveSlidingMode: true
moveIgnoringBody: true

#>Buffer<#
#################################################################
#################################################################
#>Buffer<#
#################################################################
#################################################################
#>Buffer<#
#################################################################
#################################################################
#>Buffer<#





###########################
###########################
###########################
###########################
#Compiles into all-units.template, not
#necessarily a template of its own.
#Contains: Global Resources, Local Resources
###########################
###########################
###########################
###########################
# 1/21/24
# Gave Upkeep an Icon
# Gave Fleet Size an Icon and renamed its displayname to Ship Count
# Added a new resource called Building Count
# Renamed Cores to KoreKeys, to differentiate from a Core and the actual mechanism that revives them
# 1/20/24
# Gave Player XP and Player LVL an icon 
###########################
###########################
#Global Resources
###########################
###########################

[global_resource_PlayerLV]
displayPos: 1
displayName: Player Level
displayNameShort: LVL
displayColor: #FFF000
iconImage: ROOT:\drawable\icons\star2.png
displayTextAppendResource: PlayerXP
#
[global_resource_PlayerXP]
displayPos: 2
displayName: Experience
displayNameShort: EXP
displayColor: #00FF00
displayWhenZero: true
iconImage: ROOT:\drawable\icons\star1.png
displayTextAppendResource: upkeep
hidden: true

[global_resource_upkeep]
displayPos: 3
displayName: Upkeep
displayNameShort: UPK
displayColor: #AA0000
displayWhenZero: true
iconImage: ROOT:\drawable\icons\upkeep.png
displayTextAppendResource: cores
hidden: true
#
displayWhenZero: true
[global_resource_cores]
displayPos: 4
displayName: Cores
displayNameShort: KORE
displayColor: #160CFF
displayWhenZero: true
iconImage: ROOT:\drawable\icons\hexagon1.png
hidden: true

[global_resource_fleetSize]
displayPos: 5
displayName: Ship Count
displayNameShort: FS
displayColor: #FFA000
displayWhenZero: true
iconImage: ROOT:\drawable\icons\fleetCount.png
displayTextAppendResource: buildingCount
#
[global_resource_buildingCount]
displayPos: 6
displayName: Building Count
displayNameShort: FS
displayColor: #00FFFF
displayWhenZero: true
iconImage: ROOT:\drawable\icons\buildingCount.png
hidden: true


[template_resource_1]
displayTextAppendResourceWithGap: true
displayWhenZero: true
displayPos: 7
hidden: true

[template_resource_2]
displayTextAppendResourceWithGap: true
displayWhenZero: true
displayPos: 8
hidden: true

[global_resource_init_core]
displayName: INIT_CORE 
hidden: false
displayColor: #00FFFF

[global_resource_Ylithium]
hidden: false
@copyFromSection: template_resource_1
displayName: Ylithium
displayNameShort: YLT
displayColor: #FFC800
iconImage: ROOT:\drawable\icons\helium.png
#displayNameHideWhenIconShownInHUD: true
#displayNameHideWhenIconShownInText: true
displayTextAppendResource: norsotium
[global_resource_Norsotium]
@copyFromSection: template_resource_1
displayName: Norsotium
displayNameShort: NOR
displayColor: #00FFFF
iconImage: ROOT:\drawable\icons\norse.png
displayTextAppendResource: barbelum
[global_resource_Barbelum]
@copyFromSection: template_resource_1
displayName: Barbelum
displayNameShort: BAR
displayColor: #EE0000
iconImage: ROOT:\drawable\icons\bar.png
[global_resource_Antimalium]
hidden: false
displayPos: 9
@copyFromSection: template_resource_1
displayName: Antimalium
displayNameShort: AM
displayColor: #9E00FF
iconImage: ROOT:\drawable\icons\anti.png
[global_resource_zynthium]
hidden: false
@copyFromSection: template_resource_2
displayName: Zynthium
displayNameShort: ZYN
displayColor: #3F7F3F
iconImage: ROOT:\drawable\icons\zyn.png
displayTextAppendResource: faustal
[global_resource_faustal]
@copyFromSection: template_resource_2
displayName: Faustal
displayNameShort: FAU
displayColor: #D55000
iconImage: ROOT:\drawable\icons\faust.png
displayTextAppendResource: segradion
[global_resource_segradion]
@copyFromSection: template_resource_2
displayName: Segradion
displayNameShort: SEG
displayColor: #668888
iconImage: ROOT:\drawable\icons\seg.png
[global_resource_organic]
@copyFromSection: template_resource_2
displayName: Organic
displayNameShort: ORG
displayColor: #BED300
iconImage: ROOT:\drawable\icons\org.png
displayTextAppendResource: organic

[global_resource_cap_ylithium]
hidden: true
[global_resource_cap_norsotium]
hidden: true
[global_resource_cap_Antimalium]
hidden: true
[global_resource_cap_zynthium]
hidden: true
[global_resource_cap_faustal]
hidden: true
[global_resource_cap_segradion]
hidden: true
[global_resource_cap_barbelum]
hidden: true

[resource_loadoutConfig]
hidden: true
displayName: Loadout Config resource






[global_resource_void]
displayName:void
displayNameShort:void
displayColor: #520089
iconImage: ROOT:\drawable\icons\void.png
[global_resource_power]
displayName: Power
displayNameShort: PWR
displayColor: #FF0000

###########################
###########################
###########################
###########################
#Inventory####################
###########################
###########################
###########################
###########################


########################
# Element List
#
#@@@@@@@@@@@@@@@@@@@@@
#
# THESE ARE LITERAL PERIODIC TABLE ELEMENTS!
# Crafted from Superelements
# Can be crafted further into Materials
#
########################

#FFC800
#00FFFF
#9E00FF
#00FF00
#D55000
#668888

[global_resource_Hydrogen]	
displayName:	Hydrogen	
displayNameShort:	Hydrogen	
hidden: true
[global_resource_Helium]	
displayName:	Helium	
displayNameShort:	Helium	
hidden: true
[global_resource_Lithium]	
displayName:	Lithium	
displayNameShort:	Lithium	
hidden: true
[global_resource_Beryllium]	
displayName:	Beryllium	
displayNameShort:	Beryllium	
hidden: true
[global_resource_Boron]	
displayName:	Boron	
displayNameShort:	Boron	
hidden: true
[global_resource_Carbon]	
displayName:	Carbon	
displayNameShort:	Carbon	
hidden: true
[global_resource_Nitrogen]	
displayName:	Nitrogen	
displayNameShort:	Nitrogen	
hidden: true
[global_resource_Oxygen]	
displayName:	Oxygen	
displayNameShort:	Oxygen	
hidden: true
[global_resource_Fluorine]	
displayName:	Fluorine	
displayNameShort:	Fluorine	
hidden: true
[global_resource_Neon]	
displayName:	Neon	
displayNameShort:	Neon	
hidden: true
[global_resource_Sodium]	
displayName:	Sodium	
displayNameShort:	Sodium	
hidden: true
[global_resource_Magnesium]	
displayName:	Magnesium	
displayNameShort:	Magnesium	
hidden: true
[global_resource_Aluminium]	
displayName:	Aluminium	
displayNameShort:	Aluminium	
hidden: true
[global_resource_Silicon]	
displayName:	Silicon	
displayNameShort:	Silicon	
hidden: true
[global_resource_Phosphorus]	
displayName:	Phosphorus	
displayNameShort:	Phosphorus	
hidden: true
[global_resource_Sulfur]	
displayName:	Sulfur	
displayNameShort:	Sulfur	
hidden: true
[global_resource_Chlorine]	
displayName:	Chlorine	
displayNameShort:	Chlorine	
hidden: true
[global_resource_Argon]	
displayName:	Argon	
displayNameShort:	Argon	
hidden: true
[global_resource_Potassium]	
displayName:	Potassium	
displayNameShort:	Potassium	
hidden: true
[global_resource_Calcium]	
displayName:	Calcium	
displayNameShort:	Calcium	
hidden: true
[global_resource_Scandium]	
displayName:	Scandium	
displayNameShort:	Scandium	
hidden: true
[global_resource_Titanium]	
displayName:	Titanium	
displayNameShort:	Titanium	
hidden: true
[global_resource_Vanadium]	
displayName:	Vanadium	
displayNameShort:	Vanadium	
hidden: true
[global_resource_Chromium]	
displayName:	Chromium	
displayNameShort:	Chromium	
hidden: true
[global_resource_Manganese]	
displayName:	Manganese	
displayNameShort:	Manganese	
hidden: true
[global_resource_Iron]	
displayName:	Iron	
displayNameShort:	Iron	
hidden: true
[global_resource_Cobalt]	
displayName:	Cobalt	
displayNameShort:	Cobalt	
hidden: true
[global_resource_Nickel]	
displayName:	Nickel	
displayNameShort:	Nickel	
hidden: true
[global_resource_Copper]	
displayName:	Copper	
displayNameShort:	Copper	
hidden: true
[global_resource_Zinc]	
displayName:	Zinc	
displayNameShort:	Zinc	
hidden: true
[global_resource_Gallium]	
displayName:	Gallium	
displayNameShort:	Gallium	
hidden: true
[global_resource_Germanium]	
displayName:	Germanium	
displayNameShort:	Germanium	
hidden: true
[global_resource_Arsenic]	
displayName:	Arsenic	
displayNameShort:	Arsenic	
hidden: true
[global_resource_Selenium]	
displayName:	Selenium	
displayNameShort:	Selenium	
hidden: true
[global_resource_Bromine]	
displayName:	Bromine	
displayNameShort:	Bromine	
hidden: true
[global_resource_Krypton]	
displayName:	Krypton	
displayNameShort:	Krypton	
hidden: true
[global_resource_Rubidium]	
displayName:	Rubidium	
displayNameShort:	Rubidium	
hidden: true
[global_resource_Strontium]	
displayName:	Strontium	
displayNameShort:	Strontium	
hidden: true
[global_resource_Yttrium]	
displayName:	Yttrium	
displayNameShort:	Yttrium	
hidden: true
[global_resource_Zirconium]	
displayName:	Zirconium	
displayNameShort:	Zirconium	
hidden: true
[global_resource_Niobium]	
displayName:	Niobium	
displayNameShort:	Niobium	
hidden: true
[global_resource_Molybdenum]	
displayName:	Molybdenum	
displayNameShort:	Molybdenum	
hidden: true
[global_resource_Technetium]	
displayName:	Technetium	
displayNameShort:	Technetium	
hidden: true
[global_resource_Ruthenium]	
displayName:	Ruthenium	
displayNameShort:	Ruthenium	
hidden: true
[global_resource_Rhodium]	
displayName:	Rhodium	
displayNameShort:	Rhodium	
hidden: true
[global_resource_Palladium]	
displayName:	Palladium	
displayNameShort:	Palladium	
hidden: true
[global_resource_Silver]	
displayName:	Silver	
displayNameShort:	Silver	
hidden: true
[global_resource_Cadmium]	
displayName:	Cadmium	
displayNameShort:	Cadmium	
hidden: true
[global_resource_Indium]	
displayName:	Indium	
displayNameShort:	Indium	
hidden: true
[global_resource_Tin]	
displayName:	Tin	
displayNameShort:	Tin	
hidden: true
[global_resource_Antimony]	
displayName:	Antimony	
displayNameShort:	Antimony	
hidden: true
[global_resource_Tellurium]	
displayName:	Tellurium	
displayNameShort:	Tellurium	
hidden: true
[global_resource_Iodine]	
displayName:	Iodine	
displayNameShort:	Iodine	
hidden: true
[global_resource_Xenon]	
displayName:	Xenon	
displayNameShort:	Xenon	
hidden: true
[global_resource_Caesium]	
displayName:	Caesium	
displayNameShort:	Caesium	
hidden: true
[global_resource_Barium]	
displayName:	Barium	
displayNameShort:	Barium	
hidden: true
[global_resource_Lanthanum]	
displayName:	Lanthanum	
displayNameShort:	Lanthanum	
hidden: true
[global_resource_Cerium]	
displayName:	Cerium	
displayNameShort:	Cerium	
hidden: true
[global_resource_Praseodymium]	
displayName:	Praseodymium	
displayNameShort:	Praseodymium	
hidden: true
[global_resource_Neodymium]	
displayName:	Neodymium	
displayNameShort:	Neodymium	
hidden: true
[global_resource_Promethium]	
displayName:	Promethium	
displayNameShort:	Promethium	
hidden: true
[global_resource_Samarium]	
displayName:	Samarium	
displayNameShort:	Samarium	
hidden: true
[global_resource_Europium]	
displayName:	Europium	
displayNameShort:	Europium	
hidden: true
[global_resource_Gadolinium]	
displayName:	Gadolinium	
displayNameShort:	Gadolinium	
hidden: true
[global_resource_Terbium]	
displayName:	Terbium	
displayNameShort:	Terbium	
hidden: true
[global_resource_Dysprosium]	
displayName:	Dysprosium	
displayNameShort:	Dysprosium	
hidden: true
[global_resource_Holmium]	
displayName:	Holmium	
displayNameShort:	Holmium	
hidden: true
[global_resource_Erbium]	
displayName:	Erbium	
displayNameShort:	Erbium	
hidden: true
[global_resource_Thulium]	
displayName:	Thulium	
displayNameShort:	Thulium	
hidden: true
[global_resource_Ytterbium]	
displayName:	Ytterbium	
displayNameShort:	Ytterbium	
hidden: true
[global_resource_Lutetium]	
displayName:	Lutetium	
displayNameShort:	Lutetium	
hidden: true
[global_resource_Hafnium]	
displayName:	Hafnium	
displayNameShort:	Hafnium	
hidden: true
[global_resource_Tantalum]	
displayName:	Tantalum	
displayNameShort:	Tantalum	
hidden: true
[global_resource_Tungsten]	
displayName:	Tungsten	
displayNameShort:	Tungsten	
hidden: true
[global_resource_Rhenium]	
displayName:	Rhenium	
displayNameShort:	Rhenium	
hidden: true
[global_resource_Osmium]	
displayName:	Osmium	
displayNameShort:	Osmium	
hidden: true
[global_resource_Iridium]	
displayName:	Iridium	
displayNameShort:	Iridium	
hidden: true
[global_resource_Platinum]	
displayName:	Platinum	
displayNameShort:	Platinum	
hidden: true
[global_resource_Gold]	
displayName:	Gold	
displayNameShort:	Gold	
hidden: true
[global_resource_Mercury]	
displayName:	Mercury	
displayNameShort:	Mercury	
hidden: true
[global_resource_Thallium]	
displayName:	Thallium	
displayNameShort:	Thallium	
hidden: true
[global_resource_Lead]	
displayName:	Lead	
displayNameShort:	Lead	
hidden: true
[global_resource_Bismuth]	
displayName:	Bismuth	
displayNameShort:	Bismuth	
hidden: true
[global_resource_Polonium]	
displayName:	Polonium	
displayNameShort:	Polonium	
hidden: true
[global_resource_Astatine]	
displayName:	Astatine	
displayNameShort:	Astatine	
hidden: true
[global_resource_Radon]	
displayName:	Radon	
displayNameShort:	Radon	
hidden: true
[global_resource_Francium]	
displayName:	Francium	
displayNameShort:	Francium	
hidden: true
[global_resource_Radium]	
displayName:	Radium	
displayNameShort:	Radium	
hidden: true
[global_resource_Actinium]	
displayName:	Actinium	
displayNameShort:	Actinium	
hidden: true
[global_resource_Thorium]	
displayName:	Thorium	
displayNameShort:	Thorium	
hidden: true
[global_resource_Protactinium]	
displayName:	Protactinium	
displayNameShort:	Protactinium	
hidden: true
[global_resource_Uranium]	
displayName:	Uranium	
displayNameShort:	Uranium	
hidden: true
[global_resource_Neptunium]	
displayName:	Neptunium	
displayNameShort:	Neptunium	
hidden: true
[global_resource_Plutonium]	
displayName:	Plutonium	
displayNameShort:	Plutonium	
hidden: true
[global_resource_Americium]	
displayName:	Americium	
displayNameShort:	Americium	
hidden: true
[global_resource_Curium]	
displayName:	Curium	
displayNameShort:	Curium	
hidden: true
[global_resource_Berkelium]	
displayName:	Berkelium	
displayNameShort:	Berkelium	
hidden: true
[global_resource_Californium]	
displayName:	Californium	
displayNameShort:	Californium	
hidden: true
[global_resource_Einsteinium]	
displayName:	Einsteinium	
displayNameShort:	Einsteinium	
hidden: true
[global_resource_Fermium]	
displayName:	Fermium	
displayNameShort:	Fermium	
hidden: true
[global_resource_Mendelevium]	
displayName:	Mendelevium	
displayNameShort:	Mendelevium	
hidden: true
[global_resource_Nobelium]	
displayName:	Nobelium	
displayNameShort:	Nobelium	
hidden: true
[global_resource_Lawrencium]	
displayName:	Lawrencium	
displayNameShort:	Lawrencium	
hidden: true
[global_resource_Rutherfordium]	
displayName:	Rutherfordium	
displayNameShort:	Rutherfordium	
hidden: true
[global_resource_Dubnium]	
displayName:	Dubnium	
displayNameShort:	Dubnium	
hidden: true
[global_resource_Seaborgium]	
displayName:	Seaborgium	
displayNameShort:	Seaborgium	
hidden: true
[global_resource_Bohrium]	
displayName:	Bohrium	
displayNameShort:	Bohrium	
hidden: true
[global_resource_Hassium]	
displayName:	Hassium	
displayNameShort:	Hassium	
hidden: true
[global_resource_Meitnerium]	
displayName:	Meitnerium	
displayNameShort:	Meitnerium	
hidden: true
[global_resource_Darmstadtium]	
displayName:	Darmstadtium	
displayNameShort:	Darmstadtium	
hidden: true
[global_resource_Roentgenium]	
displayName:	Roentgenium	
displayNameShort:	Roentgenium	
hidden: true
[global_resource_Copernicium]	
displayName:	Copernicium	
displayNameShort:	Copernicium	
hidden: true
[global_resource_Nihonium]	
displayName:	Nihonium	
displayNameShort:	Nihonium	
hidden: true
[global_resource_Flerovium]	
displayName:	Flerovium	
displayNameShort:	Flerovium	
hidden: true
[global_resource_Moscovium]	
displayName:	Moscovium	
displayNameShort:	Moscovium	
hidden: true
[global_resource_Livermorium]	
displayName:	Livermorium	
displayNameShort:	Livermorium	
hidden: true
[global_resource_Tennessine]	
displayName:	Tennessine	
displayNameShort:	Tennessine	
hidden: true
[global_resource_Oganesson]	
displayName:	Oganesson	
displayNameShort:	Oganesson	
hidden: true

########################
# Item List 
#
#@@@@@@@@@@@@@@@@@@@@@
#
# THESE ARE FOR EQUIPMENT!
# To make a new equipment and have it buildable and equippable
# it will require one of these created
#
########################

# Placeholder
[resource_item_none]
displayName: none

# Classic 12 weapons
[resource_item_scowl]
displayName: Scowl Missile
[resource_item_pulse]
displayName: Pulse Ray
[resource_item_judgement]
displayName: Judgement Ray
[resource_item_infection]
displayName: Infector Bomb
[resource_item_talon]
displayName: Talon Cannon
[resource_item_expunge]
displayName: Expunge Driver
[resource_item_malachite]
displayName: Malachite Driver
[resource_item_harpoon]
displayName: Harpoon Torpedo
[resource_item_koribza]
displayName: Koribza Cannon
[resource_item_geometra]
displayName: Geometra Missile
[resource_item_helion]
displayName: Helion Rocket
[resource_item_luxtenibris]
displayName: Luxtenibris Beam

# Weapons
[resource_item_plasmalauncher]
displayName: Plasmalauncher
[resource_item_gallant]
displayName: Gallant Rocket
[resource_item_echausin]
displayName: Echausin
[resource_item_statinic]
displayName: Statinic


# Miners and Menders
[resource_item_mender]
displayName: Mend Gun
[resource_item_miner_basic]
displayName: Miner Basic
[resource_item_miner_advanced]
displayName: Miner Advanced
[resource_item_miner_volatile]
displayName: Miner Volatile
[resource_item_miner_hard]
displayName: Miner Hard
[resource_item_miner_metallic]
displayName: Miner Metallic
[resource_item_miner_sh]
displayName: Segradion Miner

# Classic 6 shields
[resource_item_spectrum]
displayName: Spectrum Shield
[resource_item_deflect]
displayName: Deflector Shield
[resource_item_blast]
displayName: Blast Shield
[resource_item_void]
displayName: Void Shield
[resource_item_ether]
displayName: Ethereal Shield
[resource_item_osmosis]
displayName: Osmosis Shield

# Armors
[resource_item_zynthiumi]
displayName: Zynthium G-1
[resource_item_zynthiumii]
displayName: Zynthium G-2
[resource_item_zynthiumiii]
displayName: Zynthium G-3
[resource_item_junkarmor]
displayName: Junk Armor
[resource_item_bioarmor]
displayName: Bio Armor
[resource_item_sitrini]
displayName: Sitrin G-1
[resource_item_sitrinii]
displayName: Sitrin G-2
[resource_item_sitriniii]
displayName: Sitrin G-3

# Specials
[resource_item_burst]
displayName: Burst Thrusters
[resource_item_glade]
displayName: Glade Radar
[resource_item_cargo]
displayName: Cargo Holds
[resource_item_omega]
displayName: Omega Codex

# Shields
[resource_item_trinity]
displayName: Trinity Shields
[resource_item_starfish]
displayName: Starfish Shields
[resource_item_brawler]
displayName: Brawler Shields
[resource_item_titan]
displayName: Titan Shields

# Hangars
[resource_item_packet]
displayName: Packet Fighter

## Misc ##

[resource_priorityTarget]
displayName: priorityTarget

########################
# Material List
#
#@@@@@@@@@@@@@@@@@@@@@
#
# THESE ARE FOR MATERIALS
# Crafted from Element combinations
# Can be crafted into Ships and Modules
#
########################

[global_resource_VolatileGases]	
displayName:	VolatileGases	
hidden: true
displayNameShort:	VolatileGases
[global_resource_FusionFuel]	
displayName:	FusionFuel	
hidden: true
displayNameShort:	FusionFuel
[global_resource_FuelPlastics]	
displayName:	FuelPlastics	
hidden: true
displayNameShort:	FuelPlastics
[global_resource_Ammonia]	
displayName:	Ammonia	
hidden: true
displayNameShort:	Ammonia
[global_resource_Water]	
displayName:	Water	
hidden: true
displayNameShort:	Water
[global_resource_HydrochloricAcid]	
displayName:	HydrochloricAcid	
hidden: true
displayNameShort:	HydrochloricAcid
[global_resource_SilverBombs]	
displayName:	SilverBombs	
hidden: true
displayNameShort:	SilverBombs
[global_resource_SuperfluidCoolant]	
displayName:	SuperfluidCoolant	
hidden: true
displayNameShort:	SuperfluidCoolant
[global_resource_BatteryMaterial]	
displayName:	BatteryMaterial	
hidden: true
displayNameShort:	BatteryMaterial
[global_resource_ReactiveMetal]	
displayName:	ReactiveMetal	
hidden: true
displayNameShort:	ReactiveMetal
[global_resource_EnergyCrystals]	
displayName:	EnergyCrystals	
hidden: true
displayNameShort:	EnergyCrystals
[global_resource_WaterBomb]	
displayName:	WaterBomb	
hidden: true
displayNameShort:	WaterBomb
[global_resource_LightMetal]	
displayName:	LightMetal	
hidden: true
displayNameShort:	LightMetal
[global_resource_PlatingSalts]	
displayName:	PlatingSalts	
hidden: true
displayNameShort:	PlatingSalts
[global_resource_RadiationDampener]	
displayName:	RadiationDampener	
hidden: true
displayNameShort:	RadiationDampener
[global_resource_CrystalCatalyst]	
displayName:	CrystalCatalyst	
hidden: true
displayNameShort:	CrystalCatalyst
[global_resource_BoneAlloy]	
displayName:	BoneAlloy	
hidden: true
displayNameShort:	BoneAlloy
[global_resource_Nanotubing]	
displayName:	Nanotubing	
hidden: true
displayNameShort:	Nanotubing
[global_resource_CompositeMaterial]	
displayName:	CompositeMaterial	
hidden: true
displayNameShort:	CompositeMaterial
[global_resource_Semiconductor]	
displayName:	Semiconductor	
hidden: true
displayNameShort:	Semiconductor
[global_resource_PolymerGlass]	
displayName:	PolymerGlass	
hidden: true
displayNameShort:	PolymerGlass
[global_resource_StandardDiamonds]	
displayName:	StandardDiamonds	
hidden: true
displayNameShort:	StandardDiamonds
[global_resource_Chitin]	
displayName:	Chitin
hidden: true
displayNameShort:	Chitin
[global_resource_Cellulose]	
displayName:	Cellulose	
hidden: true
displayNameShort:	Cellulose
[global_resource_Fluorocarbon]	
displayName:	Fluorocarbon	
hidden: true
displayNameShort:	Fluorocarbon
[global_resource_FireSalts]
displayName:FireSalts
hidden: true
displayNameShort:FireSalts
[global_resource_TechDiamonds]	
displayName:	TechDiamonds	
hidden: true
displayNameShort:	TechDiamonds
[global_resource_GlowRods]	
displayName:	GlowRods	
hidden: true
displayNameShort:	GlowRods
[global_resource_ShieldGas]	
displayName:	ShieldGas	
hidden: true
displayNameShort:	ShieldGas
[global_resource_ToxicGas]	
displayName:	ToxicGas	
hidden: true
displayNameShort:	ToxicGas
[global_resource_InertContainer]	
displayName:	InertContainer	
hidden: true
displayNameShort:	InertContainer
[global_resource_HydrogenGenerator]	
displayName:	HydrogenGenerator	
hidden: true
displayNameShort:	HydrogenGenerator
[global_resource_BoneShell]	
displayName:	BoneShell	
hidden: true
displayNameShort:	BoneShell
[global_resource_CrudeSteel]	
displayName:	CrudeSteel	
hidden: true
displayNameShort:	CrudeSteel
[global_resource_LightSteel]	
displayName:	LightSteel	
hidden: true
displayNameShort:	LightSteel
[global_resource_StandardSteel]	
displayName:	StandardSteel	
hidden: true
displayNameShort:	StandardSteel
[global_resource_RolledSteel]	
displayName:	RolledSteel	
hidden: true
displayNameShort:	RolledSteel
[global_resource_SuperSteel]	
displayName:	SuperSteel	
hidden: true
displayNameShort:	SuperSteel
[global_resource_PunctureSteel]	
displayName:	PunctureSteel	
hidden: true
displayNameShort:	PunctureSteel
[global_resource_SuperheatSteel]	
displayName:	SuperheatSteel	
hidden: true
displayNameShort:	SuperheatSteel
[global_resource_ShockwaveSteel]	
displayName:	ShockwaveSteel	
hidden: true
displayNameShort:	ShockwaveSteel
[global_resource_MagneticWires]	
displayName:	MagneticWires	
hidden: true
displayNameShort:	MagneticWires
[global_resource_CorrosiveFuel]	
displayName:	CorrosiveFuel	
hidden: true
displayNameShort:	CorrosiveFuel
[global_resource_Biocell3]	
displayName:	Biocell3	
hidden: true
displayNameShort:	Biocell3
[global_resource_MirrorCoatings]	
displayName:	MirrorCoatings	
hidden: true
displayNameShort:	MirrorCoatings
[global_resource_SolderAlloys]	
displayName:	SolderAlloys	
hidden: true
displayNameShort:	SolderAlloys
[global_resource_LiquidNitro]	
displayName:	LiquidNitro	
hidden: true
displayNameShort:	LiquidNitro
[global_resource_Nitrox]	
displayName:	Nitrox	
hidden: true
displayNameShort:	Nitrox
[global_resource_FluorinatedGas]	
displayName:	FluorinatedGas	
hidden: true
displayNameShort:	FluorinatedGas
[global_resource_SodiumSulfide]	
displayName:	SodiumSulfide	
hidden: true
displayNameShort:	SodiumSulfide
[global_resource_NitrogenSulfide]	
displayName:	NitrogenSulfide	
hidden: true
displayNameShort:	NitrogenSulfide
[global_resource_PropellantDetonator]	
displayName:	PropellantDetonator	
hidden: true
displayNameShort:	PropellantDetonator
[global_resource_InertGases]	
displayName:	InertGases	
hidden: true
displayNameShort:	InertGases
[global_resource_SolderCrystal]	
displayName:	SolderCrystal	
hidden: true
displayNameShort:	SolderCrystal
[global_resource_SilverNitrate]	
displayName:	SilverNitrate	
hidden: true
displayNameShort:	SilverNitrate
[global_resource_Fluorocarbon]	
displayName:	Fluorocarbon	
hidden: true
displayNameShort:	Fluorocarbon
[global_resource_Nitrox]	
displayName:	Nitrox	
hidden: true
displayNameShort:	Nitrox
[global_resource_FluorinatedGas]	
displayName:	FluorinatedGas	
hidden: true
displayNameShort:	FluorinatedGas
[global_resource_Ozone]	
displayName:	Ozone	
hidden: true
displayNameShort:	Ozone
[global_resource_FluoriteCrystal]	
displayName:	FluoriteCrystal	
hidden: true
displayNameShort:	FluoriteCrystal
[global_resource_LuminousGas]	
displayName:	LuminousGas	
hidden: true
displayNameShort:	LuminousGas
[global_resource_PropulsionOxidizer]	
displayName:	PropulsionOxidizer	
hidden: true
displayNameShort:	PropulsionOxidizer
[global_resource_CeramicCoating]	
displayName:	CeramicCoating	
hidden: true
displayNameShort:	CeramicCoating
[global_resource_ArsenicOxide]	
displayName:	ArsenicOxide	
hidden: true
displayNameShort:	ArsenicOxide
[global_resource_ToxicSolvent]	
displayName:	ToxicSolvent	
hidden: true
displayNameShort:	ToxicSolvent
[global_resource_PlasmaDiffuse]	
displayName:	PlasmaDiffuse	
hidden: true
displayNameShort:	PlasmaDiffuse
[global_resource_ReflectGas]	
displayName:	ReflectGas	
hidden: true
displayNameShort:	ReflectGas
[global_resource_GradeCFuel]	
displayName:	GradeCFuel	
hidden: true
displayNameShort:	GradeCFuel
[global_resource_ChipTransistors]	
displayName:	ChipTransistors	
hidden: true
displayNameShort:	ChipTransistors
[global_resource_Chlorophyll]	
displayName:	Chlorophyll	
hidden: true
displayNameShort:	Chlorophyll
[global_resource_PropellantDetonator]	
displayName:	PropellantDetonator	
hidden: true
displayNameShort:	PropellantDetonator
[global_resource_Cuprachlorine]	
displayName:	Cuprachlorine	
hidden: true
displayNameShort:	Cuprachlorine
[global_resource_Argentochlorine]	
displayName:	Argentochlorine	
hidden: true
displayNameShort:	Argentochlorine
[global_resource_GoldChloride]	
displayName:	GoldChloride	
hidden: true
displayNameShort:	GoldChloride
[global_resource_ChloricLutenus]	
displayName:	ChloricLutenus	
hidden: true
displayNameShort:	ChloricLutenus
[global_resource_ShieldMagnets]	
displayName:	ShieldMagnets	
hidden: true
displayNameShort:	ShieldMagnets
[global_resource_SulfuricAcid]	
displayName:	SulfuricAcid	
hidden: true
displayNameShort:	SulfuricAcid
[global_resource_Scintilation]	
displayName:	Scintilation	
hidden: true
displayNameShort:	Scintilation
[global_resource_NobleHalide]	
displayName:	NobleHalide	
hidden: true
displayNameShort:	NobleHalide
[global_resource_Potash]	
displayName:	Potash	
hidden: true
displayNameShort:	Potash
[global_resource_Calcite]	
displayName:	Calcite	
hidden: true
displayNameShort:	Calcite
[global_resource_Scandate]	
displayName:	Scandate	
hidden: true
displayNameShort:	Scandate
[global_resource_CorrosiveFuel]	
displayName:	CorrosiveFuel	
hidden: true
displayNameShort:	CorrosiveFuel
[global_resource_ArsenicOxide]	
displayName:	ArsenicOxide	
hidden: true
displayNameShort:	ArsenicOxide
[global_resource_BronzeAlloy]	
displayName:	BronzeAlloy	
hidden: true
displayNameShort:	BronzeAlloy
[global_resource_ChipCells]	
displayName:	ChipCells	
hidden: true
displayNameShort:	ChipCells
[global_resource_LaserMagnet]	
displayName:	LaserMagnet	
hidden: true
displayNameShort:	LaserMagnet
[global_resource_MagneticLining]	
displayName:	MagneticLining	
hidden: true
displayNameShort:	MagneticLining
[global_resource_MirrorMetal]	
displayName:	MirrorMetal	
hidden: true
displayNameShort:	MirrorMetal
[global_resource_Silicene]	
displayName:	Silicene	
hidden: true
displayNameShort:	Silicene
[global_resource_SiliconComplex]	
displayName:	SiliconComplex	
hidden: true
displayNameShort:	SiliconComplex
[global_resource_LiquidMetal]	
displayName:	LiquidMetal	
hidden: true
displayNameShort:	LiquidMetal
[global_resource_Coils]	
displayName:	Coils	
hidden: true
displayNameShort:	Coils
[global_resource_Thermoelectrics]	
displayName:	Thermoelectrics	
hidden: true
displayNameShort:	Thermoelectrics
[global_resource_BatteryAlloys]	
displayName:	BatteryAlloys	
hidden: true
displayNameShort:	BatteryAlloys
[global_resource_XenonIodide]	
displayName:	XenonIodide	
hidden: true
displayNameShort:	XenonIodide
[global_resource_MemoryMetal]	
displayName:	MemoryMetal	
hidden: true
displayNameShort:	MemoryMetal
[global_resource_LaserLensing]	
displayName:	LaserLensing	
hidden: true
displayNameShort:	LaserLensing
[global_resource_Chupachlorine]	
displayName:	Chupachlorine	
hidden: true
displayNameShort:	Chupachlorine
[global_resource_GradeBFuel]	
displayName:	GradeBFuel	
hidden: true
displayNameShort:	GradeBFuel
[global_resource_GradeAFuel]	
displayName:	GradeAFuel	
hidden: true
displayNameShort:	GradeAFuel

[resource_144]
displayName: testres
[resource_145]
displayName: testres
[resource_146]
displayName: testres
[resource_147]
displayName: testres
[resource_148]
displayName: testres
[resource_149]
displayName: testres
[resource_150]
displayName: testres
[resource_151]
displayName: testres
[resource_152]
displayName: testres
[resource_153]
displayName: testres
[resource_154]
displayName: testres
[resource_155]
displayName: testres
[resource_156]
displayName: testres
[resource_157]
displayName: testres
[resource_158]
displayName: testres
[resource_159]
displayName: testres
[resource_160]
displayName: testres
[resource_161]
displayName: testres
[resource_162]
displayName: testres
[resource_163]
displayName: testres
[resource_164]
displayName: testres
[resource_165]
displayName: testres
[resource_166]
displayName: testres
[resource_167]
displayName: testres
[resource_168]
displayName: testres
[resource_169]
displayName: testres
[resource_170]
displayName: testres
[resource_171]
displayName: testres
[resource_172]
displayName: testres
[resource_173]
displayName: testres
[resource_174]
displayName: testres
[resource_175]
displayName: testres
[resource_176]
displayName: testres
[resource_177]
displayName: testres
[resource_178]
displayName: testres
[resource_179]
displayName: testres
[resource_180]
displayName: testres
[resource_181]
displayName: testres
[resource_182]
displayName: testres
[resource_183]
displayName: testres
[resource_184]
displayName: testres
[resource_185]
displayName: testres
[resource_186]
displayName: testres
[resource_187]
displayName: testres
[resource_188]
displayName: testres
[resource_189]
displayName: testres
[resource_190]
displayName: testres
[resource_191]
displayName: testres
[resource_192]
displayName: testres
[resource_193]
displayName: testres
[resource_194]
displayName: testres
[resource_195]
displayName: testres
[resource_196]
displayName: testres
[resource_197]
displayName: testres
[resource_198]
displayName: testres
[resource_199]
displayName: testres
[resource_200]
displayName: testres
[resource_201]
displayName: testres
[resource_202]
displayName: testres
[resource_203]
displayName: testres
[resource_204]
displayName: testres
[resource_205]
displayName: testres
[resource_206]
displayName: testres
[resource_207]
displayName: testres
[resource_208]
displayName: testres
[resource_209]
displayName: testres
[resource_210]
displayName: testres
[resource_211]
displayName: testres
[resource_212]
displayName: testres
[resource_213]
displayName: testres
[resource_214]
displayName: testres
[resource_215]
displayName: testres
[resource_216]
displayName: testres
[resource_217]
displayName: testres
[resource_218]
displayName: testres
[resource_219]
displayName: testres
[resource_220]
displayName: testres
[resource_221]
displayName: testres
[resource_222]
displayName: testres
[resource_223]
displayName: testres
[resource_224]
displayName: testres
[resource_225]
displayName: testres
[resource_226]
displayName: testres
[resource_227]
displayName: testres
[resource_228]
displayName: testres
[resource_229]
displayName: testres
[resource_230]
displayName: testres
[resource_231]
displayName: testres
[resource_232]
displayName: testres
[resource_233]
displayName: testres
[resource_234]
displayName: testres
[resource_235]
displayName: testres
[resource_236]
displayName: testres
[resource_237]
displayName: testres
[resource_238]
displayName: testres
[resource_239]
displayName: testres
[resource_240]
displayName: testres
[resource_241]
displayName: testres
[resource_242]
displayName: testres
[resource_243]
displayName: testres
[resource_244]
displayName: testres
[resource_245]
displayName: testres
[resource_246]
displayName: testres
[resource_247]
displayName: testres
[resource_248]
displayName: testres
[resource_249]
displayName: testres
[resource_250]
displayName: testres
[resource_251]
displayName: testres
[resource_252]
displayName: testres
[resource_253]
displayName: testres
[resource_254]
displayName: testres
[resource_255]
displayName: testres
[resource_256]
displayName: testres
[resource_257]
displayName: testres
[resource_258]
displayName: testres
[resource_259]
displayName: testres
[resource_260]
displayName: testres
[resource_261]
displayName: testres
[resource_262]
displayName: testres
[resource_263]
displayName: testres
[resource_264]
displayName: testres
[resource_265]
displayName: testres
[resource_266]
displayName: testres
[resource_267]
displayName: testres
[resource_268]
displayName: testres
[resource_269]
displayName: testres
[resource_270]
displayName: testres
[resource_271]
displayName: testres
[resource_272]
displayName: testres
[resource_273]
displayName: testres
[resource_274]
displayName: testres
[resource_275]
displayName: testres
[resource_276]
displayName: testres
[resource_277]
displayName: testres
[resource_278]
displayName: testres
[resource_279]
displayName: testres
[resource_280]
displayName: testres
[resource_281]
displayName: testres
[resource_282]
displayName: testres
[resource_283]
displayName: testres
[resource_284]
displayName: testres
[resource_285]
displayName: testres
[resource_286]
displayName: testres
[resource_287]
displayName: testres
[resource_288]
displayName: testres
[resource_289]
displayName: testres
[resource_290]
displayName: testres
[resource_291]
displayName: testres
[resource_292]
displayName: testres
[resource_293]
displayName: testres
[resource_294]
displayName: testres
[resource_295]
displayName: testres
[resource_296]
displayName: testres
[resource_297]
displayName: testres
[resource_298]
displayName: testres
[resource_299]
displayName: testres
[resource_300]
displayName: testres
[resource_301]
displayName: testres
[resource_302]
displayName: testres
[resource_303]
displayName: testres
[resource_304]
displayName: testres
[resource_305]
displayName: testres
[resource_306]
displayName: testres
[resource_307]
displayName: testres
[resource_308]
displayName: testres
[resource_309]
displayName: testres
[resource_310]
displayName: testres
[resource_311]
displayName: testres
[resource_312]
displayName: testres
[resource_313]
displayName: testres
[resource_314]
displayName: testres
[resource_315]
displayName: testres
[resource_316]
displayName: testres
[resource_317]
displayName: testres
[resource_318]
displayName: testres
[resource_319]
displayName: testres
[resource_320]
displayName: testres
[resource_321]
displayName: testres
[resource_322]
displayName: testres
[resource_323]
displayName: testres
[resource_324]
displayName: testres
[resource_325]
displayName: testres
[resource_326]
displayName: testres
[resource_327]
displayName: testres
[resource_328]
displayName: testres
[resource_329]
displayName: testres
[resource_330]
displayName: testres
[resource_331]
displayName: testres
[resource_332]
displayName: testres
[resource_333]
displayName: testres
[resource_334]
displayName: testres
[resource_335]
displayName: testres
[resource_336]
displayName: testres
[resource_337]
displayName: testres
[resource_338]
displayName: testres
[resource_339]
displayName: testres
[resource_340]
displayName: testres
[resource_341]
displayName: testres
[resource_342]
displayName: testres
[resource_343]
displayName: testres
[resource_344]
displayName: testres
[resource_345]
displayName: testres
[resource_346]
displayName: testres
[resource_347]
displayName: testres
[resource_348]
displayName: testres
[resource_349]
displayName: testres
[resource_350]
displayName: testres
[resource_351]
displayName: testres
[resource_352]
displayName: testres
[resource_353]
displayName: testres
[resource_354]
displayName: testres
[resource_355]
displayName: testres
[resource_356]
displayName: testres
[resource_357]
displayName: testres
[resource_358]
displayName: testres
[resource_359]
displayName: testres
[resource_360]
displayName: testres
[resource_361]
displayName: testres
[resource_362]
displayName: testres
[resource_363]
displayName: testres
[resource_364]
displayName: testres
[resource_365]
displayName: testres
[resource_366]
displayName: testres
[resource_367]
displayName: testres
[resource_368]
displayName: testres
[resource_369]
displayName: testres
[resource_370]
displayName: testres
[resource_371]
displayName: testres
[resource_372]
displayName: testres
[resource_373]
displayName: testres
[resource_374]
displayName: testres
[resource_375]
displayName: testres
[resource_376]
displayName: testres
[resource_377]
displayName: testres
[resource_378]
displayName: testres
[resource_379]
displayName: testres
[resource_380]
displayName: testres
[resource_381]
displayName: testres
[resource_382]
displayName: testres
[resource_383]
displayName: testres
[resource_384]
displayName: testres
[resource_385]
displayName: testres
[resource_386]
displayName: testres
[resource_387]
displayName: testres
[resource_388]
displayName: testres
[resource_389]
displayName: testres
[resource_390]
displayName: testres
[resource_391]
displayName: testres
[resource_392]
displayName: testres
[resource_393]
displayName: testres
[resource_394]
displayName: testres
[resource_395]
displayName: testres
[resource_396]
displayName: testres
[resource_397]
displayName: testres
[resource_398]
displayName: testres
[resource_399]
displayName: testres
[resource_400]
displayName: testres

#>Buffer<#
#################################################################
#################################################################
#>Buffer<#
#################################################################
#################################################################
#>Buffer<#
#################################################################
#################################################################
#>Buffer<#







###########################
###########################
###########################
###########################
#Compiles into all-units.template, not
#necessarily a template of its own.
#Contains: Aesthetic, Damage, Destruction
#Building, Repair, Reclaim
###########################
###########################
###########################
###########################

###########################
###########################
#Information 
###########################
###########################

[action_faction]
text: Default
isVisible: false
description: [UnitFactionDescription]
displayType: infoOnly
buildSpeed: 0s
iconImage:ROOT:\drawable\icons\none.png
addResources: 1
pos: 0

[action_class]
text: Default
isVisible: false
description: [UnitClassDescription]
displayType: infoOnly
buildSpeed: 0s
iconImage:ROOT:\drawable\icons\none.png
addResources: 1
pos: 1

###########################
###########################
#Routines
###########################
###########################

[hiddenAction_autoRepairAtBaseOn]
autoTrigger: if self.numberOfUnitsInAllyTeam(greaterThan=0, withTag='repairBay') and not self.tags(includes='repairBay')
temporarilyAddTags: autoRepair

[hiddenAction_autoRepairAtBaseOff]
autoTrigger: if self.numberOfUnitsInAllyTeam(lessThan=1, withTag='repairBay') and self.tags(includes='repairBay')
temporarilyRemoveTags: autoRepair


###########################
###########################
#Information
###########################
###########################

#>Buffer<#
#################################################################
#################################################################
#>Buffer<#
#################################################################
#################################################################
#>Buffer<#
#################################################################
#################################################################
#>Buffer<#






