Files
OpenRA/mods/d2k/rules/ai.yaml
Paul Chote a46baeaf2b Reorganise AI base building logic.
- Now obeys defined structure percentages and limits.
- Faster.
- More readable and maintainable code.
2014-07-09 17:50:14 +12:00

312 lines
5.7 KiB
YAML

Player:
HackyAI@Omnius:
Name: Omnius
UnitQueues: Infantry, Vehicle, Armor, Starport
BuildingCommonNames:
ConstructionYard: conyarda,conyardh,conyardo
Refinery: refa,refh,refo
Power: pwra,pwrh,pwro
Barracks: barra,barrh,barro
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
Silo: siloa, siloh, siloo
UnitsCommonNames:
Mcv: mcva,mcvh,mcvo
BuildingLimits:
refa: 4
refh: 4
refo: 4
barra: 1
barrh: 1
barro: 1
lighta: 1
lighth: 1
lighto: 1
heavya: 1
heavyh: 1
heavyo: 1
researcha: 1
researchh: 1
researcho: 1
repaira: 1
repairh: 1
repairo: 1
radara: 1
radaro: 1
radarh: 1
hightecha: 1
hightechh: 1
hightecho: 1
palacea: 1
palaceh: 1
palaceo: 1
BuildingFractions:
refa: 20.1%
refh: 20.1%
refo: 20.1%
barra: 0.1%
barrh: 0.1%
barro: 0.1%
lighta: 0.1%
lighth: 0.1%
lighto: 0.1%
heavya: 0.1%
heavyh: 0.1%
heavyo: 0.1%
radara: 0.1%
radaro: 0.1%
radarh: 0.1%
hightecha: 0.1%
hightechh: 0.1%
hightecho: 0.1%
starporta: 0.1%
starporth: 0.1%
starporto: 0.1%
researcha: 0.1%
researchh: 0.1%
researcho: 0.1%
repaira: 0.1%
repairh: 0.1%
repairo: 0.1%
guntowera: 7%
guntowerh: 7%
guntowero: 7%
rockettowera: 7%
rockettowerh: 7%
rockettowero: 7%
powra: 10%
powrh: 10%
powro: 10%
UnitsToBuild:
rifle: 6%
bazooka: 5%
medic: 1%
fremen: 0.5%
sardaukar: 1.5%
harvester: 0.1%
trike.starport: 5%
quad.starport: 7.5%
siegetank.starport: 5%
missiletank.starport: 7.5%
combata.starport: 15%
combath.starport: 15%
combato.starport: 15%
sonictank: 10%
devast: 10%
deviatortank: 7.5%
trike: 10%
quad: 15%
siegetank: 10%
missiletank: 15%
combata: 100%
combath: 100%
combato: 100%
SquadSize: 8
MaxBaseRadius: 40
HackyAI@Vidius:
Name: Vidious
UnitQueues: Infantry, Vehicle, Armor, Starport
BuildingCommonNames:
ConstructionYard: conyarda,conyardh,conyardo
Refinery: refa,refh,refo
Power: pwra,pwrh,pwro
Barracks: barra,barrh,barro
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
Silo: siloa, siloh, siloo
UnitsCommonNames:
Mcv: mcva,mcvh,mcvo
BuildingLimits:
refa: 4
refh: 4
refo: 4
barra: 1
barrh: 1
barro: 1
lighta: 1
lighth: 1
lighto: 1
heavya: 1
heavyh: 1
heavyo: 1
researcha: 1
researchh: 1
researcho: 1
repaira: 1
repairh: 1
repairo: 1
radara: 1
radaro: 1
radarh: 1
hightecha: 1
hightechh: 1
hightecho: 1
palacea: 1
palaceh: 1
palaceo: 1
BuildingFractions:
refa: 20.1%
refh: 20.1%
refo: 20.1%
barra: 0.1%
barrh: 0.1%
barro: 0.1%
lighta: 0.1%
lighth: 0.1%
lighto: 0.1%
heavya: 0.1%
heavyh: 0.1%
heavyo: 0.1%
radara: 0.1%
radaro: 0.1%
radarh: 0.1%
hightecha: 0.1%
hightechh: 0.1%
hightecho: 0.1%
repaira: 0.1%
repairh: 0.1%
repairo: 0.1%
starporta: 0.1%
starporth: 0.1%
starporto: 0.1%
palacea: 0.1%
palaceh: 0.1%
palaceo: 0.1%
guntowera: 5%
guntowerh: 5%
guntowero: 5%
rockettowera: 10%
rockettowerh: 10%
rockettowero: 10%
powra: 12%
powrh: 12%
powro: 12%
UnitsToBuild:
rifle: 2%
bazooka: 2%
medic: 0.5%
fremen: 0.25%
sardaukar: 1%
harvester: 0.1%
trike.starport: 7.5%
quad.starport: 12.5%
siegetank.starport: 5%
missiletank.starport: 7.5%
combata.starport: 15%
combath.starport: 15%
combato.starport: 15%
sonictank: 50%
devast: 40%
deviatortank: 5%
trike: 15%
raider: 15%
quad: 25%
siegetank: 10%
missiletank: 15%
combata: 100%
combath: 100%
combato: 100%
SquadSize: 6
MaxBaseRadius: 40
HackyAI@Gladius:
Name: Gladius
UnitQueues: Infantry, Vehicle, Armor, Starport
BuildingCommonNames:
ConstructionYard: conyarda,conyardh,conyardo
Refinery: refa,refh,refo
Power: pwra,pwrh,pwro
Barracks: barra,barrh,barro
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
Silo: siloa, siloh, siloo
UnitsCommonNames:
Mcv: mcva,mcvh,mcvo
BuildingLimits:
refa: 4
refh: 4
refo: 4
barra: 1
barrh: 1
barro: 1
lighta: 1
lighth: 1
lighto: 1
heavya: 1
heavyh: 1
heavyo: 1
researcha: 1
researchh: 1
researcho: 1
repaira: 1
repairh: 1
repairo: 1
radara: 1
radaro: 1
radarh: 1
hightecha: 1
hightechh: 1
hightecho: 1
palacea: 1
palaceh: 1
palaceo: 1
BuildingFractions:
refa: 20.1%
refh: 20.1%
refo: 20.1%
barra: 0.1%
barrh: 0.1%
barro: 0.1%
lighta: 0.1%
lighth: 0.1%
lighto: 0.1%
heavya: 0.1%
heavyh: 0.1%
heavyo: 0.1%
repaira: 0.1%
repairh: 0.1%
repairo: 0.1%
radara: 0.1%
radaro: 0.1%
radarh: 0.1%
hightecha: 0.1%
hightechh: 0.1%
hightecho: 0.1%
researcha: 0.1%
researchh: 0.1%
researcho: 0.1%
palacea: 0.1%
palaceh: 0.1%
palaceo: 0.1%
guntower: 10%
rockettower: 5%
powra: 10%
powrh: 10%
powro: 10%
UnitsToBuild:
rifle: 15%
bazooka: 13%
medic: 2%
fremen: 1%
sardaukar: 3%
harvester: 0.1%
trike.starport: 5%
quad.starport: 7.5%
siegetank.starport: 5%
missiletank.starport: 7.5%
combata.starport: 15%
combath.starport: 15%
combato.starport: 15%
sonictank: 10%
devast: 10%
deviatortank: 7.5%
trike: 10%
raider: 10%
quad: 15%
siegetank: 10%
missiletank: 15%
combata: 100%
combath: 100%
combato: 100%
SquadSize: 10
MaxBaseRadius: 40