Added a few script version checks

This commit is contained in:
Eddoursul 2024-01-29 06:41:24 +01:00
parent be0053d572
commit 8ea3423be5
11 changed files with 28 additions and 8 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -111,9 +111,21 @@ inline void CheckScriptVersions()
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_PlayerSetUpScript", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Phasmalist_NewApparitionAlias", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Theriantrophist_PlayerAsWerewolf", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Theriantrophist_AlchemyControl", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_PlayerhousingMaster", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_ContainerController", 1)
};
}
inline void LoadINI(std::map<std::string, bool>* settings, const char* iniPath)

View File

@ -1,16 +1,9 @@
Scriptname _00E_AffinityControl extends ReferenceAlias Hidden Conditional
;
; ATTENTION
; this script contains a new affinity system that requires FS. Therefore, many elements in this script are redundant, as
; one version is required for the new system and one is required so that the old system can be used when FS is not
; available. If possible, the properties and functions are labeled with NEW or OLD in comments
;
;
int function _GetScriptVersion() Global
return 1
endFunction
;=====================================================================================
; EVENTS

View File

@ -1,6 +1,10 @@
Scriptname _00E_ContainerController extends ReferenceAlias Hidden
; This script sets up the sleight of hand loot of a chest upon activating it
int function _GetScriptVersion() Global
return 1
endFunction
;=====================================================================================
; EVENTS
;=====================================================================================

View File

@ -100,6 +100,9 @@ Actor Property AliasFailsafeRef = None Auto Hidden
Bool bTeleportHealRate = False
int function _GetScriptVersion() Global
return 1
endFunction
;=====================================================================================
; SUMMON & SETUP

View File

@ -37,6 +37,10 @@ String Property CONTROL_SHEATH = "Ready Weapon" AutoReadOnly
; GLOBAL FUNCTIONS
;=====================================================================================
int function _GetScriptVersion() Global
return 1
endFunction
_00E_PlayerhousingMaster Function GetMaster() Global
Return Game.GetFormFromFile(0x00043270, "Skyrim.esm") as _00E_PlayerhousingMaster
EndFunction

View File

@ -85,6 +85,10 @@ Float Property BoostFactorInfluenceOnArmor = 11 Autoreadonly Hidden
_00E_Theriantrophist_Chymikum[] RegisteredChymikums
bool Sneaking = false
int function _GetScriptVersion() Global
return 1
endFunction
Function Transform(int duration)
bool bWasParalyzed