Hearthranger - How to customize card behavior 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 [CARDID.json].
[ Sample ]
A simple sample, control Sir Finley Mrrgglton which card should be selected.
LOE_076.json
{
"GameCardId":"LOE_076",
"ConfigComment":"Sir Finley Mrrgglton discover bonus config",
"InHandPlayPriority":
{
"values":
[
{
"comment":"play this card as early as possible.",
"condition": "*",
"value":"10",
}
],
},
"OnDiscoverCardBonus":
{
"values":
[
{
"comment":"choose steady shot ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=DS1h_292) > 0 ",
"value":"9",
},
{
"comment":"choose Life Tap ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_056) > 0 ",
"value":"8",
},
{
"comment":"choose Fireblast ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_034) > 0 ",
"value":"7",
},
{
"comment":"choose Shapeshift ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_017) > 0 ",
"value":"6",
},
{
"comment":"choose Lesser Heal ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS1h_001) > 0 ",
"value":"5",
},
{
"comment":"choose Reinforce ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_101) > 0 ",
"value":"4",
},
{
"comment":"choose Totemic Call ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_049) > 0 ",
"value":"3",
},
{
"comment":"choose Dagger Mastery ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_083b) > 0 ",
"value":"2",
},
{
"comment":"choose Armor Up! ",
"condition": "my_hero(count(),warrior) > 0 AND my_discover(count(),cardid=CS2_102) > 0 ",
"value":"1",
}
],
},
}
[ Sample ]
control minion 'Grommash Hellscream' only attack hero when possible.
EX1_414.json
{
"GameCardId":"EX1_414",
"ConfigComment":"Grommash Hellscream : Charge Enrage: +6 Attack",
"BeforePhysicalAttackBonus":
{
"values":
[
{
"comment":"bonus if this card used on opp hero",
"condition": "my_target(count(),hero=true) > 0",
"value":"20",
},
],
},
}
To understand condition and value, please read:
Hearthranger - How to understand json config ?