Project

General

Profile

Feature #3953

Combat AI: use "WhenUsed" enchantments

Added by Andrei Kortunov 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
AI
Target version:
Start date:
07/11/2017
% Done:

100%

Severity:
Normal

Description

Current implementation of combat AI does not use WhenUsed enchantments (rings, amulets, "devil" items, etc). It uses only CastOnce (scrolls) or WhenStrikes enchantments.
Morrowind AI uses also WhenUsed enchantments with hostile effects.

Note: it seems Morrowind AI can use WhenUsed item with the same ID only once per combat (maybe to prevent spells spamming - enchantments have no animation).
I do not know if we should replicate this case. Maybe just take in account charge level when rate WhenUsed magic items?

If you want to test this behaviour, you can add to NPC an magic item such as "ring of fireball".

History

#1 Updated by Andrei Kortunov 4 months ago

Works fine with https://github.com/OpenMW/openmw/pull/1329 PR. In my testing only equipped items usage was allowed.

#2 Updated by Andrei Kortunov 4 months ago

  • Status changed from New to In Progress
  • Assignee set to Andrei Kortunov
  • % Done changed from 0 to 50

#3 Updated by Will Herrmann 4 months ago

  • Target version set to openmw-0.43

#4 Updated by Alexei Dobrohotov 3 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF