Project

General

Profile

Bug #2798

AI parameter functions and AddSpell affect the actor instance instead of the actor base record

Added by vivec Ae Seht over 2 years ago. Updated 27 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Scripting
Target version:
Start date:
07/26/2015
% Done:

0%

Reproducibility:
Always
Operating system:
Other
Severity:
Minor

Description

//this probably has not been implemented yet, but i did use the little search bar to see if it was reported and I didn't see it on the list. I am putting it under feature as it's not really a bug, but something that is missing.

In vanilla Morrowind, if you wore a piece of indoril armor (cuirass/helmet specifically) and talked to an ordinator, they would mark you for death and attack you. Any ordinators who see you following this ought to attack you on sight -- similarly to if you had a bounty.

OpenMW vs Vanilla Morrowind of this feature:
http://youtu.be/EITl27NjaL4


Related issues

Related to OpenMW - Bug #2311: Targeted scripts are not properly supported on non-unique RefIDs Confirmed 01/26/2015
Duplicated by OpenMW - Bug #4290: (mod) AddSpell doesn't affect base record of NPCs/creatures Rejected 01/10/2018

History

#1 Updated by scrawl . over 2 years ago

  • Tracker changed from Feature to Bug
  • Reproducibility set to Have not tried
  • Operating system set to MacOS

A side effect of the "setfight" script implementation in OpenMW. In vanilla MW setfight changed the fight value on the base object, i.e. all instances of that object are affected. In OpenMW only the calling instance is changed.

If we change the function to be vanilla-compatible, we should offer a new function post-1.0 that operates on object instances.

#2 Updated by scrawl . over 2 years ago

  • Operating system changed from MacOS to Other

#3 Updated by vivec Ae Seht over 2 years ago

fair enough, and i am unsure why i posted that as MacOS, i'm running Xubuntu 15.04

Thank you again for your hard work, Jannik.

I would offer to assist in the programming, but being a self-taught programmer, my scripting would probably be so sloppy that it'd just muck up the project. I'll try to stay on freenode #openmw

#4 Updated by Alexei Dobrohotov about 1 year ago

  • Category set to Scripting
  • Target version set to openmw-0.42

#5 Updated by Alexei Dobrohotov about 1 year ago

  • Related to Bug #2311: Targeted scripts are not properly supported on non-unique RefIDs added

#6 Updated by Marc Zinnschlag about 1 year ago

  • Target version changed from openmw-0.42 to openmw-0.43

#7 Updated by Alexei Dobrohotov 9 months ago

  • Target version changed from openmw-0.43 to openmw-1.0

#8 Updated by scrawl . 7 months ago

  • Status changed from New to Confirmed

#9 Updated by rot tor 4 months ago

Vanilla does this for all functions that change AI parameters, not just fight:
Set/ModFight, Flee, Alarm, Hello

#10 Updated by Nelsson Huotari about 1 month ago

Human-understandable recap of this bug: Talking to ordinators while wearing armor works as intended (they do attack the player, the same happens in vanilla). However not ALL ordinators fight you until the end of time (as it was in vanilla MW).

Discussion on whether or not this is a bug or a feature his here.
https://forum.openmw.org/viewtopic.php?f=6&t=2149

I'd prefer flagging this report rejected, as I prefer OpenMW to Vanilla.

#11 Updated by Alexei Dobrohotov about 1 month ago

This won't be rejected. Vanilla compatibility is the priority for 1.0, an alternative script function can always be added in the future.

#12 Updated by Nelsson Huotari about 1 month ago

So, solution is to change vanilla commands that rot tor mentioned, to point to base objects instead of instances? If this is done, it's probably not too big thing to keep the current commands working. Should there be completely different commands for different functions or is functionality of e.g. setfight controlled by optional extra arguments?

#13 Updated by Alexei Dobrohotov 27 days ago

  • Duplicated by Bug #4290: (mod) AddSpell doesn't affect base record of NPCs/creatures added

#14 Updated by Alexei Dobrohotov 27 days ago

  • Subject changed from Ordinators not attacking on sight once they mark you for death to AI parameter functions and AddSpell affect the actor instance instead of the actor base record

#15 Updated by Alexei Dobrohotov 27 days ago

  • Reproducibility changed from Have not tried to Always

Also available in: Atom PDF