GetDetected doesn't work without a reference
The mod Regionally Known Werewolves (http://mw.modhistory.com/download-47-9772) uses a global script that seems to use the GetDetected script function to detect if any NPC detects the player when they transform. The relevant snippet:
;------------------------------------------ ; Remove the crime when the player change ;------------------------------------------ if ( player->IsWerewolf == 1 ) if ( PlayerWasAWerewolf != 1 ) if ( GetDetected, player == 1 ) set PlayerWasAWerewolf to GetPCCrimeLevel - 1000 SetPCCrimeLevel PlayerWasAWerewolf endif set PlayerWasAWerewolf to 1 endif else if ( PlayerWasAWerewolf == 1 ) if ( GetDetected, player == 1 ) set PlayerWasAWerewolf to LastBounty - 1000 SetPCCrimeLevel PlayerWasAWerewolf else SetPCCrimeLevel LastBounty endif set PlayerWasAWerewolf to 0 endif set LastBounty to GetPCCrimeLevel endif
This is a global script, so there's no implicit reference. With OpenMW, when the player changes to cause that line to be reached, it causes the error:
Execution of script rkw_knownwerewolfcheck failed: no implicit reference
(RM-3110 from redmine: created on 2015-12-30 by Chris Robinson, , closed on 2017-09-20 by Andrei Kortunov)
Edited by redmine