What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Face Huntard

Nivek18

New Member
Joined
May 31, 2013
Messages
11
Reaction score
0
Is there anyway to make the bot go face only with my hunter and only use silence on taunts?
 
you can open defaultroutine.cs and change behaviour from control to rush and int enfacehp = 15; // hp of enemy when your hero is allowed to attack the enemy face with his weapon to 30

I found this in silverfish_hb.cs :

private void updateBehaveString(Behavior botbase)
{
this.botbehave = "rush";
if (botbase is BehaviorControl) this.botbehave = "control";
if (botbase is BehaviorMana) this.botbehave = "mana";
this.botbehave += " " + Ai.Instance.maxwide;
this.botbehave += " face " + ComboBreaker.Instance.attackFaceHP;
if (Settings.Instance.secondTurnAmount > 0)
but I don't know what it do

you have it also in defaultroutine.cs :

ComboBreaker.Instance.attackFaceHP = enfacehp;

in silverfish/ai you have behaviourrush.cs and in this file is something like this :

}

foreach (Minion m in p.enemyMinions)
{
retval -= this.getEnemyMinionValue(m, p);
}

retval -= p.enemySecretCount;
retval -= p.lostDamage;//damage which was to high (like killing a 2/1 with an 3/3 -> => lostdamage =2
retval -= p.lostWeaponDamage;
if (p.ownMinions.Count == 0) retval -= 20;
if (p.enemyMinions.Count >= 4) retval -= 20;
if (p.enemyHero.Hp <= 0) retval = 10000;
//soulfire etc
int deletecardsAtLast = 0;
foreach (Action a in p.playactions)
{
if (a.actionType != actionEnum.playcard) continue;
if (a.card.card.name == CardDB.cardName.soulfire || a.card.card.name == CardDB.cardName.doomguard || a.card.card.name == CardDB.cardName.succubus) deletecardsAtLast = 1;
if (deletecardsAtLast == 1 && !(a.card.card.name == CardDB.cardName.soulfire || a.card.card.name == CardDB.cardName.doomguard || a.card.card.name == CardDB.cardName.succubus)) retval -= 20;
}
if (p.enemyHero.Hp >= 1 && p.guessingHeroHP <= 0)
{
if (p.turnCounter < 2) retval += p.owncarddraw * 500;
retval -= 1000;
}
if (p.ownHero.Hp <= 0) retval = -10000;

p.value = retval;
return retval;
}

Meaby changing something in behaviourrush.cs will make bot think that enemy hero hp is very low and our is full forcing it to make face damage decissions
 
Back
Top