Dominions 5

Dominions 5

Hows do single target spells work in this game?
One thing I wish they could add to the game is a general taget selection system for spells in a way similar to the attack command.(attack enemy rear, commander, etc) I've always wanted to cast strong single-target spells on enemy commanders but has been hesitated to do so because there is no way I could know which creature would be targeted. So does anyone know how the logic function for spells work?
Last edited by OneNightInBeijing; Dec 23, 2017 @ 2:29pm
< >
Showing 1-10 of 10 comments
kristoffer  [developer] Dec 23, 2017 @ 2:37pm 
The spell AI rates all targets and choses the spell that gives the highest score.
HP, special abilities, leadership, magic etc all increases the score. AoE gives a score for the total effect (score for all targets). MR and other stuff that reduces damage or chance of a score is taken into acount. Low MR with huge HP generates a far higher score than commander with high MR and few HP.
HP is somewhat important and, to a degree, represents how intimidating or easily spotted a monster/commander appears.
I think that is the basics of how it works (JK knows better).
Fortuna Dec 23, 2017 @ 3:48pm 
Originally posted by kristoffer:
The spell AI rates all targets and choses the spell that gives the highest score.
HP, special abilities, leadership, magic etc all increases the score. AoE gives a score for the total effect (score for all targets). MR and other stuff that reduces damage or chance of a score is taken into acount. Low MR with huge HP generates a far higher score than commander with high MR and few HP.
HP is somewhat important and, to a degree, represents how intimidating or easily spotted a monster/commander appears.
I think that is the basics of how it works (JK knows better).

Interesting, but what about proximity? Spamming soul slay won't just target the biggest, baddest enemies on the entire field.
Althaea Dec 25, 2017 @ 9:25am 
(Disclaimer: My understanding of the fine details date from Dominions 4. I don't think anything has changed too substantially in regards to this kind of stuff in Dominions 5, but keep that in mind.)

Originally posted by Fortuna:
Interesting, but what about proximity? Spamming soul slay won't just target the biggest, baddest enemies on the entire field.

It usually will. That's one of the nifty things about Soul Slay, and part of the reason that elephants are generally considered an early-game unit.

Proximity does matter for a lot of spell. Soul Slay, however, is precision 100, so it doesn't matter where on the battlefield the target is, because Soul Slay will always hit. I don't think the AI takes personal threat levels into account, though mages of certain paths will generally default to attacking nearby enemies anyway because there are some very nasty but very short-ranged spells available with which the mage can deal a lot of damage (e.g. Shockwave).

With spells like fireball proximity plays a role because of its impact on precision. The closer an enemy is, the more likely the mage is to hit them, and thus the average damage caused by the decision of casting fireball at that enemy will go up.

Anyway, this is a large part of why elephants are usually considered early-game units. They are big and nasty, but they're also expensive and vulnerable to a very wide variety of spells. Most paths have at least a couple of "save-or-die" spells, to use D&D terminology, and the elephant is vulnerable to pretty much all of them.

Soul Slay will not always target the biggest and baddest enemies, mind you. I think there's a certain random factor. But more importantly, if the target has a huge amount of magic resistance (say, if it has 60 HP and MR 20+) then the mage would probably target another enemy because the Soul Slay is very unlikely to have any effect.

Point of note: Blood Magic has a reputation as a big-unit killer, and this is partially because e.g. "Life for a Life" does 40 points of armor-negating, unblockable, 100 precision damage. This will almost always be cast at the highest HP target in range of the caster. To draw from an actual example, I once used three or four Priests (equipped with booster items) as Mictlan to snipe Tartarians to death. There were hundreds of units on the battlefield, but the Tartarians were the biggest and nastiest monsters around, and they were the first to be targeted, as I knew they would be.
Fortuna Dec 29, 2017 @ 6:13am 
Elephants being vulnerable to Soul Slay does not really address the proximity question, sorry.
Sombre Dec 29, 2017 @ 6:25am 
Proximity (as in proximity to the caster) isn't a factor at all as far as I know. Well, it is indirectly because it determines range and rules some spells out.
Fortuna Dec 29, 2017 @ 6:52am 
Originally posted by Sharkspeare aka Sombre:
Proximity (as in proximity to the caster) isn't a factor at all as far as I know. Well, it is indirectly because it determines range and rules some spells out.

So you are saying that a mage is as likely to use Soul Slay on a Heavy Cavalry in the enemy's rear as it is on a Heavy Cavalry 1-2 spaces away?
Catowl Dec 29, 2017 @ 7:09am 
Originally posted by Fortuna:
Originally posted by Sharkspeare aka Sombre:
Proximity (as in proximity to the caster) isn't a factor at all as far as I know. Well, it is indirectly because it determines range and rules some spells out.

So you are saying that a mage is as likely to use Soul Slay on a Heavy Cavalry in the enemy's rear as it is on a Heavy Cavalry 1-2 spaces away?
Yes. Because the spell always hits, and if those 2 Cavs have identical stats, then the caster considers them both an equal threat. So it's a 50/50 as far as I know
Sombre Dec 29, 2017 @ 7:21am 
It's possible it cares if soul slay is reckoned by the AI to just be 99.999999999% accurate, rather than 100%, because the closer one would be technically easier to hit.

But I think in that case it is indeed 50/50.
wilson.max Dec 29, 2017 @ 11:10am 
Originally posted by Sharkspeare aka Sombre:
Proximity (as in proximity to the caster) isn't a factor at all as far as I know. Well, it is indirectly because it determines range and rules some spells out.

I have seen Word of Power (Astral Smite) spells frequently target the closest enemies (happens a lot during expansion if there are "leakers" who get past your main army). And Word of Power obviously is Precision 100 and Range 100, so neither misses or being out of range is a factor.

It could be coincidence, but I'm inclined to think that proximity influences targeting somewhat, in the absence of other factors.
Fortuna Dec 31, 2017 @ 4:30pm 
Originally posted by Sharkspeare aka Sombre:
It's possible it cares if soul slay is reckoned by the AI to just be 99.999999999% accurate, rather than 100%, because the closer one would be technically easier to hit.

But I think in that case it is indeed 50/50.

This felt quite wrong to me, so I finally found some time to test. I used MA Pythium to spam Soul Slay on various Machaka formations. My conclusion is that proximity is a dominant factor in spell targeting. Units that were 5 squares more distant than an identical unit were never targetted by Soul Slay. A single unit slightly closer (~2 squares) than 20+ identical units was targetted more than 50% of the time (the result being that it died very quickly). I also saw this effect when the enemy routed; closer enemies were always targetted and slain first.

Overall, this matches my previous experiences with Soul Slay in Dominions 4.

Also, given the size of battlefields, 110 Precision should never deviate from a target -- at least according to the formula in the manual.
Last edited by Fortuna; Dec 31, 2017 @ 4:32pm
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Dec 23, 2017 @ 2:23pm
Posts: 10