Advertisement
GrandBulwark

Untitled

Mar 6th, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. Scriptname ARTH_LAL_VersionTrackingScript extends Quest Conditional
  2.  
  3. Int Property LastVersion Auto Hidden
  4. ARTH_LAL_StartQuest Property ChargenQuest Auto
  5. Message Property ARTHLALUpgradeNotice Auto
  6. ARTH_LAL_Patch210RetroScript Property ARTHLALPatch21Quest Auto
  7. ARTH_LAL_Patch212RetroScript Property ARTHLALPatch212Quest Auto
  8. ARTH_LAL_Patch216RetroScript Property ARTHLALPatch216Quest Auto
  9. ARTH_LAL_Patch218RetroScript Property ARTHLALPatch218Quest Auto
  10. ARTH_LAL_Patch220RetroScript Property ARTHLALPatch220Quest Auto
  11. ARTH_LAL_Patch230RetroScript Property ARTHLALPatch230Quest Auto
  12. ARTH_LAL_Patch231RetroScript Property ARTHLALPatch231Quest Auto
  13. ARTH_LAL_Patch232RetroScript Property ARTHLALPatch232Quest Auto
  14. ARTH_LAL_Patch233RetroScript Property ARTHLALPatch233Quest Auto
  15. ARTH_LAL_Patch235RetroScript Property ARTHLALPatch235Quest Auto
  16. ARTH_LAL_Patch236RetroScript Property ARTHLALPatch236Quest Auto
  17. ARTH_LAL_Patch237RetroScript Property ARTHLALPatch237Quest Auto
  18. ARTH_LAL_Patch240RetroScript Property ARTHLALPatch240Quest Auto
  19. ARTH_LAL_Patch241RetroScript Property ARTHLALPatch241Quest Auto
  20. ARTH_LAL_Patch250RetroScript Property ARTHLALPatch250Quest Auto
  21. ARTH_LAL_Patch251RetroScript Property ARTHLALPatch251Quest Auto
  22. ARTH_LAL_Patch252RetroScript Property ARTHLALPatch252Quest Auto
  23. ARTH_LAL_Patch300RetroScript Property ARTHLALPatch300Quest Auto
  24.  
  25. Faction Property DLC1VampireCompanionFaction Auto
  26. Faction Property DLC1RadiantVampireBanditNecroAllys Auto
  27. Faction Property VampireFaction Auto
  28. Faction Property VampireThrallFaction Auto
  29. Faction Property BanditFaction Auto
  30. Faction Property WolfFaction Auto
  31. Faction Property ARTHLALBanditVampireFaction Auto
  32.  
  33. Potion property SnowberryExtract Auto Hidden ; Frostfall support
  34. bool property FrostfallInstalled Auto Hidden ; Frostfall support
  35.  
  36. bool Property BlockHelgenStart Auto Hidden Conditional ; Use to block Helgen start option.
  37. bool Property RTHInstalled Auto Hidden Conditional ; For Giskard's Return to Helgen - blocks Solitude start options.
  38.  
  39. bool Property KNInstalled Auto Hidden Conditional ; For Keld-Nar inn start
  40. ObjectReference Property ARTHKeldNarInnStartMarker Auto Hidden
  41.  
  42. bool Property OldHroldanInstalled Auto Hidden Conditional ;For Shezrie's Old Hroldan Inn
  43.  
  44. Quest Property MQ101 Auto
  45.  
  46. Event OnInit()
  47. DLCSupportCheck()
  48. VersionCheck()
  49. EndEvent
  50.  
  51. Function DLCSupportCheck()
  52. BanditFaction.SetAlly(ARTHLALBanditVampireFaction)
  53. VampireFaction.SetAlly(ARTHLALBanditVampireFaction)
  54. VampireThrallFaction.SetAlly(ARTHLALBanditVampireFaction)
  55. WolfFaction.SetAlly(ARTHLALBanditVampireFaction)
  56.  
  57. VampireFaction.SetAlly(DLC1VampireCompanionFaction)
  58. VampireThrallFaction.SetAlly(DLC1VampireCompanionFaction)
  59.  
  60. BanditFaction.SetAlly(DLC1RadiantVampireBanditNecroAllys)
  61. VampireFaction.SetAlly(DLC1RadiantVampireBanditNecroAllys)
  62. VampireThrallFaction.SetAlly(DLC1RadiantVampireBanditNecroAllys)
  63.  
  64. ;Don't perform the checks if chargen is complete. MQ101 Stage 250 is as good a check as any.
  65. if( MQ101.GetStage() < 250 )
  66. debug.trace( "==== LAL: Mod support check - Ignore errors about missing files. ====" )
  67.  
  68. ;Frostfall check, for shipwreck start to add 2 Strawberry Extract potions to the sack near the start area.
  69. If Game.GetModByName("Chesko_Frostfall.esp")
  70. if( Game.GetFormFromFile( 0x0001D430, "Chesko_Frostfall.esp" ) )
  71. debug.trace( "LAL: Frostfall detected." )
  72. SnowberryExtract = Game.GetFormFromFile( 0x0001D430, "Chesko_Frostfall.esp" ) as Potion
  73.  
  74. FrostfallInstalled = True
  75. Else
  76. SnowberryExtract = None
  77.  
  78. FrostfallInstalled = False
  79. EndIf
  80. Endif
  81. BlockHelgenStart = False
  82.  
  83. ;Helgen Reborn check - disables vanilla start option if it's active.
  84. ; if( Game.GetFormFromFile( 0x000012CA, "Helgen Reborn.esp" ) )
  85. ; debug.trace( "LAL: Helgen Reborn detected." )
  86. ; BlockHelgenStart = True
  87. ; EndIf
  88.  
  89. ;Return to Helgen check - disables Solitude start options if it's active.
  90. If Game.GetModByName("teg_returntohelgen.esp")
  91. if( Game.GetFormFromFile( 0x000012CA, "teg_returntohelgen.esp" ) )
  92. debug.trace( "LAL: Return to Helgen detected. Solitude start options are now disabled." )
  93. RTHInstalled = True
  94. Else
  95. RTHInstalled = False
  96. EndIf
  97. Endif
  98. ;Keld-Nar check - used for additional inn start if it's installed.
  99. If Game.GetModByName("Keld-Nar.esp")
  100. if( Game.GetFormFromFile( 0x00013AD8, "Keld-Nar.esp" ) )
  101. ARTHKeldNarInnStartMarker = Game.GetFormFromFile( 0x00013AD8, "Keld-Nar.esp" ) as ObjectReference
  102. KNInstalled = True
  103. Else
  104. ARTHKeldNarInnStartMarker = None
  105. KNINstalled = False
  106. EndIf
  107. Endif
  108. ;Old Hroldan Inn. Move player to adjusted location marker if Shezrie's version is present.
  109. If Game.GetModByName("ShezriesOldHroldan.esp")
  110. if( Game.GetFormFromFile( 0x000149e6, "ShezriesOldHroldan.esp" ) )
  111. debug.trace( "LAL: Shezrie's Old Hroldan Town detected." )
  112. OldHroldanInstalled = True
  113. Else
  114. OldHroldanInstalled = False
  115. EndIf
  116. Endif
  117. debug.trace( "==== LAL: Mod support check - Done. ====" )
  118. EndIf
  119. EndFunction
  120.  
  121. Function VersionCheck()
  122. if( LastVersion < 300 )
  123. if( ChargenQuest.GetStage() >= 10 && ChargenQuest.GetStage() < 20 )
  124. ARTHLALUpgradeNotice.Show()
  125. Return
  126. EndIf
  127.  
  128. if( LastVersion < 210 )
  129. ARTHLALPatch21Quest.Process()
  130. ElseIf( LastVersion < 212 )
  131. ARTHLALPatch212Quest.Process()
  132. elseif( LastVersion < 216 )
  133. ARTHLALPatch216Quest.Process()
  134. elseif( LastVersion < 218 )
  135. ARTHLALPatch218Quest.Process()
  136. elseif( LastVersion < 220 )
  137. ARTHLALPatch220Quest.Process()
  138. elseif( LastVersion < 230 )
  139. ARTHLALPatch230Quest.Process()
  140. elseif( LastVersion < 231 )
  141. ARTHLALPatch231Quest.Process()
  142. elseif( LastVersion < 232 )
  143. ARTHLALPatch232Quest.Process()
  144. elseif( LastVersion < 233 )
  145. ARTHLALPatch233Quest.Process()
  146. elseif( LastVersion < 235 )
  147. ARTHLALPatch235Quest.Process()
  148. elseif( LastVersion < 236 )
  149. ARTHLALPatch236Quest.Process()
  150. elseif( LastVersion < 237 )
  151. ARTHLALPatch237Quest.Process()
  152. elseif( LastVersion < 240 )
  153. ARTHLALPatch240Quest.Process()
  154. elseif( LastVersion < 241 )
  155. ARTHLALPatch241Quest.Process()
  156. elseif( LastVersion < 250 )
  157. ARTHLALPatch250Quest.Process()
  158. elseif( LastVersion < 251 )
  159. ARTHLALPatch251Quest.Process()
  160. elseif( LastVersion < 252 )
  161. ARTHLALPatch252Quest.Process()
  162. elseif( LastVersion < 300 )
  163. ARTHLALPatch300Quest.Process()
  164. EndIf
  165. EndIf
  166. EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement