2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_NQ07_Functions extends Quest
|
|
|
|
|
|
|
|
Import _00E_QuestFunctions
|
|
|
|
Import Utility
|
|
|
|
Import Game
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; FUNCTIONS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Function SetupSC01()
|
|
|
|
|
|
|
|
Levelsystem.FadeToBlack()
|
|
|
|
_00E_FS_NQ07_SC01_DisableMarker.Disable()
|
|
|
|
_00E_FS_NQ07_Aushang1.Disable()
|
|
|
|
_00E_FS_NQ07_Aushang2.Disable()
|
|
|
|
wait(1)
|
|
|
|
_00E_FS_NQ07_MaxusREF.MoveTo(_00E_FS_NQ07_MaxusTavernMarker)
|
|
|
|
PlayerREF.MoveTo(_00E_FS_NQ07_PlayerTavernMarker)
|
|
|
|
Levelsystem.FadeToBlackBack()
|
|
|
|
SetStage(30)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartSC01()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_MaxusREF.EvaluatePackage()
|
|
|
|
FS_NQ07_SC01_Tavern.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function AarosAddSpell()
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
_00E_FS_NQ07_AarosREF.SetFactionRank(CarryDrinkTrayFaction, 0)
|
|
|
|
_00E_FS_NQ07_AarosREF.AddSpell(_00E_AbCarryDrinkTray_New)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerBear()
|
|
|
|
|
|
|
|
PlayerREF.AddItem(FoodMead, 1)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function AarosRemoveSpell()
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
_00E_FS_NQ07_AarosREF.RemoveFromFaction(CarryDrinkTrayFaction)
|
|
|
|
_00E_FS_NQ07_AarosREF.RemoveSpell(_00E_AbCarryDrinkTray_New)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerBorsten()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_MaxusREF.RemoveItem(_00E_FS_NQ07_Borstenbeutel, 1, false, PlayerREF)
|
2021-10-05 22:59:59 +00:00
|
|
|
AarosRemoveSpell()
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerGold()
|
|
|
|
|
|
|
|
PlayerREF.AddItem(Gold001, 100)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function PrepareAuroraHome()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_BoneripperREF.Enable()
|
|
|
|
_00E_FS_NQ07_AarosREF.EvaluatePackage()
|
|
|
|
_00E_FS_NQ07_MaxusREF.EvaluatePackage()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function OpenAuroraHome()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_AuroraDoor.Lock(false)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerRezept()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_MaxusREF.RemoveItem(_00E_FS_NQ07_Rezept, 1, false, PlayerREF)
|
|
|
|
_00E_FS_NQ07_SC01_DisableMarker.Enable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerCraftingPlan()
|
|
|
|
|
|
|
|
PlayerREF.AddItem(_00E_FS_NQ07_CraftingPlan_Door, 1)
|
|
|
|
_00E_FS_NQ07_DoorRepairActivatorREF.Enable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function CleanAuroraHome()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_AuroraHomeDoor.Enable()
|
|
|
|
_00E_FS_NQ07_Chair.BlockActivation()
|
|
|
|
_00E_FS_NQ07_BoneripperREF.Disable()
|
|
|
|
; _00E_FS_NQ07_AuroraREF.MoveTo(_00E_FS_NQ07_AuroraSweepMarker)
|
|
|
|
_00E_FS_NQ07_MaxusREF.RemoveItem(_00E_FS_NQ07_AuroraTrank, 1, false, PlayerREF)
|
|
|
|
_00E_FS_NQ07_AuroraREF.EvaluatePackage()
|
|
|
|
FS_NQ07_SC02_Ritual.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function ResetAurora()
|
|
|
|
|
|
|
|
; gets also called from the _00E_PlayerSetUpScript, hence we only want it to happen on stage 135,
|
|
|
|
; so we don't mess anything else up accidentally
|
|
|
|
If GetStage() == 135
|
|
|
|
_00E_FS_NQ07_AuroraREF.Reset(_00E_FS_NQ07_AuroraREF)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GiveAuroraTrank()
|
|
|
|
|
|
|
|
;_00E_FS_NQ07_AuroraREF.AddItem(_00E_FS_NQ07_AuroraTrank, 1)
|
|
|
|
Levelsystem.FadeToBlack()
|
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_AuroraTrank, 1, true, _00E_FS_NQ07_AuroraREF)
|
|
|
|
wait(1)
|
|
|
|
|
|
|
|
if _00E_FS_NQ07_AuroraDoorREF.GetOpenState() == 1
|
|
|
|
_00E_FS_NQ07_AuroraDoorREF.SetOpen(False)
|
|
|
|
endif
|
|
|
|
|
|
|
|
Levelsystem.SkipTimeToHour(22)
|
|
|
|
SkyrimClear.ForceActive(True)
|
|
|
|
|
|
|
|
; break the pipesmoking animation bug by reseting the NPC
|
|
|
|
_00E_FS_NQ07_AuroraREF.Reset(_00E_FS_NQ07_AuroraREF)
|
|
|
|
|
|
|
|
Levelsystem.FadeToBlackBack()
|
|
|
|
wait(1)
|
|
|
|
SetStage(135)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function TeleportAuroraUp()
|
|
|
|
_00E_FS_NQ07_AuroraREF.MoveTo(_00E_FS_NQ07_AuroraTeleportMarkerREF)
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GiveAuroraTrankNight()
|
|
|
|
|
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_AuroraTrank, 1, false, _00E_FS_NQ07_AuroraREF)
|
|
|
|
;_00E_FS_NQ07_AuroraREF.AddItem(_00E_FS_NQ07_AuroraTrank, 1)
|
|
|
|
|
|
|
|
if _00E_FS_NQ07_AuroraDoorREF.GetOpenState() == 1
|
|
|
|
_00E_FS_NQ07_AuroraDoorREF.SetOpen(False)
|
|
|
|
endif
|
|
|
|
|
|
|
|
wait(0.1)
|
|
|
|
SkyrimClear.ForceActive(True)
|
|
|
|
SetStage(135)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EnableRitual()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_Chair.BlockActivation(false)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartRitual()
|
|
|
|
|
|
|
|
Game.DisablePlayerControls()
|
|
|
|
_00E_SilenceLongTransitionHighPriority.Add()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function RitualLights()
|
|
|
|
|
|
|
|
MAGShockExpMassImod.Apply()
|
|
|
|
_00E_FS_NQ07_AuroraDoorREF.PlaceAtMe(TG08BShockwaveExplosion)
|
|
|
|
Game.ShakeCamera()
|
|
|
|
FS_NQ07_SC02_DustREF_01.Activate(FS_NQ07_SC02_DustREF_01)
|
|
|
|
FS_NQ07_SC02_DustREF_02.Activate(FS_NQ07_SC02_DustREF_02)
|
|
|
|
FS_NQ07_SC02_DustREF_03.Activate(FS_NQ07_SC02_DustREF_03)
|
|
|
|
FS_NQ07_SC02_DustREF_04.Activate(FS_NQ07_SC02_DustREF_04)
|
|
|
|
_00E_FS_NQ07_FireOn1.Enable()
|
|
|
|
_00E_FS_NQ07_FireOn2.Enable()
|
|
|
|
_00E_FS_NQ07_FireOn3.Enable()
|
|
|
|
_00E_FS_NQ07_FireOn4.Enable()
|
|
|
|
_00E_FS_NQ07_FireLightREF.Enable()
|
|
|
|
_00E_FS_NQ07_FireOff1.Disable()
|
|
|
|
_00E_FS_NQ07_FireOff2.Disable()
|
|
|
|
_00E_FS_NQ07_FireOff3.Disable()
|
|
|
|
_00E_FS_NQ07_FireOff4.Disable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function RitualLightsOff()
|
|
|
|
|
|
|
|
Debug.SendAnimationEvent(_00E_FS_NQ07_AuroraREF, "IdleForceDefaultState")
|
|
|
|
|
|
|
|
MAGShockExpMassImod.Apply()
|
|
|
|
StopAuroraRitualFX()
|
|
|
|
MAGDestructionFireballExplosionM.Play(PlayerREF)
|
|
|
|
Game.ShakeCamera()
|
|
|
|
_00E_FS_NQ07_FireOn1.Disable()
|
|
|
|
_00E_FS_NQ07_FireOn2.Disable()
|
|
|
|
_00E_FS_NQ07_FireOn3.Disable()
|
|
|
|
_00E_FS_NQ07_FireOn4.Disable()
|
|
|
|
_00E_FS_NQ07_FireLightREF.Disable()
|
|
|
|
_00E_FS_NQ07_FireOff1.Enable()
|
|
|
|
_00E_FS_NQ07_FireOff2.Enable()
|
|
|
|
_00E_FS_NQ07_FireOff3.Enable()
|
|
|
|
_00E_FS_NQ07_FireOff4.Enable()
|
|
|
|
_00E_FS_NQ07_Ritual_MusicType.Remove()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GiveAuroraBorsten()
|
|
|
|
|
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_Borstenbeutel, 1)
|
|
|
|
_00E_FS_NQ07_AuroraREF.AddItem(_00E_FS_NQ07_Borstenbeutel, 1)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartSC03()
|
|
|
|
|
|
|
|
FS_NQ07_SC03_ManfredSummon.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function SummonManfred()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_ManfredREF.Enable()
|
|
|
|
_00E_FS_NQ07_ManfredREF.PlaceAtMe(ExplosionIllusionDark01)
|
|
|
|
Game.EnablePlayerControls()
|
|
|
|
_00E_FS_NQ07_FoodCollision001.Disable()
|
|
|
|
_00E_FS_NQ07_FoodCollision002.Disable()
|
|
|
|
_00E_FS_NQ07_FoodCollision003.Disable()
|
|
|
|
_00E_FS_NQ07_FoodCollision004.Disable()
|
|
|
|
|
|
|
|
If _00E_AchievementsEnabled.GetValueInt() == 1
|
|
|
|
Game.UnlockAchievement("END_MANFRED_01")
|
|
|
|
EndIf
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartSC04()
|
|
|
|
|
|
|
|
FS_NQ07_SC04_ManfredTravel.ForceStart()
|
|
|
|
PlayerREF.RemoveItem(FoodSweetroll, 1)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerLightSpell()
|
|
|
|
|
|
|
|
PlayerREF.AddSpell(_00E_FS_NQ07_LightSpell)
|
|
|
|
wait(2)
|
|
|
|
_00E_FS_NQ07_ManfredREF.Disable()
|
|
|
|
_00E_FS_NQ07_ManfredREF.PlaceAtMe(ExplosionIllusionDark01)
|
|
|
|
_00E_SilenceLongTransitionHighPriority.Remove()
|
|
|
|
Weather.ReleaseOverride()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartSC05()
|
|
|
|
|
|
|
|
int iIndex = _00E_FS_NQ07_LightList.GetSize()
|
|
|
|
|
|
|
|
while iIndex > 0
|
|
|
|
|
|
|
|
iIndex -= 1
|
|
|
|
ObjectReference ref = _00E_FS_NQ07_LightList.GetAt(iIndex) as ObjectReference
|
|
|
|
ref.DisableNoWait()
|
|
|
|
ref.GetLinkedRef().DisableNoWait()
|
|
|
|
|
|
|
|
endwhile
|
|
|
|
|
|
|
|
_00E_TeleportGlobal.SetValue(1)
|
|
|
|
_00E_FS_NQ07_SC05_Collision001.Enable()
|
|
|
|
_00E_FS_NQ07_Pressureplate1.Enable()
|
|
|
|
PlayerREF.RemoveSpell(_00E_FS_NQ07_LightSpell)
|
|
|
|
_00E_FS_NQ07_ManfredREF.MoveTo(_00E_FS_NQ07_SC05_Marker001)
|
|
|
|
_00E_FS_NQ07_ManfredREF.Enable()
|
|
|
|
; _00E_FS_NQ07_Draugr001.Enable()
|
|
|
|
_00E_FS_NQ07_Draugr002.Enable()
|
|
|
|
_00E_FS_NQ07_ManfredREF.PlaceAtMe(ExplosionIllusionDark01)
|
|
|
|
FS_NQ07_SC05_ManfredSeelengrund.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function ManfredFailsave()
|
|
|
|
|
|
|
|
; _00E_FS_NQ07_ManfredREF.MoveTo(_00E_FS_NQ07_SC05_Marker001)
|
|
|
|
; _00E_FS_NQ07_ManfredREF.EvaluatePackage()
|
|
|
|
_00E_FS_NQ07_ManfredREF.Disable()
|
|
|
|
_00E_FS_NQ07_ManfredREF.Enable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function KillFailsave1()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_Draugr001.Kill()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function KillFailsave2()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_Draugr002.Kill()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function KillFailsave3()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_Draugr003.Kill()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function SkeletonSound()
|
|
|
|
|
|
|
|
NPCSkeletonCombatIdle1HMTauntAM.Play(_00E_FS_NQ07_ManfredREF)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function DraugrSound()
|
|
|
|
|
|
|
|
NPCDraugrAware.Play(_00E_FS_NQ07_ManfredREF)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EnablePlayerControls1()
|
|
|
|
|
|
|
|
Game.EnablePlayerControls()
|
|
|
|
_00E_FS_NQ07_Pressureplate1.Disable()
|
|
|
|
_00E_FS_NQ07_Draugr003.Enable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartBossfight()
|
|
|
|
|
|
|
|
Game.DisablePlayerControls()
|
|
|
|
_00E_FS_NQ07_Draugr003.setAv("Aggression", 2)
|
|
|
|
_00E_NPCOorbaya_RoarM.Play(_00E_FS_NQ07_Draugr003)
|
|
|
|
_00E_FS_NQ07_Draugr003.StartCombat(_00E_FS_NQ07_ManfredREF)
|
|
|
|
_00E_FS_NQ07_ManfredREF.SetAV("speedMult", 150.0)
|
|
|
|
wait(1)
|
|
|
|
if _00E_FS_NQ07_ManfredREF.GetPositionY()<6470
|
|
|
|
CuthbertSqueak()
|
|
|
|
_00E_FS_NQ07_ManfredREF.MoveTo(_00E_FS_NQ07_SC05_EndbossMarker)
|
|
|
|
_00E_FS_NQ07_ManfredREF.PlaceAtMe(ExplosionIllusionDark01)
|
|
|
|
endif
|
|
|
|
_00E_FS_NQ07_Draugr003.StartCombat(_00E_FS_NQ07_ManfredREF)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function CuthbertSqueak()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_ManfredGruntM.Play(_00E_FS_NQ07_ManfredREF)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EndBossfight()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_Draugr003.StopCombat()
|
|
|
|
_00E_NPCOorbaya_RoarM.Play(_00E_FS_NQ07_Draugr003)
|
|
|
|
_00E_FS_NQ07_ManfredREF.StopCombat()
|
|
|
|
QSTGreybeardRumble.Play(PlayerREF)
|
|
|
|
FS_NQ07_SC05_DustREF.Activate(FS_NQ07_SC05_DustREF)
|
|
|
|
Game.ShakeCamera(afstrength = 0.2)
|
|
|
|
_00E_NPCOorbaya_RoarM.Play(PlayerREF)
|
|
|
|
_00E_FS_NQ07_ManfredREF.SetAV("speedMult", 100.0)
|
|
|
|
Wait(2)
|
|
|
|
QSTGreybeardRumble.Play(PlayerREF)
|
|
|
|
Game.ShakeCamera(afstrength = 0.5)
|
|
|
|
_00E_FS_NQ07_Draugr003.SetGhost(false)
|
|
|
|
Wait(2.3)
|
|
|
|
QSTTG09NocturnalFloorRumble.Play(PlayerREF)
|
|
|
|
Game.ShakeCamera(afstrength = 0.5)
|
|
|
|
_00E_FS_NQ07_RockStartMarker.Activate(_00E_FS_NQ07_RockStartMarker)
|
|
|
|
Wait(4)
|
|
|
|
if !_00E_FS_NQ07_Draugr003.IsDead()
|
|
|
|
_00E_FS_NQ07_Draugr003.kill()
|
|
|
|
endif
|
|
|
|
SetStage(300)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EnablePlayerControls2()
|
|
|
|
|
|
|
|
Game.EnablePlayerControls()
|
|
|
|
_00E_FS_NQ07_Erdhaufen.Enable()
|
|
|
|
_00E_FS_NQ07_Schaufel.Enable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function DisableManfred()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_ManfredREF.Disable()
|
|
|
|
_00E_FS_NQ07_ManfredREF.PlaceAtMe(ExplosionIllusionDark01)
|
|
|
|
_00E_FS_NQ07_MaxusREF.RemoveItem(_00E_FS_NQ07_Diplom, 1, false, _00E_FS_NQ07_Draugr003)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function PrepareMaxus()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_SC05_Collision001.Disable()
|
|
|
|
_00E_TeleportGlobal.SetValue(0)
|
|
|
|
_00E_FS_NQ07_MaxusREF.MoveTo(_00E_FS_NQ07_MaxusTableMarker)
|
|
|
|
_00E_FS_NQ07_MaxusREF.EvaluatePackage()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GiveMaxusDiplom()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_MaxusREF.AddItem(_00E_FS_NQ07_Diplom, 1)
|
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_Diplom, 1)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FadeAndForcegreet()
|
|
|
|
|
|
|
|
Levelsystem.FadeToBlack()
|
|
|
|
Levelsystem.FadeToBlackBack()
|
|
|
|
;FS_NQ07_SC06_MaxusForcegreet.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerBelohnung()
|
|
|
|
|
|
|
|
PlayerREF.AddItem(Gold001, 450)
|
|
|
|
Levelsystem.GiveEP(1800)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EnableActivatorForDinner()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_TableActivatorREF.Enable()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartDinnerScene()
|
|
|
|
|
|
|
|
_00E_SilenceTransitionLowPriority.Add()
|
|
|
|
Levelsystem.FadeToBlack()
|
|
|
|
wait(1)
|
|
|
|
_00E_FS_NQ07_DinnerEnableMarker.Enable()
|
|
|
|
Game.DisablePlayerControls()
|
|
|
|
PlayerREF.MoveTo(_00E_FS_NQ07_PlayerDinnerMarker)
|
|
|
|
PlayerREF.StartSneaking()
|
|
|
|
;_00E_FS_NQ07_AuroraREF.Reset()
|
|
|
|
_00E_FS_NQ07_AuroraREF.MoveTo(_00E_FS_NQ07_AuroraDinnerMarker)
|
|
|
|
_00E_FS_NQ07_AuroraREF.EvaluatePackage()
|
|
|
|
Debug.SendAnimationEvent(_00E_FS_NQ07_AuroraREF, "IdleForceDefaultState")
|
|
|
|
Levelsystem.SkipTimeToHour(18.5)
|
|
|
|
SkyrimClear.ForceActive(True)
|
|
|
|
FS_NQ07_SC07_DinnerScene.ForceStart()
|
|
|
|
wait(1)
|
|
|
|
Levelsystem.FadeToBlackBack()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function BringMaxusToDinner()
|
|
|
|
|
|
|
|
_00E_FS_NQ07_MaxusREF.MoveTo(_00E_FS_NQ07_MaxusDinnerMarker)
|
|
|
|
_00E_FS_NQ07_MaxusREF.EvaluatePackage()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EndDinnerScene()
|
|
|
|
|
|
|
|
Levelsystem.FadeToBlack()
|
|
|
|
wait(1)
|
|
|
|
Levelsystem.SkipTimeToHour(8)
|
|
|
|
SetObjectiveCompleted(95)
|
|
|
|
_00E_FS_NQ07_DinnerEnableMarker.Disable()
|
|
|
|
Game.EnablePlayerControls()
|
|
|
|
PlayerREF.MoveTo(_00E_FS_NQ07_PlayerTavernMarker)
|
|
|
|
_00E_FS_NQ07_AuroraREF.MoveTo(_00E_FS_NQ07_AuroraRitualMarker)
|
|
|
|
_00E_FS_NQ07_AuroraREF.EvaluatePackage()
|
|
|
|
_00E_FS_NQ07_MaxusREF.MoveTo(_00E_FS_NQ07_AuroraSweepMarker)
|
|
|
|
_00E_FS_NQ07_MaxusREF.EvaluatePackage()
|
|
|
|
_00E_FS_NQ07_AlfonsREF.Enable()
|
|
|
|
_00E_FS_NQ07_EgbertaREF.Enable()
|
|
|
|
_00E_SilenceTransitionLowPriority.Remove()
|
|
|
|
Weather.ReleaseOverride()
|
|
|
|
wait(1)
|
|
|
|
Levelsystem.FadeToBlackBack()
|
|
|
|
Levelsystem.GiveEP(2000)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GivePlayerManfredSpell()
|
|
|
|
|
|
|
|
PlayerREF.Additem(_25E_SpellGeisterferkelRufen, 1)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartAuroraRitualFX()
|
|
|
|
|
|
|
|
_00E_FireBlueFXS.Play(_00E_FS_NQ07_AuroraREF)
|
|
|
|
MAGPowerRacialDarkElfAncestorsWrathFire2DM.Play(_00E_FS_NQ07_AuroraREF)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StopAuroraRitualFX()
|
|
|
|
|
|
|
|
_00E_FireBlueFXS.Stop(_00E_FS_NQ07_AuroraREF)
|
|
|
|
FXFireOut.Play(_00E_FS_NQ07_AuroraREF)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function ShowThoughts()
|
|
|
|
|
|
|
|
; Message.ResetHelpMessage("Empty")
|
|
|
|
; _00E_FS_NQ07_Thoughts.ShowAsHelpMessage("Empty", 5, 1, 1)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function UpdateGlobals()
|
|
|
|
|
|
|
|
FS_NQ07_HoneyWineBought.SetValue(PlayerREF.GetItemCount(_00E_DalSarkerHoneywine))
|
|
|
|
FS_NQ07_ChickenCooked.SetValue(PlayerREF.GetItemCount(FoodChickenCooked))
|
|
|
|
FS_NQ07_SoupBrewed.SetValue(PlayerREF.GetItemCount(FoodCabbagePotatoSoup))
|
|
|
|
wait(0.1)
|
2021-12-19 23:54:45 +00:00
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
UpdateCurrentInstanceGlobal(FS_NQ07_HoneyWineBought)
|
|
|
|
UpdateCurrentInstanceGlobal(FS_NQ07_ChickenCooked)
|
|
|
|
UpdateCurrentInstanceGlobal(FS_NQ07_SoupBrewed)
|
2021-12-19 23:54:45 +00:00
|
|
|
wait(0.5)
|
|
|
|
|
|
|
|
SetObjectiveDisplayed(110)
|
|
|
|
SetObjectiveDisplayed(120)
|
|
|
|
SetObjectiveDisplayed(130)
|
|
|
|
wait(1.5)
|
|
|
|
|
|
|
|
ModObjectiveGlobal(0, FS_NQ07_HoneyWineBought, 110, 2, true, true, false)
|
|
|
|
ModObjectiveGlobal(0, FS_NQ07_ChickenCooked, 120, 2, true, true, false)
|
|
|
|
ModObjectiveGlobal(0, FS_NQ07_SoupBrewed, 130, 2, true, true, false)
|
|
|
|
|
|
|
|
ReferenceAlias PlayerAlias = Self.GetAlias(14) as ReferenceAlias
|
|
|
|
PlayerAlias.ForceRefTo(PlayerREF)
|
|
|
|
PlayerAlias.AddInventoryEventFilter(_00E_DalSarkerHoneywine)
|
|
|
|
PlayerAlias.AddInventoryEventFilter(FoodChickenCooked)
|
|
|
|
PlayerAlias.AddInventoryEventFilter(FoodCabbagePotatoSoup)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function ClearPlayerAlias()
|
|
|
|
|
|
|
|
Player.Clear()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Function UpdateAarosCarryTraySpell() ; Version 2.0.8 Update
|
|
|
|
If _00E_FS_NQ07_AarosREF.HasSpell(_00E_AbCarryDrinkTray_Old)
|
|
|
|
_00E_FS_NQ07_AarosREF.RemoveSpell(_00E_AbCarryDrinkTray_Old)
|
|
|
|
Utility.Wait(1.0)
|
|
|
|
Int iCurStage = GetStage()
|
|
|
|
If iCurStage >= 35 && iCurStage < 50
|
|
|
|
AarosAddSpell()
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
EndFunction
|
|
|
|
|
2022-01-07 13:51:21 +00:00
|
|
|
Function AskCreatePotion()
|
|
|
|
|
|
|
|
If Self.GetStage() == 115
|
|
|
|
If _00E_FS_NQ07_AlchemyMessagebox.Show() == 0
|
|
|
|
Self.SetStage(120)
|
|
|
|
PlayerREF.RemoveItem(FoodMead, 1)
|
|
|
|
PlayerREF.RemoveItem(FrostMirriam, 2)
|
|
|
|
PlayerREF.RemoveItem(FoodBananenschnaps, 1)
|
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_Rezept, 1)
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
_00E_QuestFunctions Property Levelsystem Auto
|
|
|
|
|
|
|
|
ReferenceAlias Property Player Auto
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_MaxusREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_AarosREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_AuroraREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_BoneripperREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_ManfredREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_Draugr001 Auto
|
|
|
|
Actor Property _00E_FS_NQ07_Draugr002 Auto
|
|
|
|
Actor Property _00E_FS_NQ07_Draugr003 Auto
|
|
|
|
Actor Property _00E_FS_NQ07_AlfonsREF Auto
|
|
|
|
Actor Property _00E_FS_NQ07_EgbertaREF Auto
|
|
|
|
|
|
|
|
Book Property _00E_FS_NQ07_Rezept Auto
|
|
|
|
Book Property _00E_FS_NQ07_Diplom Auto
|
|
|
|
Book Property _25E_SpellGeisterferkelRufen Auto
|
|
|
|
|
|
|
|
FormList Property _00E_FS_NQ07_LightList Auto
|
|
|
|
|
|
|
|
Explosion Property ExplosionIllusionDark01 Auto
|
|
|
|
Explosion Property TG08BShockwaveExplosion Auto
|
|
|
|
|
|
|
|
Potion Property FoodSweetroll Auto
|
|
|
|
|
|
|
|
GlobalVariable Property FS_NQ07_HoneyWineBought Auto
|
|
|
|
GlobalVariable Property FS_NQ07_ChickenCooked Auto
|
|
|
|
GlobalVariable Property FS_NQ07_SoupBrewed Auto
|
|
|
|
GlobalVariable Property _00E_AchievementsEnabled Auto
|
|
|
|
GlobalVariable Property _00E_TeleportGlobal Auto
|
|
|
|
|
|
|
|
Message Property _00E_FS_NQ07_Thoughts Auto
|
2022-01-07 13:51:21 +00:00
|
|
|
Message Property _00E_FS_NQ07_AlchemyMessagebox Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
MiscObject Property Gold001 Auto
|
|
|
|
MiscObject Property _00E_FS_NQ07_Borstenbeutel Auto
|
|
|
|
MiscObject Property _00E_FS_NQ07_AuroraTrank Auto
|
|
|
|
MiscObject Property _00E_FS_NQ07_CraftingPlan_Door Auto
|
|
|
|
|
|
|
|
Musictype Property _00E_SilenceLongTransitionHighPriority Auto
|
|
|
|
Musictype Property _00E_SilenceTransitionLowPriority Auto
|
|
|
|
Musictype Property _00E_FS_NQ07_Ritual_MusicType Auto
|
|
|
|
|
|
|
|
ObjectReference Property _00E_FS_NQ07_SC01_DisableMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_MaxusTavernMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_PlayerTavernMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraDoor Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraHomeDoor Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraSweepMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOn1 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOn2 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOn3 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOn4 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireLightREF Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOff1 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOff2 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOff3 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FireOff4 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FoodCollision001 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FoodCollision002 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FoodCollision003 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_FoodCollision004 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_DoorRepairActivatorREF Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_SC05_Marker001 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_SC05_Collision001 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_Pressureplate1 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_RockStartMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_SC05_EndbossMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_Erdhaufen Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_Schaufel Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_MaxusTableMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_TableActivatorREF Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_DinnerEnableMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_MaxusDinnerMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraDinnerMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_PlayerDinnerMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraRitualMarker Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraDoorREF Auto
|
|
|
|
ObjectReference Property FS_NQ07_SC02_DustREF_01 Auto
|
|
|
|
ObjectReference Property FS_NQ07_SC02_DustREF_02 Auto
|
|
|
|
ObjectReference Property FS_NQ07_SC02_DustREF_03 Auto
|
|
|
|
ObjectReference Property FS_NQ07_SC02_DustREF_04 Auto
|
|
|
|
ObjectReference Property FS_NQ07_SC05_DustREF Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_Aushang1 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_Aushang2 Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_Chair Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraTeleportMarkerREF Auto
|
|
|
|
|
|
|
|
ImageSpaceModifier Property MAGShockExpMassImod Auto
|
|
|
|
|
|
|
|
Potion Property FoodMead Auto
|
2022-01-07 13:51:21 +00:00
|
|
|
Potion Property FoodBananenschnaps Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
Potion Property _00E_DalSarkerHoneywine Auto
|
|
|
|
Potion Property FoodChickenCooked Auto
|
|
|
|
Potion Property FoodCabbagePotatoSoup Auto
|
|
|
|
|
2022-01-07 13:51:21 +00:00
|
|
|
Ingredient Property FrostMirriam Auto
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Spell Property _00E_AbCarryDrinkTray_Old Auto
|
|
|
|
Spell Property _00E_AbCarryDrinkTray_New Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
Spell Property _00E_FS_NQ07_LightSpell Auto
|
|
|
|
|
|
|
|
EffectShader Property _00E_FireBlueFXS Auto
|
|
|
|
|
|
|
|
Sound Property MAGDestructionFireballExplosionM Auto
|
|
|
|
Sound Property QSTGreybeardRumble Auto
|
|
|
|
Sound Property QSTTG09NocturnalFloorRumble Auto
|
|
|
|
Sound Property NPCDraugrAware Auto
|
|
|
|
Sound Property _00E_NPCOorbaya_RoarM Auto
|
|
|
|
Sound Property MAGPowerRacialDarkElfAncestorsWrathFire2DM Auto
|
|
|
|
Sound Property FXFireOut Auto
|
|
|
|
Sound Property NPCSkeletonCombatIdle1HMTauntAM Auto
|
|
|
|
Sound Property _00E_FS_NQ07_ManfredGruntM Auto
|
|
|
|
|
|
|
|
Scene Property FS_NQ07_SC01_Tavern Auto
|
|
|
|
Scene Property FS_NQ07_SC02_Ritual Auto
|
|
|
|
Scene Property FS_NQ07_SC03_ManfredSummon Auto
|
|
|
|
Scene Property FS_NQ07_SC04_ManfredTravel Auto
|
|
|
|
Scene Property FS_NQ07_SC05_ManfredSeelengrund Auto
|
|
|
|
Scene Property FS_NQ07_SC06_MaxusForcegreet Auto
|
|
|
|
Scene Property FS_NQ07_SC07_DinnerScene Auto
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Weather Property SkyrimClear Auto
|
|
|
|
|
|
|
|
Faction Property CarryDrinkTrayFaction Auto
|