Undead ai should auto reanimate IMPLEMENTED

Post Reply
User avatar
Savra
Posts: 5629
Joined: Wed Aug 01, 2018 6:21 pm

Undead ai should auto reanimate IMPLEMENTED

Post by Savra » Mon Feb 24, 2020 1:42 am

Being that phantoms will soon be reanimatable, and the fact that undead rely on swarms just as much as they do spells. @Stratego (dev) could you make it so the undeads ai for units who can reanimate be able to auto reanimate if they aren't in combat or anything?

Stratego (dev)
Site Admin
Posts: 14572
Joined: Fri Apr 25, 2014 9:28 pm

Re: Undead ai should auto reanimate

Post by Stratego (dev) » Mon Feb 24, 2020 6:19 am

I am not sure i understand, but please first talk to alexander in the matter - tthanks!

User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: Undead ai should auto reanimate

Post by Alexander82 » Mon Feb 24, 2020 9:30 am

Savra wrote:
Mon Feb 24, 2020 1:42 am
Being that phantoms will soon be reanimatable, and the fact that undead rely on swarms just as much as they do spells. @Stratego (dev) could you make it so the undeads ai for units who can reanimate be able to auto reanimate if they aren't in combat or anything?
I suppose you want the AI to be able to do something that the player can't, isn't it?

As far as I know at the moment it is not possible though.

I understand that "AI cheating" is one of the eay to make it better against players but I don't really know if it is possible right now.

One things we might do for AI is to make it produce things faster (e.g. AI tcs and factories might be set to produce at 1x 1,5x or 2x production per turn based on chosen difficulty).
Age of Fantasy design leader

User avatar
DoomsdayDragonfire
Posts: 939
Joined: Tue Sep 06, 2016 6:20 am
Location: Terra - Brasil

Re: Undead ai should auto reanimate

Post by DoomsdayDragonfire » Mon Feb 24, 2020 8:35 pm

No, it's actually the oposite. A thing that the player can while AI can't...

He mean to make AI better, but not giving unfair advantage to them, but to actually teach them how-to and when-to use their spells correctly, bcz when AI does have casters that own rise the dead or relatives... These units simply don't use their spells... So it ends that caster units controled by AI are just a waste of their production, and don't offer any challenge to the user...

This is a general issue of all factions, but since undead faction relies on that a lot much more than the others, it can't rely on the numbers provided by the "rise the dead" spells since we removed auto-cast of this spell... But ideally, AI should know how to do that by its own...
Stay Awesome!
(ノಠ益ಠ)ノ彡┻━┻

User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: Undead ai should auto reanimate

Post by Alexander82 » Mon Feb 24, 2020 10:18 pm

I hope it becomes possible then...
Age of Fantasy design leader

User avatar
Savra
Posts: 5629
Joined: Wed Aug 01, 2018 6:21 pm

Re: Undead ai should auto reanimate

Post by Savra » Mon Feb 24, 2020 11:47 pm

DoomsdayDragonfire wrote:
Mon Feb 24, 2020 8:35 pm
No, it's actually the oposite. A thing that the player can while AI can't...

He mean to make AI better, but not giving unfair advantage to them, but to actually teach them how-to and when-to use their spells correctly, bcz when AI does have casters that own rise the dead or relatives... These units simply don't use their spells... So it ends that caster units controled by AI are just a waste of their production, and don't offer any challenge to the user...

This is a general issue of all factions, but since undead faction relies on that a lot much more than the others, it can't rely on the numbers provided by the "rise the dead" spells since we removed auto-cast of this spell... But ideally, AI should know how to do that by its own...
Exactly, I'm getting tired of seeing a bunch of lich's doing the conga up toward my base and only being able to magic missile units, the undead literally made produce these and the way I see it the necromancer, lich, and spectral rider are the closest thing undead have to the healers of other races except they can't use their support spells.

The only one that can do far is the necromancer and his auto summon with the flesh golem, and that's it.

Stratego (dev)
Site Admin
Posts: 14572
Joined: Fri Apr 25, 2014 9:28 pm

Re: Undead ai should auto reanimate

Post by Stratego (dev) » Tue Feb 25, 2020 8:36 am

this can be set by priprity
EFFECT_INSTANT_MAGIC_ARROW, 900
EFFECT_ANIMATE_DEAD, 600

meaning it will prefer magic arrow against animate dead.

i think since it got magic arrow spell it never uses animate dead.

User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: Undead ai should auto reanimate

Post by Alexander82 » Tue Feb 25, 2020 5:28 pm

can you give reanimation 9999 priority?
Age of Fantasy design leader

User avatar
makazuwr32
Posts: 7683
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Undead ai should auto reanimate

Post by makazuwr32 » Tue Feb 25, 2020 6:38 pm

The problem than that ai will try to use "animate dead" spell every turn and thus will jist forget about all other spells.
makazuwr32 wrote:
Mon Sep 16, 2019 7:54 am
When you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image

Stratego (dev)
Site Admin
Posts: 14572
Joined: Fri Apr 25, 2014 9:28 pm

Re: Undead ai should auto reanimate

Post by Stratego (dev) » Tue Feb 25, 2020 7:22 pm

no, it will only use whyn there are sekeltons around.

User avatar
makazuwr32
Posts: 7683
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Undead ai should auto reanimate

Post by makazuwr32 » Tue Feb 25, 2020 7:36 pm

Oh. If it is possible than i agree with alex to give reanimation for ai highest possible value.
makazuwr32 wrote:
Mon Sep 16, 2019 7:54 am
When you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image

Stratego (dev)
Site Admin
Posts: 14572
Joined: Fri Apr 25, 2014 9:28 pm

Re: Undead ai should auto reanimate

Post by Stratego (dev) » Tue Feb 25, 2020 7:45 pm

ok i set both to 999 in code - they are yet jsoned.
Const.setPri(EFFECT_ANIMATE_DEAD, 999);
Const.setPri(EFFECT_ANIMATE_DEAD_CLOSE, 999);

User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: Undead ai should auto reanimate

Post by Alexander82 » Wed Feb 26, 2020 1:10 pm

Great!

Now that I know how priority works I think we should give it proper values. I will open some topics to decide priority for AI spells
Age of Fantasy design leader

User avatar
Savra
Posts: 5629
Joined: Wed Aug 01, 2018 6:21 pm

Re: Undead ai should auto reanimate

Post by Savra » Mon May 11, 2020 4:46 am

I take it by the fact that the ai lich and necromancer aren't able to reanimate still, this hasn't been json'd yet?

User avatar
Tankhead
Posts: 1838
Joined: Fri May 18, 2018 6:46 am
Location: United states, Texas

Re: Undead ai should auto reanimate

Post by Tankhead » Thu May 28, 2020 5:39 pm

Wait what???
You can set priority on AI casters?

Then please Fix Dwarven Clerics to use Strengthen Spell.
"The smallest pebble was once the biggest stone, the biggest stone was once bigger"

User avatar
makazuwr32
Posts: 7683
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Undead ai should auto reanimate

Post by makazuwr32 » Thu May 28, 2020 7:11 pm

You know that dwarven basic casters do not have anymore strengthen spell, right, @Tankhead ?
makazuwr32 wrote:
Mon Sep 16, 2019 7:54 am
When you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image

User avatar
Tankhead
Posts: 1838
Joined: Fri May 18, 2018 6:46 am
Location: United states, Texas

Re: Undead ai should auto reanimate

Post by Tankhead » Thu May 28, 2020 9:07 pm

Oh......Rip
"The smallest pebble was once the biggest stone, the biggest stone was once bigger"

User avatar
Savra
Posts: 5629
Joined: Wed Aug 01, 2018 6:21 pm

Re: Undead ai should auto reanimate

Post by Savra » Sat Sep 19, 2020 7:13 pm

Just a thought, if this doesn't work, is there a way you could just have them cycle through spells, eg magic missile as base used spell but every 2 turns unit uses reanimation?

Just thought to bring this up since Undead's strategy revolves around reanimation and the ai currently can't keep up with other races ai's like orcs ai, (who just need to rush you) and elves ai, (who rush you with archers) Undead's ai currently tries rushing you with mummies, occasionally lich's, zombies, and some skeletons here and there.

And when we come down to their phantoms who's upgrades all go into reanimation, this makes the ai's phantoms less effective being they don't have lich's, and necromancer's to back them up.

Stratego (dev)
Site Admin
Posts: 14572
Joined: Fri Apr 25, 2014 9:28 pm

Re: Undead ai should auto reanimate

Post by Stratego (dev) » Sun Sep 20, 2020 9:45 am

i have a fix on this but is very dangerous.

as as side effect i ahve fixed a bug that self buff spells were not working either (eg. warmage was not enchanting its sword ever)

but as as sideffects casters might become too selfish casting only them selves everything if they can target themselves too - please check all ablilities that can also target themselves if there is any too "selfish" things now.

Post Reply

Return to “Archived - FAQ”