// -- Nillia onboard computer
// ConceptTalkHello
criterion "ConceptDamage" "concept" "Damage" "required"
criterion "ConceptStatus" "concept" "Status" "required"
criterion "ConceptShieldKilled" "concept" "ShieldKilled" "required"
criterion "ConceptShipKilled" "concept" "ShipKilled" "required"
criterion "HullCritical" "healthfrac" "<0.2"
criterion "ShieldsDown" "shieldfrac" "0.0"
criterion "ShieldsLow" "shieldfrac" "<0.2"
criterion "PrimaryLow" "primaryfrac" "<0.2"
criterion "SecondaryLow" "secondaryfrac" "<0.2"
criterion "DamageRadiation" "damagetype" "262144" // DMG_RADIATION

response "NilliaIntro"
{
	speak "Nillia.Welcome"
}

rule NilliaIntro
{
	criteria		ConceptTalkHello
	response		NilliaIntro
}

response NilliaRadiationGroup
{
	speak "Nillia.Radiation"
}
response "NilliaRadiation"
{
	response NilliaRadiationGroup delay 10
}

rule NilliaRadiation
{
	criteria ConceptDamage DamageRadiation
	response NilliaRadiation
}

response "NilliaShieldsDown"
{
	speak "Nillia.ShieldsDown"
}

rule NilliaShieldsDown
{
	criteria ConceptShieldKilled
	response NilliaShieldsDown
}

response "NilliaAmmunitionLow"
{
	speak "Nillia.AmmunitionLow"
}

response "NilliaEnergyLow"
{
	speak "Nillia.EnergyLow"
}

response "NilliaHullCritical"
{
	speak "Nillia.HullCritical"
}

response "NilliaDeserting"
{
	speak "Nillia.Deserting"
}

response "NilliaTargetDestroyed"
{
	speak "Nillia.TargetDestroyed"
}