4
Fork 0

Store AllowIdleChatter value in a global variable

remove-levelsystem
Eddoursul 4 months ago
parent 67be53b68e
commit 7752f06175
  1. BIN
      AllowChatter to global variable.esp
  2. BIN
      scripts/_00E_AffinityControl.pex
  3. BIN
      scripts/_00E_SympathyControl.pex
  4. BIN
      scripts/_00e_complex_blockidlechattersc.pex
  5. BIN
      scripts/_00e_cqc01_functions.pex
  6. BIN
      scripts/_00e_cqc03_functions.pex
  7. BIN
      scripts/_00e_cqc04_addsilencesc.pex
  8. BIN
      scripts/_00e_cqc04_functions.pex
  9. BIN
      scripts/_00e_fs_environmentscene02trigger.pex
  10. BIN
      scripts/_00e_fs_mq18c_functions.pex
  11. BIN
      scripts/_00e_fs_nq02_functions.pex
  12. BIN
      scripts/_00e_fs_nq02_functions2.pex
  13. BIN
      scripts/_00e_fs_nqr02_functions.pex
  14. BIN
      scripts/_00e_fs_nqr03_functions.pex
  15. BIN
      scripts/_00e_fs_nqr04_functions.pex
  16. BIN
      scripts/_00e_fs_nqr05_functions.pex
  17. BIN
      scripts/_00e_mq03_functions.pex
  18. BIN
      scripts/_00e_mq06_functions.pex
  19. BIN
      scripts/_00e_mq07a_functions.pex
  20. BIN
      scripts/_00e_mq07b_questfunctions.pex
  21. BIN
      scripts/_00e_mq07b_sc02_failsavesc.pex
  22. BIN
      scripts/_00e_mq10b_questfunctions.pex
  23. BIN
      scripts/_00e_mq11a_functions.pex
  24. BIN
      scripts/_00e_mq11b_questfunctions.pex
  25. BIN
      scripts/_00e_mq12b_functions.pex
  26. BIN
      scripts/_00e_mq13c_functions.pex
  27. BIN
      scripts/_00e_mq18b_functions.pex
  28. BIN
      scripts/_00e_nq_g_04_functions.pex
  29. BIN
      scripts/_00e_nq_g_05_functions.pex
  30. BIN
      scripts/_00e_nq_g_07_functions.pex
  31. BIN
      scripts/_00e_nqr01_functions.pex
  32. BIN
      scripts/sf__00e_ark_nq01_theisleofko_00075802.pex
  33. BIN
      scripts/sf_banditdialogue_nehrimesea_0013fb23.pex
  34. BIN
      scripts/sf_cqc02_sc01_caliatowerscen_0013e8bb.pex
  35. BIN
      scripts/sf_cqc06_sc01_caliagototaver_0014175b.pex
  36. BIN
      scripts/sf_cqc06_sc02_room_001417b9.pex
  37. BIN
      scripts/sf_cqj04_sc01_jesparinredlan_0013cf2e.pex
  38. BIN
      scripts/sf_cqj06_sc01_jespartavernsc_00141803.pex
  39. BIN
      scripts/sf_fs_environmentscene02_sce_0202e311.pex
  40. BIN
      scripts/sf_mq03_sc3_playermeetskonst_000cc957.pex
  41. BIN
      scripts/sf_mq05prologue_sc1_000ce2da.pex
  42. BIN
      scripts/sf_mq06_sc1_playerencounters_000d24b7.pex
  43. BIN
      scripts/sf_mq06_sc4_tealorscene_000fe1fc.pex
  44. BIN
      scripts/sf_mq07a_sc12_jesparfinaldia_0010a751.pex
  45. BIN
      scripts/sf_mq07a_sc14_sigilstoneacti_0010a76f.pex
  46. BIN
      scripts/sf_mq07a_sc1_explanationinch_001065b8.pex
  47. BIN
      scripts/sf_mq07b_s7_abgabe_00102dec.pex
  48. BIN
      scripts/sf_mq08prologue_sc1_discussi_0010d1a1.pex
  49. BIN
      scripts/sf_mq10b_sc2_temple_001080c3.pex
  50. BIN
      scripts/sf_mq10b_sc3_lisharidead_0010bbbb.pex
  51. BIN
      scripts/sf_mq10b_sc4_tealor_0010bbba.pex
  52. BIN
      scripts/sf_mq11a_sc26_lastconversati_000eaeb3.pex
  53. BIN
      scripts/sf_mq11a_sc2_caliafrostcliff_000dd756.pex
  54. BIN
      scripts/sf_mq12a_sc1_insert1ststone_0011b08a.pex
  55. BIN
      scripts/sf_mq12a_sc2_insert2ndstone_0011b08b.pex
  56. BIN
      scripts/sf_mq12a_sc3_insert3rdstone_0011b08c.pex
  57. BIN
      scripts/sf_mq12b_sc14_templescene02_00133d31.pex
  58. BIN
      scripts/sf_mq12b_sc15_templescene03_00133d5d.pex
  59. BIN
      scripts/sf_mq12b_sc1_lexilexplains_0011b0a2.pex
  60. BIN
      scripts/sf_mq12b_sc2_attack_0011b0ab.pex
  61. BIN
      scripts/sf_mq13a_sc01_lexyuslan_00136d17.pex
  62. BIN
      scripts/sf_mq14_sc01_funeral_00141c5a.pex
  63. BIN
      scripts/sf_mq14_sc06_interrogation_001433e1.pex
  64. BIN
      scripts/sf_mq14_sc07_planning_0014342f.pex
  65. BIN
      scripts/sf_mq14_sc08_lastspeech_0014344c.pex
  66. BIN
      scripts/sf_nq_g_04_sc01_maelwrite_00139da8.pex
  67. BIN
      scripts/sf_nq_g_05_sc03_dijaamtalk_0013c3f8.pex
  68. BIN
      scripts/sf_nq_g_07dijaam_sc05_theate_0013fa43.pex
  69. BIN
      scripts/sf_nq_g_07mael_sc01_maelmiss_0013f6f3.pex
  70. BIN
      scripts/sf_z_conversations_tealorand_001489a4.pex
  71. BIN
      scripts/tif__000ce0e4.pex
  72. BIN
      scripts/tif__0010a65e.pex
  73. BIN
      scripts/tif__0010a65f.pex
  74. BIN
      scripts/tif__0010a82c.pex
  75. BIN
      scripts/tif__0010a82e.pex
  76. BIN
      scripts/tif__0010a850.pex
  77. BIN
      scripts/tif__0010a851.pex
  78. BIN
      scripts/tif__0010a85c.pex
  79. BIN
      scripts/tif__0013c255.pex
  80. BIN
      scripts/tif__0013e904.pex
  81. BIN
      scripts/tif__0013e905.pex
  82. BIN
      scripts/tif__0013e9ae.pex
  83. BIN
      scripts/tif__0013f5a5.pex
  84. BIN
      scripts/tif__00146f8e.pex
  85. 2
      source/scripts/_00E_AffinityControl.psc
  86. 6
      source/scripts/_00e_complex_blockidlechattersc.psc
  87. 6
      source/scripts/_00e_cqc01_functions.psc
  88. 4
      source/scripts/_00e_cqc03_functions.psc
  89. 6
      source/scripts/_00e_cqc04_addsilencesc.psc
  90. 4
      source/scripts/_00e_cqc04_functions.psc
  91. 4
      source/scripts/_00e_fs_environmentscene02trigger.psc
  92. 6
      source/scripts/_00e_fs_mq18c_functions.psc
  93. 8
      source/scripts/_00e_fs_nq02_functions.psc
  94. 4
      source/scripts/_00e_fs_nq02_functions2.psc
  95. 4
      source/scripts/_00e_fs_nqr02_functions.psc
  96. 4
      source/scripts/_00e_fs_nqr03_functions.psc
  97. 6
      source/scripts/_00e_fs_nqr04_functions.psc
  98. 6
      source/scripts/_00e_fs_nqr05_functions.psc
  99. 6
      source/scripts/_00e_mq03_functions.psc
  100. 8
      source/scripts/_00e_mq06_functions.psc
  101. Some files were not shown because too many files have changed in this diff Show More

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.

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.

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.

@ -1,4 +1,4 @@
Scriptname _00E_AffinityControl extends ReferenceAlias Hidden
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

@ -4,7 +4,7 @@ Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
if (__Config_QuestToSet.GetStage() >= 5) && (__Config_QuestToSet.GetStage() < __Config_iMaxStage)
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
EndIf
EndIf
@ -14,7 +14,7 @@ Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
EndIf
@ -27,4 +27,4 @@ int Property __Config_iMaxStage Auto
Quest Property __Config_QuestToSet Auto
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto

@ -7,7 +7,7 @@ Scriptname _00E_CQC01_Functions extends Quest
Function StartSC01()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
CQC01_SC01_CaliaCuratorium.ForceStart()
EndFunction
@ -20,7 +20,7 @@ EndFunction
Function FinishQuest()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
SetObjectiveCompleted(5)
@ -42,7 +42,7 @@ EndFunction
GlobalVariable Property _00E_DisableQuestTutorials Auto
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
int Property __Config_iRewardEXP = 250 Auto

@ -23,7 +23,7 @@ EndFunction
Function FinishQuest()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_EPHandler.GiveEP(300)
EndFunction
@ -39,4 +39,4 @@ ObjectReference Property CQC03_CaliaPortMarker Auto
Scene Property CQC03_SC01_Calia Auto
Scene Property CQC02_SC01_CaliaTowerScene01 Auto
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto

@ -3,7 +3,7 @@ Scriptname _00E_CQC04_AddSilenceSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
If (CQC04.GetStage() < 15) && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
_00E_SilenceTransitionHighPriority.Add()
EndIf
@ -12,7 +12,7 @@ EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
If !CQC04.IsCompleted() && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_SilenceTransitionHighPriority.Remove()
EndIf
@ -24,4 +24,4 @@ Quest Property CQC04 Auto
MusicType Property _00E_SilenceTransitionHighPriority Auto
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto

@ -48,7 +48,7 @@ EndFunction
Function CompleteCQC04()
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
_00E_MC_CaliaREF.AddItem(_01E_20Huetergrossschwert)
@ -66,7 +66,7 @@ EndFunction
int Property __Config_iRewardEXP = 250 Auto
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Actor Property _00E_MC_CaliaREF Auto

@ -3,7 +3,7 @@ Scriptname _00E_FS_EnvironmentScene02Trigger extends ObjectReference
Event OnTriggerEnter (ObjectReference akActionREF)
If akActionRef == PlayerREF && FS_EnvironmentScene02.GetStage() == 0
Int CQJ04Stage = CQJ04.GetStage()
If (CQJ04Stage < 10 || CQJ04Stage >= 35) && (CQJ04_SC01_JesparInRedLantern.IsPlaying() == False) && Levelsystem.bAllowIdleChatter && (bDone == False)
If (CQJ04Stage < 10 || CQJ04Stage >= 35) && (CQJ04_SC01_JesparInRedLantern.IsPlaying() == False) && AllowIdleChatter.GetValue() > 0 && (bDone == False)
bDone = True
FS_EnvironmentScene02.SetStage(5)
Self.Disable()
@ -19,4 +19,4 @@ Actor Property PlayerREF Auto
Quest Property FS_EnvironmentScene02 Auto
Quest Property CQJ04 Auto
Scene Property CQJ04_SC01_JesparInRedLantern Auto
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto

@ -6,7 +6,7 @@ Scriptname _00E_FS_MQ18c_Functions extends Quest
Function SetUpDreamScene()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
Game.ForceFirstPerson()
Game.ShowFirstPersonGeometry(False)
_00E_SilenceAbruptHighPriority.Add()
@ -131,7 +131,7 @@ Function SetUpQyraScene()
Game.SetPlayerAIDriven(True)
Game.DisablePlayerControls()
Weather.ReleaseOverride()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
Companion.GetReference().Enable()
Companion.GetReference().MoveTo(FS_MQ18c_CompanionSitMarkerREF)
Timescale.SetValue(0.01)
@ -203,7 +203,7 @@ EndFunction
int iWindSound
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Actor akPlayerCorpse

@ -376,7 +376,7 @@ Function SteintafelFound()
_00E_FadeToBlackControl FadeToBlackControl = GetFadeToBlackControl()
Levelsystem.SetAllowIdleChatter(false)
AllowIdleChatter.SetValue(0)
_00E_FS_NQ02_Travelbox3.Disable()
FadeToBlackControl.FadeToBlack()
_00E_FS_NQ02_EsmeREF.MoveTo(_00E_FS_NQ02_SC10_Marker5)
@ -389,7 +389,7 @@ EndFunction
Function StartSC11()
Levelsystem.SetAllowIdleChatter(true)
AllowIdleChatter.SetValue(1)
FS_NQ02_SC11_Fahlstern.ForceStart()
_00E_FS_NQ02_EsmeREF.MoveTo(_00E_FS_NQ02_SC11_Marker1)
_00E_FS_NQ02_EsmeREF.SetOutfit(_00E_FS_NQ02_EsmeArmorOutfit)
@ -689,7 +689,7 @@ EndFunction
Function DisableFahlsternWall()
Levelsystem.SetAllowIdleChatter(true)
AllowIdleChatter.SetValue(1)
_00E_FS_NQ02_SC15_Wall.Disable()
StartTravelWithEsme()
@ -714,7 +714,7 @@ EndEvent
int GameDay
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Quest Property FS_NQ02 Auto

@ -267,7 +267,7 @@ EndFunction
Function StopSC18()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_SilenceTransitionLowPriority.Remove()
_00E_Music_Character_VeiledWomanLoop.Remove()
_00E_FS_NQ02_SC12_WomanREF.SetAlpha(0.0)
@ -409,7 +409,7 @@ EndEvent
int GameDay
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Quest Property FS_NQ02 Auto

@ -185,7 +185,7 @@ Function FinishUp()
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(FS_NQR02_TharaelREF, False)
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
_00E_PlayerFunctions.GetCombatMusicControl().RemoveCombatSoundtracks()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
FS_NQR03.SetStage(5)
Self.CompleteQuest()
@ -213,7 +213,7 @@ EndFunction
int __Config_iRewardEXP = 500
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Actor Property FS_NQR02_TharaelREF Auto
Actor Property FS_NQR02_QalianREF Auto

@ -278,7 +278,7 @@ Function FinishUp()
SetObjectiveCompleted(51)
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
_00E_PlayerFunctions.GetCombatMusicControl().RemoveCombatSoundtracks()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
FS_NQR03_SC03_SecretDoorREF.SetOpen(False)
FS_NQR03_SC03_SecretDoorREF.BlockActivation(True)
FS_NQR03_TharaelREF.Disable()
@ -321,7 +321,7 @@ ReferenceAlias Property FS_NQR03_SC01_Scion Auto
int Property iRewardEXP = 1000 Auto Hidden
int Property iPagesRewardEXP = 250 Auto Hidden
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Actor Property FS_NQR03_TharaelREF Auto
Actor Property FS_NQR03_BrotherGreedREF Auto

@ -199,7 +199,7 @@ Function StartSC04()
; update objectives after finding the hidden stash, prepare and start tharael's seizure scene
UnflagTharaelAsCompanion()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
FS_NQR04_ParentCandleREF.Enable()
_00E_FS_NQR04_TharaelREF.UnequipItem(_00E_FS_NQR05_TharaelTorch)
_00E_FS_NQR04_TharaelREF.RemoveItem(_00E_FS_NQR05_TharaelTorch)
@ -300,7 +300,7 @@ Function FinishUp()
Player.Clear()
_00E_EPHandler.GiveEP(iRewardEXP)
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
_00E_PlayerFunctions.GetCombatMusicControl().RemoveCombatSoundtracks()
FS_NQR04_SC05_TharaelWalkAway.ForceStart()
@ -323,7 +323,7 @@ bool bSecondSlotFound
int iRewardEXP = 1000
int iSecretSlotsRewardEXP = 300
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Actor akMessengerKid

@ -282,7 +282,7 @@ Function StartSC06()
; transform the player back if currently a werewolf, due to being used as actor in scenes in SC06
_FS_TheriantrophistControlQuest.TransformBackIfTransformed()
FadeToBlackHoldIMOD.ApplyCrossFade()
Levelsystem.SetAllowIdleChatter(false)
AllowIdleChatter.SetValue(0)
Timescale.SetValue(0.1) ; preventing the time from advancing during this lengthy scene
_00E_TimeControl.SkipTimeToHour(18.75)
Wait(2.5)
@ -1825,7 +1825,7 @@ Function FinishUp()
FS_NQR05_SiteCampfireParentREF.Disable()
FS_NQR05_SC04_BrotherSorrowREF.Disable()
Timescale.SetValue(10)
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
akFakeCompanion.getActorbase().SetEssential(true)
_00E_TeleportGlobal.SetValueInt(0)
_00E_EPHandler.GiveEP(iRewardEXP)
@ -1853,7 +1853,7 @@ Actor[] sc20Rhalaim
bool usePlayerHouseUpper = false
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
_00E_Game_Playerhouse_BoardSC Property Playerhouse_Market_BoardREF Auto
_00E_Game_Playerhouse_BoardSC Property Playerhouse_Noble_BoardREF Auto

@ -30,7 +30,7 @@ Function StartKonstantinScene()
_00E_MC_KonstantinREF.MoveToMyEditorLocation()
MQ03_SC2_PlayerMeetsKonstantin.ForceStart()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
EndFunction
@ -136,7 +136,7 @@ Function GiveRewardEXP()
_00E_Tutorial_Companions.Show()
EndIf
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
EndFunction
@ -149,7 +149,7 @@ int Property __Config_RewardEXP Auto
int Property __Config_GoldReward Auto
{How much gold is given to the player by Jespar upon quest completion}
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Scene Property MQ03_SC01_JesparTalksToTempleguard Auto
Scene Property MQ03_SC2_PlayerMeetsKonstantin Auto

@ -38,7 +38,7 @@ Function SetUp()
SkyrimOvercastRain.ForceActive(True)
_00E_TimeControl.SkipTimeToHour(22.5)
_00E_SilenceAbruptHighPriority.Add()
Levelsystem.SetAllowIdleChatter(False)
AllowIdleChatter.SetValue(0)
_00E_Func_SafeMove.SafeMoveTo_NoWait(_00E_MC_JesparREF, MQ06_SC1_JesparStartMarker)
Dunwar.ForceRefIfEmpty(_00E_MQ05_DunwarREF)
@ -350,7 +350,7 @@ Function FadeBackReal()
_00E_Music_Special_Zyklus_Loop.Remove()
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
DeactivateBeds()
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
EndFunction
@ -560,7 +560,7 @@ Function UnfillSpectators()
EndWhile
CompanionIsTalking.SetValueInt(0)
Levelsystem.SetAllowIdleChatter(True)
AllowIdleChatter.SetValue(1)
EndFunction
@ -678,7 +678,7 @@ int Property __Config_RewardEXP Auto
int Property iKeeperMiniStage Auto Conditional Hidden
_00E_QuestFunctions Property Levelsystem Auto
GlobalVariable Property AllowIdleChatter Auto
Int GameDay

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save