AI Does the Darndest Things

The tale of the siblings Althea and Shea https://www.winterwolves.com/seasonsofthewolf.htm
Post Reply
renke_
Elder Druid
Posts: 580
Joined: Sat Feb 22, 2014 1:26 pm

Re: AI Does the Darndest Things

Post by renke_ »

narf, I took the skill at the end of my last play-through because it sounded so versatile without the 25% HP restriction ^^
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_ »

There never was a general health requirement for skill execution. Not in Loren nor in SotW. The requirement always was only for the special effect.
Target requirements are the same for AI and Player Characters, aside from equipment requirements since AI characters have none.
RPG Programmer for Winterwolves, currently working on: Amber's Magic Shop
Part-time emotionless AI
renke_
Elder Druid
Posts: 580
Joined: Sat Feb 22, 2014 1:26 pm

Re: AI Does the Darndest Things

Post by renke_ »

seriously? ha, I misunderstood the concept of instakill skills all the time and never chose them because I believed they are nearly unusable (HP limit, no bosses) - time to start LtAP again, this time with a more complete skill tree :D
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_ »

Actually no, Jack added a line to the skill targets after I wrote the new AI. The skill only works when the HP are low enough. But it will work against bosses, just not the instant kill.
So unfortunately the moment you noticed reality, reality changed.
RPG Programmer for Winterwolves, currently working on: Amber's Magic Shop
Part-time emotionless AI
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'm fairly sure it's practically instakill anyway. I don't think there's a boss yet that could survive a 450% attack from Vaelis at 25% health, unless Vaelis has been softened up and the boss hasn't.
If at first try it doesn't explode, it ain't Jack who wrote the code.
User avatar
jack1974
Pack leader
Posts: 15095
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

Anima_ wrote:Actually no, Jack added a line to the skill targets after I wrote the new AI. The skill only works when the HP are low enough. But it will work against bosses, just not the instant kill.
So unfortunately the moment you noticed reality, reality changed.
Yes exactly, in Loren always worked, but the insta-kill only for non-boss targets below the threshold.
Here I put the requirement, otherwise it was like a super skill (450% damage!? :shock:) and while doesn't give insta-kill in practice does so far since no boss has a very high HP (time to try that). I guess maybe I could raise the HP % to make it usable more...
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 sure would like to see a very high HP boss without heals (or at least without % heals) and infinite mana. And ridiculous speed... so that Kick and Slumber make the speed normal instead of depressing.
If at first try it doesn't explode, it ain't Jack who wrote the code.
User avatar
jack1974
Pack leader
Posts: 15095
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

They'll be coming :mrgreen: but having a single boss enemy and making him hard is always difficult to do. But with the new AI maybe I can...
User avatar
fabulaparva
Elder Druid
Posts: 761
Joined: Sun May 04, 2014 9:58 pm

Re: AI Does the Darndest Things

Post by fabulaparva »

Galanna BattleMages don't have very good communication skills. Yes, I understand why the first one used Life on their teammate, but then the next one did it, too...on the same teammate! Resulting in healing for 0HP.
Is this minor or major silliness?

(At the very end of these logs)
Combat Log:
Spoiler:
[21:05:09] Galanna Shadow Hunter A hit Vaelis for 10 Normal damage using Head Shot II.
[21:05:10] Galanna Shadow Hunter B hit Vaelis for 10 Normal damage using Head Shot II.
[21:05:10] The Condition will expire in 2 turns
[21:05:10] SPRegen decreased by 100 %
[21:05:10] Magic decreased by 25 %
[21:05:10] Galanna Shadow Hunter B inflicted Confused on Vaelis
[21:05:18] The Focus will expire in 5 turns
[21:05:18] Althea focused on Galanna Battlemage C
[21:05:18] The Focus will expire in 5 turns
[21:05:18] Althea focused on Galanna Battlemage B
[21:05:18] The Focus will expire in 5 turns
[21:05:18] Althea focused on Galanna Battlemage A
[21:05:18] Althea used Take Aim.
[21:05:22] The buff will expire in 3 turns
[21:05:22] SPRegen increased by 10
[21:05:22] HPRegen increased by 10
[21:05:22] Speed increased by 20 %
[21:05:22] Riley used Energize.
[21:05:25] The buff will expire in 5 turns
[21:05:25] Defense increased by 14 %
[21:05:25] Galanna Battlemage A used BrambleCoat.
[21:05:26] The buff will expire in 5 turns
[21:05:26] Defense increased by 14 %
[21:05:26] Galanna Battlemage B used BrambleCoat.
[21:05:32] Shea hit Galanna Battlemage C for 18 Earth damage using Strike Through.
[21:05:32] Critical Hit!
[21:05:32] Shea hit Galanna Battlemage C for 11 Air damage using Strike Through.
[21:05:32] Critical Hit!
[21:05:34] Shea hit Galanna Shadow Hunter B for 23 Earth damage using Strike Through.
[21:05:34] Critical Hit!
[21:05:34] Galanna Shadow Hunter B is staggered.
[21:05:34] Shea hit Galanna Shadow Hunter B for 23 Air damage using Strike Through.
[21:05:34] Critical Hit!
[21:05:35] The buff will expire in 3 turns
[21:05:35] Speed increased by 50 %
[21:05:35] Galanna Battlemage C buffed Galanna Shadow Hunter A with Eagle's Grace
[21:05:35] Galanna Battlemage C used Eagle's Grace.
[21:05:43] The Condition will expire in 2 turns
[21:05:43] Krimm inflicted Paralyzed on Galanna Shadow Hunter B
[21:05:43] Krimm pulled Galanna Shadow Hunter B to the front row!
[21:05:43] Krimm used Pull.
[21:05:59] Vaelis neutralized Confused on Vaelis
[21:05:59] The buff will expire in 5 turns
[21:05:59] Attack increased by 30 %
[21:05:59] Vaelis used Rally.
[21:06:01] The buff will expire in 5 turns
[21:06:01] Attack increased by 30 %
[21:06:01] Vaelis buffed Krimm with Rally
[21:06:02] The buff will expire in 5 turns
[21:06:02] Attack increased by 30 %
[21:06:02] Vaelis buffed Shea with Rally
[21:06:03] The buff will expire in 5 turns
[21:06:03] Attack increased by 30 %
[21:06:03] Vaelis buffed Althea with Rally
[21:06:04] The buff will expire in 5 turns
[21:06:04] Attack increased by 30 %
[21:06:04] Vaelis buffed Riley with Rally
[21:06:06] Galanna Battlemage A healed Galanna Shadow Hunter B for 46 HP using Life
[21:06:08] Galanna Battlemage B healed Galanna Shadow Hunter B for 0 HP using Life
AI.log:
Spoiler:
[21:05:09] Start AI action request for Galanna Shadow Hunter A
[21:05:09] Request action from node Root
[21:05:09] Condition is True
[21:05:09] Request action from node Staggered
[21:05:09] Condition is False
[21:05:09] Request action from node Position
[21:05:09] Condition is True
[21:05:09] Request action from node Condition
[21:05:09] Condition is True
[21:05:09] Request action from AI action ConditionAction
[21:05:09] Test: Consider Vaelis for Head Shot II
[21:05:09] Test: Consider Vaelis for Head Shot II with 10.0 predicted damage
[21:05:09] Test: Adjustet value for wounded target: 20.0
[21:05:09] Test: Adjustet value for aggro: 35.0
[21:05:09] Test: Consider Krimm for Head Shot II
[21:05:09] Test: Consider Krimm for Head Shot II with 10.0 predicted damage
[21:05:09] Test: Adjustet value for wounded target: 10.0
[21:05:09] Test: Adjustet value for aggro: 25.0
[21:05:09] Test: Consider Shea for Head Shot II
[21:05:09] Test: Consider Shea for Head Shot II with 10.0 predicted damage
[21:05:09] Test: Adjustet value for wounded target: 20.0
[21:05:09] Test: Adjustet value for aggro: 35.0
[21:05:09] Test: Consider Althea for Head Shot II
[21:05:09] Test: Consider Althea for Head Shot II with 11.0 predicted damage
[21:05:09] Test: Adjustet value for wounded target: 11.0
[21:05:09] Test: Adjustet value for aggro: 11.0
[21:05:09] Test: Consider Riley for Head Shot II
[21:05:09] Test: Consider Riley for Head Shot II with 12.0 predicted damage
[21:05:09] Test: Adjustet value for wounded target: 12.0
[21:05:09] Test: Adjustet value for aggro: 12.0
[21:05:09] Test: Choosen target Vaelis with expected value of 35.0
[21:05:09] Return action for slot ConditionSkill with Head Shot II as slotted skill.
[21:05:10] Start AI action request for Galanna Shadow Hunter B
[21:05:10] Request action from node Root
[21:05:10] Condition is True
[21:05:10] Request action from node Staggered
[21:05:10] Condition is False
[21:05:10] Request action from node Position
[21:05:10] Condition is True
[21:05:10] Request action from node Condition
[21:05:10] Condition is True
[21:05:10] Request action from AI action ConditionAction
[21:05:10] Test: Consider Vaelis for Head Shot II
[21:05:10] Test: Consider Vaelis for Head Shot II with 10.0 predicted damage
[21:05:10] Test: Adjustet value for wounded target: 30.0
[21:05:10] Test: Adjustet value for aggro: 45.0
[21:05:10] Test: Consider Krimm for Head Shot II
[21:05:10] Test: Consider Krimm for Head Shot II with 10.0 predicted damage
[21:05:10] Test: Adjustet value for wounded target: 10.0
[21:05:10] Test: Adjustet value for aggro: 25.0
[21:05:10] Test: Consider Shea for Head Shot II
[21:05:10] Test: Consider Shea for Head Shot II with 10.0 predicted damage
[21:05:10] Test: Adjustet value for wounded target: 20.0
[21:05:10] Test: Adjustet value for aggro: 35.0
[21:05:10] Test: Consider Althea for Head Shot II
[21:05:10] Test: Consider Althea for Head Shot II with 11.0 predicted damage
[21:05:10] Test: Adjustet value for wounded target: 11.0
[21:05:10] Test: Adjustet value for aggro: 11.0
[21:05:10] Test: Consider Riley for Head Shot II
[21:05:10] Test: Consider Riley for Head Shot II with 12.0 predicted damage
[21:05:10] Test: Adjustet value for wounded target: 12.0
[21:05:10] Test: Adjustet value for aggro: 12.0
[21:05:10] Test: Choosen target Vaelis with expected value of 45.0
[21:05:10] Return action for slot ConditionSkill with Head Shot II as slotted skill.
[21:05:25]
[21:05:25] ################# AI REQUEST for Galanna Battlemage A ################
[21:05:25]
[21:05:25] Considering Eagle's Grace
[21:05:25] 0 Friend(s) have less than 80 % HP, 1 needed (Reverse: False)
[21:05:25] Considering BrambleCoat
[21:05:25] User Galanna Battlemage A is affected by BrambleCoat (False) (Reverse: True)
[21:05:25] Random: 49 <= 75
[21:05:25] Targets: ['Galanna Battlemage A']
[21:05:25] Decorator Self
[21:05:25] Targets: ['Galanna Battlemage A']
[21:05:25] Target is Galanna Battlemage A
[21:05:25]
[21:05:25] ############### Executing BrambleCoat ##############
[21:05:25]
[21:05:26]
[21:05:26] ################# AI REQUEST for Galanna Battlemage B ################
[21:05:26]
[21:05:26] Considering Eagle's Grace
[21:05:26] 0 Friend(s) have less than 80 % HP, 1 needed (Reverse: False)
[21:05:26] Considering BrambleCoat
[21:05:26] User Galanna Battlemage B is affected by BrambleCoat (False) (Reverse: True)
[21:05:26] Random: 57 <= 75
[21:05:26] Targets: ['Galanna Battlemage B']
[21:05:26] Decorator Self
[21:05:26] Targets: ['Galanna Battlemage B']
[21:05:26] Target is Galanna Battlemage B
[21:05:26]
[21:05:26] ############### Executing BrambleCoat ##############
[21:05:26]
[21:05:35]
[21:05:35] ################# AI REQUEST for Galanna Battlemage C ################
[21:05:35]
[21:05:35] Considering Eagle's Grace
[21:05:35] 1 Friend(s) have less than 80 % HP, 1 needed (Reverse: False)
[21:05:35] Random: 36 <= 50
[21:05:35] Counter 2 is True (Reverse: False)
[21:05:35] Targets: ['Galanna Battlemage A', 'Galanna Battlemage B', 'Galanna Battlemage C', 'Galanna Shadow Hunter A', 'Galanna Shadow Hunter B']
[21:05:35] Decorator Has not speedofeagle
[21:05:35] Targets: ['Galanna Battlemage A', 'Galanna Battlemage B', 'Galanna Battlemage C', 'Galanna Shadow Hunter A', 'Galanna Shadow Hunter B']
[21:05:35] Target is Galanna Shadow Hunter A
[21:05:35]
[21:05:35] ############### Executing Eagle's Grace ##############
[21:05:35]
[21:06:06]
[21:06:06] ################# AI REQUEST for Galanna Battlemage A ################
[21:06:06]
[21:06:06] Considering Eagle's Grace
[21:06:06] 1 Friend(s) have less than 80 % HP, 1 needed (Reverse: False)
[21:06:06] Random: 100 <= 50
[21:06:06] Considering BrambleCoat
[21:06:06] User Galanna Battlemage A is affected by BrambleCoat (True) (Reverse: True)
[21:06:06] Considering Ice Spike
[21:06:06] Random: 96 <= 40
[21:06:06] Considering Hail
[21:06:06] Random: 91 <= 55
[21:06:06] Considering Perfect Balance
[21:06:06] User Galanna Battlemage A is affected by Perfect Balance (False) (Reverse: True)
[21:06:06] User Galanna Battlemage A Mana is at 70.39 % >= 5.00 % (True) (Reverse: False)
[21:06:06] Random: 69 <= 30
[21:06:06] Considering Clear Mind Potion
[21:06:06] User Galanna Battlemage A is affected by Clear Mind Effect (False) (Reverse: True)
[21:06:06] User Galanna Battlemage A Mana is at 70.39 % >= 30.00 % (True) (Reverse: False)
[21:06:06] Random: 43 <= 30
[21:06:06] Considering Life
[21:06:06] Random: 20 <= 40
[21:06:06] Targets: ['Galanna Battlemage A', 'Galanna Battlemage B', 'Galanna Battlemage C', 'Galanna Shadow Hunter A', 'Galanna Shadow Hunter B']
[21:06:06] Decorator HP higher 1
[21:06:06] Targets: ['Galanna Battlemage A', 'Galanna Battlemage B', 'Galanna Battlemage C', 'Galanna Shadow Hunter A', 'Galanna Shadow Hunter B']
[21:06:06] Decorator Minimum Health
[21:06:06] Targets: ['Galanna Shadow Hunter B']
[21:06:06] Target is Galanna Shadow Hunter B
[21:06:06]
[21:06:06] ############### Executing Life ##############
[21:06:06]
[21:06:08]
[21:06:08] ################# AI REQUEST for Galanna Battlemage B ################
[21:06:08]
[21:06:08] Considering Eagle's Grace
[21:06:08] 0 Friend(s) have less than 80 % HP, 1 needed (Reverse: False)
[21:06:08] Considering BrambleCoat
[21:06:08] User Galanna Battlemage B is affected by BrambleCoat (True) (Reverse: True)
[21:06:08] Considering Ice Spike
[21:06:08] Random: 86 <= 40
[21:06:08] Considering Hail
[21:06:08] Random: 78 <= 55
[21:06:08] Considering Perfect Balance
[21:06:08] User Galanna Battlemage B is affected by Perfect Balance (False) (Reverse: True)
[21:06:08] User Galanna Battlemage B Mana is at 72.58 % >= 5.00 % (True) (Reverse: False)
[21:06:08] Random: 48 <= 30
[21:06:08] Considering Clear Mind Potion
[21:06:08] User Galanna Battlemage B is affected by Clear Mind Effect (False) (Reverse: True)
[21:06:08] User Galanna Battlemage B Mana is at 72.58 % >= 30.00 % (True) (Reverse: False)
[21:06:08] Random: 84 <= 30
[21:06:08] Considering Life
[21:06:08] Random: 31 <= 40
[21:06:08] Targets: ['Galanna Battlemage A', 'Galanna Battlemage B', 'Galanna Battlemage C', 'Galanna Shadow Hunter A', 'Galanna Shadow Hunter B']
[21:06:08] Decorator HP higher 1
[21:06:08] Targets: ['Galanna Battlemage A', 'Galanna Battlemage B', 'Galanna Battlemage C', 'Galanna Shadow Hunter A', 'Galanna Shadow Hunter B']
[21:06:08] Decorator Minimum Health
[21:06:08] Targets: ['Galanna Shadow Hunter B']
[21:06:08] Target is Galanna Shadow Hunter B
[21:06:08]
[21:06:08] ############### Executing Life ##############
User avatar
jack1974
Pack leader
Posts: 15095
Joined: Thu Jun 16, 2005 4:43 pm

Re: AI Does the Darndest Things

Post by jack1974 »

Haha my bad, I put a wrong format on the AI command :lol: the second number is wrong, since obviously any alive character will have >1 HP so it messes up completely the AI. Will fix on next update!
Post Reply