Hearthranger - How to customize global values in vision a.i. ?
Open the ini file :
CustomConfig\deck_config.ini
In [CONFIGS] section, setup your deck's custom configuration directory, you need to create the directory under [CustomConfig] by yourself.
[CONFIGS]
MyDeckName = My_Deck_Config_Dir_Name
In the directory of [My_Deck_Config_Dir_Name], create a json file named [GlobalValues.json].
Strongly recommend you to copy [GlobalValues.json] from default directory then edit it.
Bot best move is calculated by board value.
board value = (my hand card value) + (my hero value) + (my hero power value) + (my hero weapon value) + (my secret value) + ( my minions value) + ( my deck value)
-(opponent hand card value) - (opponent hero value) - (opponent hero power value) - (opponent hero weapon value) - (opponent secret value) - (opponent minions value) - (opponent deck value)
Final board value = (first turn board value) * FirstTurnValueWeight + (second turn board value) * SecondTurnValueWeight
By default, bot only uses second turn's value, so FirstTurnValueWeight = 0 , SecondTurnValueWeight = 1
For aggro deck, bot can only uses first turn's value, so FirstTurnValueWeight = 1 , SecondTurnValueWeight = 0
Strongly recommend to use value weight other than 1 or 0, or it'll cause final board value is very hard to fine-tune.
Other global values are pretty self-explanatory.
{
"GameCardId":"GlobalValues",
"ConfigComment":"This is a special card for setup global values",
"FirstTurnValueWeight":
{
"values":
[
{
"condition": "*",
"value":"0",
}
],
},
"SecondTurnValueWeight":
{
"values":
[
{
"condition": "*",
"value":"1.0",
}
],
},
"GlobalDivineShield":
{
"values":
[
{
"condition": "*",
"value":"2.74",
}
],
},
...
}