ScriptName TG11HeistScript
Float AddedCrimeGold
Short TrackConversation
Short FollowPC
Short SneakPC
Short WaitPC
Short CaughtTrespassing
Short PCUpstairs
Short LibraryDoorClosed
Short LineSaid
Short Kneel
Short MonkGiveScrollIdle
Begin GameMode
If GetStage TG11Heist == 30
If Player.GetInCell ICElvenGardensOthrelosHouse == 0
SetStage TG11Heist 15
EndIf
EndIf
If GetStage TG11Heist >=70 && GetStage TG11Heist < 102
If CaughtTrespassing == 1
Set AddedCrimeGold to GetGameSetting iCrimeGoldAttackMin
Player.ModCrimeGold AddedCrimeGold
Set CaughtTrespassing to 2
EndIf
EndIf
If Player.GetInCell ImperialSewerSystemTG11c == 1
If Player.GetDistance TG11cPressurePlateRef <= 64
SetQuestObject TG11ArrowExtrication 0
Else
SetQuestObject TG11ArrowExtrication 1
EndIf
Endif
If Player.GetEquipped TG11ArrowExtrication == 1
If Player.GetDistance TG11cPressurePlateRef > 64
Message "Now is not the time to equip the Arrow of Extrication." 7
Player.UnEquipItem TG11ArrowExtrication
EndIf
EndIf
If GetStage TG11Heist == 110
If Player.GetInCell ICElvenGardensOthrelosHouse == 0
SetStage TG11Heist 105
EndIf
EndIf
If GetStage TG11Heist == 140
If Player.GetInCell AnvilCastleGreatHall == 0
SetStage TG11Heist 145
EndIf
EndIf
If GetStage TG11Heist == 150
If Player.GetInCell ICWaterFrontDarelothsHouseBasement == 1
SetStage TG11Heist 160
EndIf
EndIf
End |