TR_m4_Arv_UvaynGuard3 keeps following the player

Type: 

Bug

Severity: 

Minor

Game version: 

Morrowind

Concerns: 

TR_Mainland

Related Release File: 

Found in Version: 

Status: 

Fixed for Version: 

Description: 

The NPC TR_m4_Arv_UvaynGuard3, involved in the Arvud quest https://en.uesp.net/wiki/Tamriel_Rebuilt:The_Visitor_Known_as_Vendel_Oth..., is supposed to run after the player, forcegreet them once and then disappear after cell change, but the current script keeps enabling him over and over for some players, which causes the guard to relentlessly stalk the player.

Comments

Fix: Decoupled the disable

Ronik's picture

Fix: Decoupled the disable/enable logic for the NPC from the rest of the script. Refactored the follow/forcegreet block of the script to avoid situations where the logic would repeat after the force greeting. Moved the increment for the greetOnce variable to the dialogue result of the Greeting 0 used by the guard.

Patch File: