Quote:
Originally Posted by Simagol
Hey there, first of all thank you for all the work you put into it, have been trying it for a day or two and its overall really good!
What exactly is the correct value in TargetAllegiance for a party member, since my BiP Is refusing to use it even though I already changed the value to 40 to give it more time another one is Shatter Hex It's also casting it on enemys if I saw it right.
Again Thanks for the work!
Edit: and a small typing error It says /heroai to toggle... on startup put it seems you change it to actually be /aihero :)
|
Thank you! :) i hope with enough time i can get this bot runnig smooth
about the skills let me explain a bit, im going to use my code values since its more readable, but everything can be configured from the skills.json
Skills[ptr].SkillID = GW::Constants::SkillID::Blood_is_Power;
Skills[ptr].SkillType = GW::Constants::SkillType::Enchantment;
Skills[ptr].TargetAllegiance = OtherAlly;
Skills[ptr].Nature = EnergyBuff;
Skills[ptr].Conditions.LessEnergy = 0.3f; (change for 0.4f)
for this specific skill (and blood ritual) it is necessary for every account to be running the plugin even if all options are off, since its the only way they can see eachother energy levels, also, i believe theres a bug on real hero energy levels, havent had time to test fully.
for the skill Shatter Hex, you are absolutely right, i made a mistake on entering the data, but its a perfect example how you can fix that or even add a skill that i havent added yet.
this is currently the Skill configured
Skills[ptr].SkillID = GW::Constants::SkillID::Shatter_Hex;
Skills[ptr].SkillType = GW::Constants::SkillType::Spell;
Skills[ptr].TargetAllegiance =
Enemy;
Skills[ptr].Nature =
Offensive;
Skills[ptr].Conditions.HasHex = true;
this need to be changed
Skills[ptr].SkillID = GW::Constants::SkillID::Shatter_Hex;
Skills[ptr].SkillType = GW::Constants::SkillType::Spell;
Skills[ptr].TargetAllegiance =
Ally;
Skills[ptr].Nature =
Hex_Removal;
Skills[ptr].Conditions.HasHex = true;
the skill was configured as a Offensive one, also was targetting an offensive objective.
by changing TargetAlliagance to Ally and the Nature to Hex_removal, we guarantee that the skill is casted in the Hex removal priority and a benefical target is selected.
mind you, the AI for the moment cannot choose whis is the better target to shatter the hex to, the AI will simply chack against the nearest ally with the lowest pool of health, and if it has a hex it will remove it. In practice, you dont reallynotice this behaviours, but if you pay attention tha tis whats happening (or should be).
changed the skill and fixed the typo on command /aihero, will be fixed for next release.
if you wish to configure you own skills, this are the valuest of TargetAllegiance and SkillNature (starting on 0)
enum SkillTarget { Enemy, EnemyCaster, EnemyMartial, Ally, AllyCaster, AllyMartial, OtherAlly, DeadAlly, Self, Corpse, Minion, Spirit, Pet };
enum SkillNature { Offensive, OffensiveCaster, OffensiveMartial, Enchantment_Removal, Healing, Hex_Removal, Condi_Cleanse, Buff, EnergyBuff, Neutral, SelfTargetted, Resurrection, Interrupt };
Target, corpse, minion, spirit and pet are not yet implemented