AI Does the Darndest Things

The tale of the siblings Althea and Shea https://www.winterwolves.com/seasonsofthewolf.htm
Post Reply
User avatar
Anima_
Druid
Posts: 345
Joined: Fri Mar 02, 2012 2:44 pm
Location: Germany
Contact:

Re: AI Does the Darndest Things

Post by Anima_ »

Agrro is also used to break ties. For example when two characters have the same lowest health the one with the higher aggro is chosen as target.
RPG Programmer for Winterwolves, currently working on: Amber's Magic Shop
Part-time emotionless AI
User avatar
fabulaparva
Elder Druid
Posts: 761
Joined: Sun May 04, 2014 9:58 pm

Re: AI Does the Darndest Things

Post by fabulaparva »

A couple of actions I find odd during Act 3: :P

During the quest in Arlakka, the bowmen in the backrow all used Hide In Shadows. I thought I was done for, expecting them to go for the double attack or critical hit. But then they wasted it on "throwing Daggers" :shock: It didn't look as if the dmg from throwing daggers-attack would benefit from HiS. Shouldn't they go for a more damaging attack if they waste a turn to prepare? This was in the very beginning of the fight so their protecting front row was still standing and Magic attacks were disabled from my side as the battlefield condition.

During the first fight with the Kraken, quite a few tentacles just waste their turns in swapping my front and backrow fighters back and forth. I think I experienced 5 consecutive swaps.
User avatar
jack1974
Pack leader
Posts: 15479
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

The Kraken's tentacles still use the old AI, so that's "normal" but will try to improve them using the new AI now.
The bowmen instead yes, is a bug, they shouldn't have the throwing dagger skill :)
User avatar
yayswords
Elder Druid
Posts: 1436
Joined: Sat Jan 25, 2014 5:34 am

Re: AI Does the Darndest Things

Post by yayswords »

I am unsure about the self-dispel AI, especially Healing Winds. I could effectively keep the Sand Devil pacified by always making sure to keep a debuff on it. With Necrotic Healing it wasn't the same since those mobs never came alone, though still the Lich Lord could be quieted down a bit the same way.
If at first try it doesn't explode, it ain't Jack who wrote the code.
User avatar
jack1974
Pack leader
Posts: 15479
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

It should be fast enough for him to clear himself of all debuffs+heal, and act rather quickly again. Well I'm making the enemies tougher now, we'll see :)
User avatar
fabulaparva
Elder Druid
Posts: 761
Joined: Sun May 04, 2014 9:58 pm

Re: AI Does the Darndest Things

Post by fabulaparva »

Empire Recruits skip turns. Seems to be the Overdrive Skill/Poison Dagger again.
AI-log:
Spoiler:
[20:41:44] ################# AI REQUEST for Empire Ranger B ################
[20:41:44]
[20:41:44] Considering Energy
[20:41:44] Random: 36 <= 55
[20:41:44] Targets: ['Empire Captain A', 'Empire Recruit', 'Empire Captain B', 'Empire Ranger A', 'Empire Ranger B']
[20:41:44] Decorator SP higher than 0.25
[20:41:44] Targets: []
[20:41:44] Considering Switch Position
[20:41:44] User Empire Ranger B Health is at 95.40 % >= 70.00 % (True) (Reverse: True)
[20:41:44] Considering Pinning Shot
[20:41:44] 1 staggered Enemies, 1 needed (Reverse: False)
[20:41:44] Random: 16 <= 60
[20:41:44] Targets: ['Krimm']
[20:41:44] Decorator Staggered
[20:41:44] Targets: ['Krimm']
[20:41:44] Decorator Minimum Health
[20:41:44] Targets: ['Krimm']
[20:41:44] Target is Krimm
[20:41:44]
[20:41:44] ############### Executing Pinning Shot ##############
[20:41:44]
[20:41:46] Start AI action request for Empire Recruit
[20:41:46] Request action from node Root
[20:41:46] Condition is False
[20:41:46] Request action from AI action OverdriveAction
[20:41:46] Return action for slot Overdrive with Poison Dagger as slotted skill.
[20:42:45]

[20:42:45] ################# AI REQUEST for Empire Captain A ################
[20:42:45]
[20:42:45] Considering Heal Potion
[20:42:45] User Empire Captain A Health is at 61.12 % >= 50.00 % (True) (Reverse: True)
[20:42:45] Considering Guard
[20:42:45] Random: 85 <= 75
[20:42:45] Considering Mighty Blow II
[20:42:45] Not enough SP
[20:42:45] Considering Resurrection Potion
[20:42:45] Random: 70 <= 40
[20:42:45] Considering Fatal Blow
[20:42:45] Not enough SP
[20:42:45] Considering Double Attack
[20:42:45] Random: 64 <= 50
[20:42:45] Considering Spinning Strike
[20:42:45] Random: 64 <= 50
[20:42:45] Considering Melee Attack
[20:42:45] Random: 69 <= 100
[20:42:45] Targets: ['Jariel', 'Krimm', 'Shea']
[20:42:45] Decorator Minimum HP
[20:42:45] Targets: ['Jariel']
[20:42:45] Target is Jariel
[20:42:45]
[20:42:45] ############### Executing Melee Attack ##############
Combat-Log around it: (he's just standing there, taking DoT)
Spoiler:
[20:41:44] Oceans' Requiem caused Empire Ranger B 6 HP damage
[20:41:44] Empire Ranger B hit Krimm for 15 Normal damage using Pinning Shot.
[20:41:44] The Condition will expire in 2 turns
[20:41:44] Empire Ranger B inflicted Paralyzed on Krimm
[20:41:46] Bleeding caused Empire Recruit 5 HP damage
[20:41:46] Oceans' Requiem caused Empire Recruit 5 HP damage

[20:42:35] Rowinda hit Empire Captain A for 68 Air damage using Cyclone.
[20:42:36] Rowinda hit Empire Recruit for 71 Air damage using Cyclone.
[20:42:36] Empire Recruit is staggered.
[20:42:38] Rowinda hit Empire Captain B for 68 Air damage using Cyclone.
[20:42:43] Empire Recruit is KO.
[20:42:43] Shea hit Empire Recruit for 56 Normal damage using Sweeping Strike.
[20:42:45] Bleeding caused Empire Captain A 9 HP damage
[20:42:45] Oceans' Requiem caused Empire Captain A 9 HP damage
[20:42:45] Empire Captain A hit Jariel for 22 Normal damage using Melee Attack.
[20:42:45] Jariel is staggered.
(The time gap is just me opening up the logs to check if he just did (or didn't do, rather) what I think he did.)
User avatar
jack1974
Pack leader
Posts: 15479
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

Maybe is time to upgrade the poor empire recruit to the new AI... :lol:
User avatar
yayswords
Elder Druid
Posts: 1436
Joined: Sat Jan 25, 2014 5:34 am

Re: AI Does the Darndest Things

Post by yayswords »

Lizardmen wizards or whatever their name, will spam Defend when out of mana. No Magic Bolt ever.
If at first try it doesn't explode, it ain't Jack who wrote the code.
User avatar
jack1974
Pack leader
Posts: 15479
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

Yes they still use old AI. I should probably upgrade all enemies to it...
User avatar
fabulaparva
Elder Druid
Posts: 761
Joined: Sun May 04, 2014 9:58 pm

Re: AI Does the Darndest Things

Post by fabulaparva »

K, this is not silly behaviour but bug. I healed myself by attacking empire captain with mirror dmg on them;

Spirit Caller puts mirror dmg on Empire captain (paralyzed):
Spoiler:
[21:36:38] ################# AI REQUEST for Spiritcaller ################
[21:36:38]
[21:36:38] Considering Switch Position
[21:36:38] User Spiritcaller Health is at 99.80 % >= 70.00 % (True) (Reverse: True)
[21:36:38] Considering Purification
[21:36:38] Random: 23 <= 70
[21:36:38] Targets: ['Empire Captain A', 'Empire Ranger A', 'Spiritcaller']
[21:36:38] Decorator Back
[21:36:38] Targets: ['Empire Ranger A', 'Spiritcaller']
[21:36:38] Decorator HP higher than 75
[21:36:38] Targets: []
[21:36:38] Considering Tree Of Life
[21:36:38] Random: 10 <= 40
[21:36:38] Counter 2 is False (Reverse: False)
[21:36:38] Considering Energize
[21:36:38] Random: 69 <= 40
[21:36:38] Considering Mirror Damage
[21:36:38] Random: 45 <= 50
[21:36:38] Targets: ['Empire Captain A', 'Empire Ranger A', 'Spiritcaller']
[21:36:38] Decorator Has not Mirror Damage
[21:36:38] Targets: ['Empire Captain A', 'Spiritcaller']
[21:36:38] Target is Empire Captain A
[21:36:38]
[21:36:38] ############### Executing Mirror Damage ##############

21:37:00]
[21:37:00] ################# AI REQUEST for Empire Ranger A ################
[21:37:00]
[21:37:00] Considering Energy
[21:37:00] Random: 67 <= 55
[21:37:00] Considering Switch Position
[21:37:00] User Empire Ranger A Health is at 82.83 % >= 70.00 % (True) (Reverse: True)
[21:37:00] Considering Pinning Shot
[21:37:00] 1 staggered Enemies, 1 needed (Reverse: False)
[21:37:00] Random: 70 <= 60
[21:37:00] Considering Heal Potion
[21:37:00] Random: 87 <= 55
[21:37:00] Considering Barrage
[21:37:00] Random: 10 <= 65
[21:37:00] 3 Enemies affected by Take Aim , 2 needed (Reverse: False)
[21:37:00] Targets: ['Shea', 'Vaelis', 'Rowinda', 'Althea', 'Riley']
[21:37:00] Decorator Back
[21:37:00] Targets: ['Rowinda', 'Althea', 'Riley']
[21:37:00] Decorator Has Take Aim
[21:37:00] Targets: ['Rowinda', 'Althea', 'Riley']
[21:37:00] Target is Rowinda
[21:37:00]
[21:37:00] ############### Executing Barrage ##############
[21:37:00]
[21:37:24]
[21:37:24] ################# AI REQUEST for Spiritcaller ################
[21:37:24]
[21:37:24] Considering Switch Position
[21:37:24] User Spiritcaller Health is at 77.99 % >= 70.00 % (True) (Reverse: True)
[21:37:24] Considering Purification
[21:37:24] Random: 32 <= 70
[21:37:24] Targets: ['Empire Ranger A', 'Spiritcaller']
[21:37:24] Decorator Front
[21:37:24] Targets: ['Empire Ranger A', 'Spiritcaller']
[21:37:24] Decorator HP higher than 75
[21:37:24] Targets: []
[21:37:24] Considering Tree Of Life
[21:37:24] Random: 96 <= 40
[21:37:24] Considering Energize
[21:37:24] Random: 19 <= 40
[21:37:24] Counter 2 is False (Reverse: False)
[21:37:24] Considering Mirror Damage
[21:37:24] Random: 24 <= 50
[21:37:24] Targets: ['Empire Ranger A', 'Spiritcaller']
[21:37:24] Decorator Has not Mirror Damage
[21:37:24] Targets: ['Empire Ranger A', 'Spiritcaller']
[21:37:24] Target is Empire Ranger A
[21:37:24]
[21:37:24] ############### Executing Mirror Damage ##############
[21:37:24]
And then a bit later Vaelis attacks, inflicting negative damage and heals:
Spoiler:
[21:36:37] Empire Captain A is paralyzed and can not act
[21:36:38] Spiritcaller buffed Empire Captain A with Mirror Damage. The buff will expire in 5 turns
[21:36:38] Spiritcaller used Mirror Damage.

[21:36:39] Rowinda traded 15 HP to get 30 SP using Dark Empathy Effect.
[21:36:43] Empire Ranger A reflected back 17 damage to Rowinda thanks to Mirror Damage. Skill duration lowered by 1.
[21:36:43] Rowinda hit Empire Ranger A for 34 Air damage using Cyclone.
[21:36:45] Rowinda hit Spiritcaller for 21 Air damage using Cyclone.
[21:36:49] Riley buffed Rowinda with Default. The buff will expire in 3 turns
[21:36:49] SPRegen increased by 10
[21:36:49] HPRegen increased by 10
[21:36:49] Speed increased by 20 %
[21:36:49] Riley used Energize.
[21:36:54] Empire Ranger A reflected back 2 damage to Shea thanks to Mirror Damage. Skill duration lowered by 1.
[21:36:54] Shea hit Empire Ranger A for 5 Fire damage using Ranged Attack.
[21:36:57] Empire Ranger A reflected back 5 damage to Althea thanks to Mirror Damage. Skill duration lowered by 1.
[21:36:57] Althea hit Empire Ranger A for 11 Normal damage using Ranged Attack.
[21:36:57] Critical Hit!
[21:36:58] Empire Captain A is paralyzed and can not act
[21:37:00] Empire Ranger A hit Rowinda for 76 Normal damage using Barrage.
[21:37:00] Rowinda is staggered.
[21:37:01] Empire Ranger A hit Althea for 42 Normal damage using Barrage.
[21:37:01] Althea is staggered.
[21:37:08] Riley hit Spiritcaller for 2 Normal damage using Slumber.
[21:37:08] The Condition will expire in 3 turns
[21:37:08] Speed decreased by 30 %
[21:37:08] Defense decreased by 30 %
[21:37:08] Riley inflicted Slumber on Spiritcaller
[21:37:14] Shea hit Spiritcaller for 10 Fire damage using Ranged Attack.
[21:37:17] The buff will last until the end of the battle.
[21:37:17] Althea used Invigorating Prayer.
[21:37:22] Empire Captain A is KO.
[21:37:22] Empire Captain A reflected back -32 damage to Vaelis thanks to Mirror Damage. Skill duration lowered by 1.
[21:37:22] Vaelis hit Empire Captain A for -64 Normal damage using Final Blow.
[21:37:22] Instantkill triggered successfully!

[21:37:24] Spiritcaller buffed Empire Ranger A with Mirror Damage. The buff will expire in 5 turns
[21:37:24] Spiritcaller used Mirror Damage.
Post Reply