Skip to content

Sword of the Perithia: Script execution failure

I get this error in the log that might be worth looking into (I don't know if its necessarily a bug or not but worth looking into):

[E] Execution of script piratedisable failed: class does not have creature stats

The script:

Record: SCPT "piratedisable" Flags:0x0000 ()
  SCHD: ID:piratedisable  Num_Shorts:2  Num_Longs:0  Num_Floats:0  Data_Size:134  Local_Var_Size:12
  SCVR: Script_Variables: doOnce,dead
  SCDT: Bytecode: (compiled script code)
  SCTX: Script_Text:
begin piratedisable


short doOnce
short dead

if(onActivate == 1)
	activate
endif

if(onDeath == 1)
	if(dead == 0)
		set deadPirates to deadPirates + 1
		set dead to 1
	endif
endif

if(getjournalindex, "i_paine_duties" < 110)
	disable
else	
	enable
	return
endif

end piratedisable

The mod: https://www.nexusmods.com/morrowind/mods/53538