Removed _00E_FS_IsForgottenStoriesActivated checks

This commit is contained in:
Eddoursul 2024-01-10 14:29:46 +01:00
parent 84c47e3a43
commit b5c1a5b3ad
25 changed files with 20 additions and 62 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,9 +10,12 @@ EndEvent
Event OnUpdate() Event OnUpdate()
if _00E_FS_IsForgottenStoriesActivated == None
_00E_FS_IsForgottenStoriesActivated = Game.GetForm(0x4320E) as GlobalVariable
endif
; If Enderal - Forgotten Stories.esm is not loaded, kick the player back to main menu ; If Enderal - Forgotten Stories.esm is not loaded, kick the player back to main menu
if _00E_FS_IsForgottenStoriesActivated.GetValue() as Int != 1 if _00E_FS_IsForgottenStoriesActivated.GetValue() as Int != 1
Utility.wait(0.1)
Game.QuitToMainMenu() Game.QuitToMainMenu()
Debug.MessageBox("Enderal - Forgotten Stories.esm is not loaded! The game will not run properly.") Debug.MessageBox("Enderal - Forgotten Stories.esm is not loaded! The game will not run properly.")
EndIf EndIf

View File

@ -143,7 +143,6 @@ Message Property _00E_FastTravel_Ark_SelectionMenu_02 Auto
Message Property _00E_FastTravel_Ark_SelectionMenu_Restricted1 Auto Message Property _00E_FastTravel_Ark_SelectionMenu_Restricted1 Auto
GlobalVariable Property _00E_TeleportGlobal Auto GlobalVariable Property _00E_TeleportGlobal Auto
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
ObjectReference Property _00E_FastTravel_Ark_Marker_CapitalCity_Entrance Auto ObjectReference Property _00E_FastTravel_Ark_Marker_CapitalCity_Entrance Auto
ObjectReference Property _00E_FastTravel_Ark_Marker_CapitalCity_StrangerQuarter Auto ObjectReference Property _00E_FastTravel_Ark_Marker_CapitalCity_StrangerQuarter Auto

View File

@ -12,19 +12,13 @@ float fPlayerLockpicking
bool bDone bool bDone
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Message Property _00E_FS_LockpickingGoldBuffMSG Auto Message Property _00E_FS_LockpickingGoldBuffMSG Auto
MiscObject Property Gold001 Auto MiscObject Property Gold001 Auto
Event OnOpen(ObjectReference akActionRef) Event OnOpen(ObjectReference akActionRef)
If _00E_FS_IsForgottenStoriesActivated == None ; just in case, all properties in all doors and containers should be filled by now if !bDone && (Self.GetBaseObject().GetType() == 28) ; check if it's a container otherwise the script tries to call this stuff on doors
_00E_FS_IsForgottenStoriesActivated = Game.GetForm(0x0004320E) as GlobalVariable
EndIf
if !bDone && (Self.GetBaseObject().GetType() == 28) && _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 ; check if it's a container otherwise the script tries to call this stuff on doors
bDone = True bDone = True
iCurrentGoldCount = Self.GetItemCount(Gold001) iCurrentGoldCount = Self.GetItemCount(Gold001)
@ -59,17 +53,7 @@ EndFunction
;===================================================================================== ;=====================================================================================
Event OnLoad() Event OnLoad()
If _00E_FS_IsForgottenStoriesActivated == None ; just in case, all properties in all doors and containers should be filled by now
_00E_FS_IsForgottenStoriesActivated = Game.GetForm(0x0004320E) as GlobalVariable
Gold001 = Game.GetFormFromFile(0x0000000F, "Skyrim.esm") as MiscObject
_00E_FS_LockpickingGoldBuffMSG = Game.GetFormFromFile(0x0001ED74, "Enderal - Forgotten Stories.esm") as Message
_00E_sDoorLocked = Game.GetForm(0x00141570) as Message
_00E_Game_UnlockNeedsSkill = Game.GetForm(0x00042AE0) as Message
EndIf
BlockActivation(True) BlockActivation(True)
EndEvent EndEvent
Int Property LOCK_LEVEL_NOVICE = 1 AutoReadOnly Int Property LOCK_LEVEL_NOVICE = 1 AutoReadOnly

View File

@ -2,7 +2,7 @@ Scriptname _00E_FS_NQR01_StartBoxSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef) Event OnTriggerEnter(ObjectReference akActionRef)
if !bDone && _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 if !bDone
if FS_NQR01.GetStage() < 1 if FS_NQR01.GetStage() < 1
@ -16,10 +16,4 @@ Event OnTriggerEnter(ObjectReference akActionRef)
EndEvent EndEvent
bool bDone bool bDone
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Actor Property PlayerREF Auto
Quest Property FS_NQR01 Auto Quest Property FS_NQR01 Auto

View File

@ -8,7 +8,7 @@ Scriptname _00E_FS_SleightOfHand_HiddenSlotSC extends ObjectReference
Event OnActivate(ObjectReference akActionRef) Event OnActivate(ObjectReference akActionRef)
If _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 && !Self.IsLocked() && akActionRef == PlayerREF If !Self.IsLocked() && akActionRef == PlayerREF
If !bSetUp If !bSetUp
SetUpHiddenSlot() SetUpHiddenSlot()
@ -254,7 +254,6 @@ Cell ContainerParentCell
Actor Property PlayerREF Auto Actor Property PlayerREF Auto
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
GlobalVariable Property PlayerLevel Auto GlobalVariable Property PlayerLevel Auto
GlobalVariable Property _00E_HiddenSlotAchievementUnlocked Auto GlobalVariable Property _00E_HiddenSlotAchievementUnlocked Auto

View File

@ -33,18 +33,13 @@ EndEvent
Function CheckForGoldIncrementation() Function CheckForGoldIncrementation()
if _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 bDone = True
bDone = True
iCurrentGoldCount = Self.GetItemCount(Gold001)
fPlayerLockpicking = PlayerREF.GetActorValue("Lockpicking")
if fPlayerLockpicking >= 15
IncrementGold()
EndIf
iCurrentGoldCount = Self.GetItemCount(Gold001)
fPlayerLockpicking = PlayerREF.GetActorValue("Lockpicking")
if fPlayerLockpicking >= 15
IncrementGold()
EndIf EndIf
EndFunction EndFunction
@ -69,7 +64,6 @@ int iGoldMultiplicator = 5
float fPlayerLockpicking float fPlayerLockpicking
int iCurrentGoldCount int iCurrentGoldCount
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Actor Property PlayerREF Auto Actor Property PlayerREF Auto
Sound Property ITMGoldUp Auto Sound Property ITMGoldUp Auto

View File

@ -28,9 +28,7 @@ Function SetUp()
; This starts the Forgotten Stories - quest for Yuslan. ; This starts the Forgotten Stories - quest for Yuslan.
if _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 FS_NQ01.SetStage(5)
FS_NQ01.SetStage(5)
EndIf
_00E_MC_YuslanREF.MoveTo(MQ13a_SC01_YuslanMarker) _00E_MC_YuslanREF.MoveTo(MQ13a_SC01_YuslanMarker)
_00E_MC_LexREF.MoveTo(MQ13a_SC01_LexMarkerREF) _00E_MC_LexREF.MoveTo(MQ13a_SC01_LexMarkerREF)
@ -44,12 +42,8 @@ Function AddScrollSetUpSC02()
_00E_SC_KurmaiREF.Enable() _00E_SC_KurmaiREF.Enable()
EndIf EndIf
If _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 if FS_NQ01.GetStage() < 10
FS_NQ01.SetStage(10)
if FS_NQ01.GetStage() < 10
FS_NQ01.SetStage(10)
EndIf
EndIf EndIf
_00E_SC_KurmaiREF.MoveTo(MQ13a_SC03_KurmaiStartMarker) _00E_SC_KurmaiREF.MoveTo(MQ13a_SC03_KurmaiStartMarker)
@ -617,7 +611,6 @@ GlobalVariable Property JesparFlirtCounter Auto
GlobalVariable Property _00E_TeleportGlobal Auto GlobalVariable Property _00E_TeleportGlobal Auto
GlobalVariable Property _00E_MQ13a_JesparDump Auto GlobalVariable Property _00E_MQ13a_JesparDump Auto
GlobalVariable Property _00E_MQ13a_CaliaDump Auto GlobalVariable Property _00E_MQ13a_CaliaDump Auto
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Message Property MQ13a_WaitPrompt Auto Message Property MQ13a_WaitPrompt Auto
Message Property MQ13a_SC07_WaitPrompt02 Auto Message Property MQ13a_SC07_WaitPrompt02 Auto

View File

@ -175,7 +175,7 @@ Function LockUpEverything()
SetObjectiveFailed(5) SetObjectiveFailed(5)
EndIf EndIf
If !FS_NQ01.IsCompleted() && _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 If !FS_NQ01.IsCompleted()
FS_NQ01.SetStage(200) FS_NQ01.SetStage(200)
EndIf EndIf
@ -720,7 +720,6 @@ EffectShader Property _00E_BloodyFXShader Auto
GlobalVariable Property _00E_TeleportGlobal Auto GlobalVariable Property _00E_TeleportGlobal Auto
GlobalVariable Property Timescale Auto GlobalVariable Property Timescale Auto
GlobalVariable Property _00E_MQ14_Readyfor10 Auto GlobalVariable Property _00E_MQ14_Readyfor10 Auto
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Outfit Property _00E_MC_Calia_SimpleClothingBarefeet Auto Outfit Property _00E_MC_Calia_SimpleClothingBarefeet Auto
Outfit Property MinerClothesOutfit01NoBoots Auto Outfit Property MinerClothesOutfit01NoBoots Auto

View File

@ -933,7 +933,7 @@ Function SetUpEpilogue()
if bHasChosenEndingKatharsis if bHasChosenEndingKatharsis
if _00E_FS_DreamflowerConsumed.GetValueInt() == 1 && _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 if _00E_FS_DreamflowerConsumed.GetValueInt() == 1
FS_MQ18c.SetStage(5) FS_MQ18c.SetStage(5)
@ -1065,7 +1065,6 @@ GlobalVariable Property MQ17_JesparFinalCompanion Auto
GlobalVariable Property CompanionIsTalking Auto GlobalVariable Property CompanionIsTalking Auto
GlobalVariable Property MQ17_BlackGuardianIsTalking Auto GlobalVariable Property MQ17_BlackGuardianIsTalking Auto
GlobalVariable Property _00E_FS_DreamflowerConsumed Auto GlobalVariable Property _00E_FS_DreamflowerConsumed Auto
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
GlobalVariable Property _00E_VideoSkip Auto GlobalVariable Property _00E_VideoSkip Auto
ImageSpaceModifier Property _00E_MQ16_VisionIMOD Auto ImageSpaceModifier Property _00E_MQ16_VisionIMOD Auto

View File

@ -110,9 +110,7 @@ Function StartSC2()
Game.EnablePlayerControls() Game.EnablePlayerControls()
MQP02_SC3_Navcut.Disable() MQP02_SC3_Navcut.Disable()
If _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 AddRacialAbilites()
AddRacialAbilites()
EndIf
FreightRoomDoor.GetReference().Lock(False) FreightRoomDoor.GetReference().Lock(False)
Riq.GetActorReference().Enable() Riq.GetActorReference().Enable()
@ -504,8 +502,6 @@ MusicType Property _00E_Music_Special_WiegeDesLebens Auto
Topic Property MQP02_D3_SebaldCombatCommentTopic Auto Topic Property MQP02_D3_SebaldCombatCommentTopic Auto
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Actor Property PlayerREF Auto Actor Property PlayerREF Auto
Idle Property TG05_GetUp Auto Idle Property TG05_GetUp Auto

View File

@ -144,8 +144,6 @@ EndFunction
bool bDone bool bDone
int MyradFligthCounter = 0 int MyradFligthCounter = 0
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
Quest Property MQ04 Auto Quest Property MQ04 Auto
Keyword Property _00E_FS_MyradTakeOffMarker Auto Keyword Property _00E_FS_MyradTakeOffMarker Auto

Binary file not shown.