cecell

Dovahkriid

Jun 15th, 2021
832
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
  2. ;NEXT FRAGMENT INDEX 8
  3. Scriptname QF_kcfAV1DragonLordsQuest_01008A7A Extends Quest Hidden
  4. {Make Dragons Lords return after player progress in main quest.}
  5.  
  6. ;BEGIN ALIAS PROPERTY Finkroniid
  7. ;ALIAS PROPERTY TYPE ReferenceAlias
  8. ReferenceAlias Property Alias_Finkroniid Auto
  9. ;END ALIAS PROPERTY
  10.  
  11. ;BEGIN ALIAS PROPERTY Sahkulaan
  12. ;ALIAS PROPERTY TYPE ReferenceAlias
  13. ReferenceAlias Property Alias_Sahkulaan Auto
  14. ;END ALIAS PROPERTY
  15.  
  16. ;BEGIN ALIAS PROPERTY Hevnozok
  17. ;ALIAS PROPERTY TYPE ReferenceAlias
  18. ReferenceAlias Property Alias_Hevnozok Auto
  19. ;END ALIAS PROPERTY
  20.  
  21. ;BEGIN ALIAS PROPERTY Faalgolin
  22. ;ALIAS PROPERTY TYPE ReferenceAlias
  23. ReferenceAlias Property Alias_Faalgolin Auto
  24. ;END ALIAS PROPERTY
  25.  
  26. ;BEGIN ALIAS PROPERTY Britkulaas
  27. ;ALIAS PROPERTY TYPE ReferenceAlias
  28. ReferenceAlias Property Alias_Britkulaas Auto
  29. ;END ALIAS PROPERTY
  30.  
  31. ;BEGIN ALIAS PROPERTY Mulvednah
  32. ;ALIAS PROPERTY TYPE ReferenceAlias
  33. ReferenceAlias Property Alias_Mulvednah Auto
  34. ;END ALIAS PROPERTY
  35.  
  36. ;BEGIN ALIAS PROPERTY Kendovzoor
  37. ;ALIAS PROPERTY TYPE ReferenceAlias
  38. ReferenceAlias Property Alias_Kendovzoor Auto
  39. ;END ALIAS PROPERTY
  40.  
  41. ;BEGIN ALIAS PROPERTY Lotsoslun
  42. ;ALIAS PROPERTY TYPE ReferenceAlias
  43. ReferenceAlias Property Alias_Lotsoslun Auto
  44. ;END ALIAS PROPERTY
  45.  
  46. ;BEGIN ALIAS PROPERTY Junsenax
  47. ;ALIAS PROPERTY TYPE ReferenceAlias
  48. ReferenceAlias Property Alias_Junsenax Auto
  49. ;END ALIAS PROPERTY
  50.  
  51. ;BEGIN ALIAS PROPERTY Roknirjul
  52. ;ALIAS PROPERTY TYPE ReferenceAlias
  53. ReferenceAlias Property Alias_Roknirjul Auto
  54. ;END ALIAS PROPERTY
  55.  
  56. ;BEGIN FRAGMENT Fragment_3
  57. Function Fragment_3()
  58. ;BEGIN CODE
  59. Debug.Trace("DLORDS Return Stage: " + GetStage())
  60.     UnregisterForUpdate()
  61.     Stop()
  62. ;END CODE
  63. EndFunction
  64. ;END FRAGMENT
  65.  
  66. ;BEGIN FRAGMENT Fragment_5
  67. Function Fragment_5()
  68. ;BEGIN CODE
  69. Debug.Trace("DLORDS Return Stage: " + GetStage())
  70.     Debug.Trace("DLORDS Trigger " + DragonsTrigger + " Stage: " + DragonsTrigger.GetStage())
  71.     ; spawn dragon lords
  72.     Alias_Britkulaas.GetActorRef().Enable()
  73.     Alias_Faalgolin.GetActorRef().Enable()
  74.     Alias_Finkroniid.GetActorRef().Enable()
  75.     Alias_Hevnozok.GetActorRef().Enable()
  76.     Alias_Junsenax.GetActorRef().Enable()
  77.     Alias_Kendovzoor.GetActorRef().Enable()
  78.     Alias_Lotsoslun.GetActorRef().Enable()
  79.     Alias_Mulvednah.GetActorRef().Enable()
  80.     Alias_Roknirjul.GetActorRef().Enable()
  81.     Alias_Sahkulaan.GetActorRef().Enable()
  82.     ReturnMsg.Show()
  83.     Debug.Trace("DLORDS Return Stage: The Dragons Lords have returned ...")
  84.     SetStage(99)
  85. ;END CODE
  86. EndFunction
  87. ;END FRAGMENT
  88.  
  89. ;BEGIN FRAGMENT Fragment_7
  90. Function Fragment_7()
  91. ;BEGIN CODE
  92. UnRegisterForUpdate()
  93.     RegisterForSingleUpdate(15)
  94.     Debug.Trace("DLORDS Return Stage: " + GetStage())
  95.     Debug.Trace("DLORDS Trigger " + DragonsTrigger + " Stage: " + DragonsTrigger.GetStage())
  96. ;END CODE
  97. EndFunction
  98. ;END FRAGMENT
  99.  
  100. ;END FRAGMENT CODE - Do not edit anything between this and the begin comment
  101.  
  102. Event OnUpdate()
  103.     Debug.Trace("DLORDS Return Status: Pending")
  104.     If DragonsTrigger.IsCompleted()
  105.         UnregisterForUpdate()
  106.         SetStage(10)
  107.     Else
  108.         RegisterForSingleUpdate(15)
  109.     EndIf
  110. EndEvent
  111.  
  112. Quest Property DragonsTrigger  Auto  
  113. {Quest that will trigger the Dragon Lords.}
  114.  
  115. Message Property ReturnMsg  Auto  
  116. {Notification to player of Dragon Lords' return.}
  117.  
RAW Paste Data