Team Default Strategy

Discussions about the internal structures of the game. You can also post here if you'd like to know how things really work (and don't know how to read C code).
Post Reply
bygkicker
Posts: 10
Joined: Tue Nov 03, 2020 9:37 am

Team Default Strategy

Post by bygkicker »

Hi everyone,

I attached another team default strategy, which you can add to your support_files/strategy/ folder. It gives quite competitive (and nasty) results.

Is there a way to adapt the team default strategy to the player roster? A check at the start of a new season could be a good first shot at this. When you quit a bygfoot job, the old strategy is activated again, it seems. And shortly after your old team drops like a stone.
bygkicker
Posts: 10
Joined: Tue Nov 03, 2020 9:37 am

Re: Team Default Strategy - strategy_attack3.xml

Post by bygkicker »

<?xml version="1.0" encoding="UTF-8"?>
<strategy>
<sid>attack3</sid>
<desc>253, attack, best players, minfit 90</desc>
<priority>1</priority>

<prematch>
<formation>253</formation>
<formation>343</formation>
<formation>433</formation>
<formation>352</formation>
<formation>442</formation>
<formation>532</formation>

<lineup min_fitness="90">best</lineup>
<prematch_boost>off</prematch_boost>
<prematch_style>attack</prematch_style>
</prematch>
<prematch cond="_AVSKILLDIFF_ < 4">
<prematch_style>balanced</prematch_style>
</prematch>
<prematch cond="_LAYERDIFF_ = 1 or _AVSKILLDIFF_ > 8">
<formation>433</formation>
<formation>442</formation>
<formation>352</formation>
<formation>532</formation>
<prematch_style>defend</prematch_style>
</prematch>

<prematch cond="_LAYERDIFF_ > 1 or _AVSKILLDIFF_ > 14">
<formation>433</formation>
<formation>451</formation>
<formation>442</formation>
<formation>352</formation>
<formation>532</formation>
<prematch_style>defend</prematch_style>
</prematch>

<prematch cond="_LAYERDIFF_ = -1 or _AVSKILLDIFF_ < -8">
<lineup min_fitness="90">fittest</lineup>
</prematch>

<prematch cond="_LAYERDIFF_ < -1 or _AVSKILLDIFF_ < -14">
<lineup min_fitness="90">fittest</lineup>
<prematch_boost>off</prematch_boost>
</prematch>

<!-- give up prematurely, let your stars recover -->
<prematch cond="_AVSKILLDIFF_ > 14">
<lineup min_fitness="90">weakest</lineup>
<prematch_boost>off</prematch_boost>
<prematch_style>defend</prematch_style>
</prematch>

<prematch cond="_GOALSTOWIN_ = 2">
<formation>244</formation>
<formation>253</formation>
<formation>343</formation>
<formation>433</formation>
<formation>352</formation>
<prematch_style>attack</prematch_style>
</prematch>

<prematch cond="_GOALSTOWIN_ > 2">
<formation>244</formation>
<formation>253</formation>
<formation>343</formation>
<formation>433</formation>
<formation>352</formation>
<prematch_boost>on</prematch_boost>
<prematch_style>all-out-attack</prematch_style>
</prematch>

<prematch cond="_GOALSTOWIN_ = -2">
<formation>253</formation>
<formation>343</formation>
<formation>442</formation>
<formation>352</formation>
<formation>532</formation>
<prematch_style>balanced</prematch_style>
</prematch>

<prematch cond="_GOALSTOWIN_ < -2">
<formation>343</formation>
<formation>442</formation>
<formation>352</formation>
<formation>532</formation>
<prematch_style>balanced</prematch_style>
</prematch>

<match_action cond="_MI_ >= 52 and _MI_ < 58 and _GOALSTOWIN_ <= -1 and _AVSKILLDIFF_ < 4">
<sub cond="_SUBSLEFT_ > 1">
<in prop="fittest">defender</in>
<out prop="weakest">forward</out>
</sub>
<style>balanced</style>
</match_action>

<match_action cond="_MI_ >= 58 and _GOALSTOWIN_ <= -1 and _AVSKILLDIFF_ < 4">
<sub cond="_SUBSLEFT_ > 1">
<in prop="fittest">defender</in>
<out prop="weakest">midfielder</out>
</sub>
<style>balanced</style>
</match_action>

<match_action cond="_MI_ >= 75 and _GOALSTOWIN_ <= -3">
<sub>
<in prop="weakest">forward</in>
<out prop="fittest">forward midfielder</out>
</sub>
<style>balanced</style>
<boost>off</boost>
</match_action>
<match_action cond="_MI_ >= 65 and _MI_ < 80 and _GOALSTOWIN_ <= -3">
<sub>
<in prop="weakest">midfielder</in>
<out prop="fittest">forward midfielder</out>
</sub>
<style>balanced</style>
<boost>off</boost>
</match_action>

<match_action cond="_MI_ >= 80 and _GOALSTOWIN_ = 3">
<sub>
<in prop="weakest">defender</in>
<out prop="unfittest">forward midfielder</out>
</sub>
<style>balanced</style>
<boost>off</boost>
</match_action>

<match_action cond="_MI_ >= 50 and _MI_ < 75 and _GOALSTOWIN_ > 3">
<sub cond="_SUBSLEFT_ > 1">
<in prop="weakest">midfielder</in>
<out prop="unfittest">midfielder forward</out>
</sub>
<style>balanced</style>
<boost>off</boost>
</match_action>

<match_action cond="_MI_ >= 75 and _GOALSTOWIN_ = 2">
<sub>
<in prop="best">forward</in>
<out prop="weakest">midfielder defender</out>
</sub>
<style>all-out-attack</style>
<boost>on</boost>
</match_action>
<match_action cond="_MI_ >= 50 and _MI_ < 75 and _GOALSTOWIN_ = 2">
<sub cond="_SUBSLEFT_ > 1">
<in prop="best">forward</in>
<out prop="weakest">midfielder defender</out>
</sub>
<style>attack</style>
</match_action>

<match_action cond="_MI_ >= 65 and _MI_ < 80 and _GOALSTOWIN_ = 3">
<sub>
<in prop="best">forward</in>
<out prop="weakest">midfielder defender</out>
</sub>
<style>all-out-attack</style>
<boost>on</boost>
</match_action>
<match_action cond="_MI_ >= 40 and _MI_ < 65 and _GOALSTOWIN_ = 3">
<sub cond="_SUBSLEFT_ > 1">
<in prop="best">forward</in>
<out prop="weakest">midfielder defender</out>
</sub>
<style>all-out-attack</style>
</match_action>

<match_action cond="_MI_ < 40 and _GOALSTOWIN_ < -2">
<style>balanced</style>
</match_action>
<match_action cond="_MI_ < 40 and _GOALSTOWIN_ < -3">
<style>defend</style>
</match_action>
<match_action cond="_MI_ < 40 and _GOALSTOWIN_ > 2">
<style>attack</style>
</match_action>
<match_action cond="_MI_ < 40 and _GOALSTOWIN_ > 3">
<style>all-out-attack</style>
</match_action>

<!-- let the talents play -->
<match_action cond="_MI_ >= 80 and _GOALSTOWIN_ > 2 or _GOALSTOWIN_ < -2">
<sub>
<in prop="weakest">defender</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
<sub>
<in prop="weakest">midfielder</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
<sub>
<in prop="weakest">forward</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
</match_action>
<match_action cond="_MI_ >= 80 and _GOALSTOWIN_ > 2 or _GOALSTOWIN_ < -2">
<sub>
<in prop="weakest">midfielder</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
<sub>
<in prop="weakest">forward</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
<sub>
<in prop="weakest">defender</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
</match_action>
<match_action cond="_MI_ >= 80 and _GOALSTOWIN_ > 2 or _GOALSTOWIN_ < -2">
<sub>
<in prop="weakest">forward</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
<sub>
<in prop="weakest">defender</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
<sub>
<in prop="weakest">midfielder</in>
<out prop="unfittest">forward midfielder defender</out>
</sub>
</match_action>

</strategy>
Post Reply