Advertisement
abitoftaste

Untitled

Nov 20th, 2023
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.50 KB | None | 0 0
  1. # kk23_AspectAegis ============================================================
  2. Begin kk23_AspectAegis
  3.  
  4. if ( GetDisabled )
  5. return
  6. endif
  7.  
  8. if ( GetChameleon < 50 )
  9. ModChameleon 50
  10. endif
  11.  
  12. if ( OnDeath )
  13. Player->AddItem "kk23_Soul_Husk" 1
  14. Player->AddSpell "kk23 AegisSpell"
  15. PlaceAtMe sprigganup 1 1 1 ; Visual effect
  16. Disable
  17. endif
  18.  
  19. if ( GetJournalIndex "kk23_Zete" > 10 )
  20. disable
  21. endif
  22.  
  23. end
  24.  
  25. # kk23_AspectAtrophy ==========================================================
  26. Begin kk23_AspectAtrophy
  27.  
  28. if ( GetDisabled )
  29. return
  30. endif
  31.  
  32. if ( GetChameleon < 50 )
  33. ModChameleon 50
  34. endif
  35.  
  36. if ( OnDeath )
  37. Player->AddItem "kk23_Soul_Husk" 1
  38. Player->AddSpell "kk23 AtrophySpell"
  39. PlaceAtMe sprigganup 1 1 1 ; Visual effect
  40. Disable
  41. endif
  42.  
  43. if ( GetJournalIndex "kk23_Zete" > 10 )
  44. disable
  45. endif
  46.  
  47. end
  48.  
  49. # kk23_AspectDecay ============================================================
  50. Begin kk23_AspectDecay
  51.  
  52. if ( GetDisabled )
  53. return
  54. endif
  55.  
  56. if ( GetChameleon < 50 )
  57. ModChameleon 50
  58. endif
  59.  
  60. if ( OnDeath )
  61. Player->AddItem "kk23_Soul_Husk" 1
  62. Player->AddSpell "kk23 DecaySpell"
  63. PlaceAtMe sprigganup 1 1 1 ; Visual effect
  64. Disable
  65. endif
  66.  
  67. if ( GetJournalIndex "kk23_Zete" > 10 )
  68. disable
  69. endif
  70.  
  71. end
  72.  
  73. # kk23_AspectEvanesce =========================================================
  74. Begin kk23_AspectEvanesce
  75.  
  76. if ( GetDisabled )
  77. return
  78. endif
  79.  
  80. if ( GetChameleon < 50 )
  81. ModChameleon 50
  82. endif
  83.  
  84. if ( OnDeath )
  85. Player->AddItem "kk23_Soul_Husk" 1
  86. Player->AddSpell "kk23 EvanesceSpell"
  87. PlaceAtMe sprigganup 1 1 1 ; Visual effect
  88. Disable
  89. endif
  90.  
  91. if ( GetJournalIndex "kk23_Zete" > 10 )
  92. disable
  93. endif
  94.  
  95. end
  96.  
  97. # kk23_AspectWilt =============================================================
  98. Begin kk23_AspectWilt
  99.  
  100. if ( GetDisabled )
  101. return
  102. endif
  103.  
  104. if ( GetChameleon < 50 )
  105. ModChameleon 50
  106. endif
  107.  
  108. if ( OnDeath )
  109. Player->AddItem "kk23_Soul_Husk" 1
  110. Player->AddSpell "kk23 WiltSpell"
  111. PlaceAtMe sprigganup 1 1 1 ; Visual effect
  112. Disable
  113. endif
  114.  
  115. if ( GetJournalIndex "kk23_Zete" > 10 )
  116. disable
  117. endif
  118.  
  119. end
  120.  
  121. # kk23_CurseDoorScr ===========================================================
  122. Begin kk23_CurseDoorScr
  123.  
  124. if ( GetDisabled )
  125. return
  126. endif
  127.  
  128. if ( GetJournalIndex "kk23_Zete" >= 50 )
  129. Disable
  130. endif
  131.  
  132. end
  133.  
  134. # kk23_DoorScr ================================================================
  135. Begin kk23_DoorScr
  136.  
  137. if ( MenuMode )
  138. return
  139. endif
  140.  
  141. if ( GetDisabled )
  142. if ( GetJournalIndex "kk23_Zete" >= 50 )
  143. enable
  144. endif
  145. return
  146. endif
  147.  
  148. if ( GetJournalIndex "kk23_Zete" < 50 )
  149. Disable
  150. endif
  151.  
  152. end
  153.  
  154. # kk23_SGS_Scr ================================================================
  155. begin kk23_SGS_Scr
  156.  
  157. short charged
  158.  
  159. if ( OnActivate )
  160. else
  161. return
  162. endif
  163.  
  164. if ( Charged )
  165. if ( player->getItemCount "Misc_SoulGem_Grand" )
  166. MessageBox "Day gives way to night, death becomes new life."
  167. PlaySound "Conjuration Cast"
  168. player->additem "AB_Misc_SoulGemBlack" 1
  169. player->removeitem "Misc_SoulGem_Grand" 1
  170. return
  171. endif
  172. Messagebox "You need a grand soul gem to create a black soul gem."
  173. return
  174. endif
  175.  
  176. if ( player->getItemCount "kk23_Soul_Husk" >= 3 )
  177. player->removeitem "kk23_Soul_Husk" 3
  178. PlaySound "Conjuration Cast"
  179. set charged to 1
  180. return
  181. endif
  182. MessageBox "Gather three fragments of the asunder spirit and cast its husk into the fire."
  183.  
  184. end
  185.  
  186. # kk23_SGSDummyScr ============================================================
  187. Begin kk23_SGSDummyScr
  188.  
  189. If ( OnActivate )
  190. messagebox "Purge the asunder spirit and lift the shroud of darkness that suffocates my flame."
  191. endif
  192.  
  193. end
  194.  
  195. # kk23_SpiderTrap =============================================================
  196. begin kk23_SpiderTrap
  197.  
  198. short done
  199.  
  200. if ( OnActivate )
  201. if ( done )
  202. else
  203. Set done to 1
  204. PlaceAtPC "AB_Fau_SpiderBlack" 1 200 1
  205. endif
  206. Activate
  207. endif
  208.  
  209. end
  210.  
  211. # kk23_TeleportRing_Script ====================================================
  212. Begin kk23_TeleportRing_Script
  213.  
  214. short button
  215. short messageOn
  216. short OnPcEquip
  217.  
  218. if ( OnPCEquip )
  219. set OnPCEquip to 0
  220. set messageOn to 1
  221. MessageBox "Would you like to return to Tel Amur?" "Yes" "No"
  222. return
  223. endif
  224.  
  225. if ( messageOn )
  226. set button to GetButtonPressed
  227. if ( button < 0 )
  228. return
  229. endif
  230. set messageOn to 0
  231. if ( button )
  232. return
  233. endif
  234. Player->PositionCell 3941 6160 13420 180 "Tel Amur, Grand Hall"
  235. endif
  236.  
  237. End
  238.  
  239. # Kk23_TelRootRetracting_s ====================================================
  240. Begin Kk23_TelRootRetracting_s
  241.  
  242. short state
  243. Short animStart
  244. Short stayOpen
  245. Float timer
  246.  
  247. ; Root retracts when the player approaches and opens back up when the player is further away.
  248.  
  249. ; Idle Closed
  250. ; Idle2 Opening
  251. ; Idle3 Open
  252. ; Idle4 Closing
  253.  
  254. if ( state == 0 )
  255. if ( player->HasItemEquipped kk23_glaive_of_guises )
  256. set state to 1
  257. endif
  258. endif
  259.  
  260. if ( state != 1 )
  261. Return
  262. endif
  263.  
  264. if ( CellChanged )
  265. ; Close the roots
  266. set stayOpen to 0
  267. PlayGroup Idle
  268. endif
  269.  
  270. if ( stayOpen == 1 )
  271. PlayGroup Idle3
  272. elseif ( stayOpen == -1 )
  273. set stayOpen to 0
  274. LoopGroup Idle4 0 1
  275. endif
  276.  
  277. if ( GetDistance "player" <= 900 )
  278. if ( stayOpen == 0 )
  279. ; slightly randomize the start time if multiple roots are used
  280. set animStart to Random 20
  281. set timer to ( animStart / 10 )
  282. set timer to ( timer - GetSecondsPassed )
  283. if ( timer < 0 )
  284. LoopGroup Idle2 0 1
  285. set stayOpen to 1
  286. Return
  287. endif
  288. endif
  289. return
  290. endif
  291.  
  292. if ( stayOpen == 1 )
  293. set stayOpen to -1
  294. endif
  295.  
  296. End
  297.  
  298. # kk23_ZeteCurseRingScr =======================================================
  299. Begin kk23_ZeteCurseRingScr
  300.  
  301. short OnPCEquip
  302.  
  303. if ( MenuMode )
  304. return
  305. endif
  306.  
  307. if ( OnPCEquip )
  308. if ( GetJournalIndex kk23_Zete == 10 )
  309. EnableTeleporting
  310. EnableLevitation
  311. Player->PositionCell 6592 1472 13421 180 "Tel Amur"
  312. journal kk23_Zete 20
  313. endif
  314. return
  315. endif
  316.  
  317. if ( GetJournalIndex kk23_Zete >= 20 )
  318. if ( GetJournalIndex kk23_Zete < 50 )
  319. Player->Equip "kk23_Zete_Ring_Curse"
  320. messagebox "The ring tightens its grip."
  321. player->ModCurrentHealth -5
  322. endif
  323. endif
  324.  
  325. End
  326.  
  327.  
  328. # kk23_ZeteFyrScr =============================================================
  329. Begin kk23_ZeteFyrScr
  330.  
  331. Short DoOnce
  332. short Aegis
  333. short Atro
  334. short Decay
  335. short Evan
  336. short Wilt
  337. short FullPower
  338.  
  339. if ( GetPCCell "Maw of Tel Amur" )
  340. if ( GetHealth < 100 )
  341. ModCurrentHealth 100
  342. endif
  343. endif
  344.  
  345. if ( Aegis == 0 )
  346. if ( player->GetSpell "kk23 AegisSpell" )
  347. AddSpell "kk23 AegisSpell"
  348. AddSpell "kk23 Aegis2"
  349. Player->RemoveSpell "kk23 AegisSpell"
  350. ModCurrentMagicka 300
  351. set Aegis to 1
  352. endif
  353. endif
  354.  
  355. if ( Atro == 0 )
  356. if ( player->GetSpell "kk23 AtrophySpell" )
  357. AddSpell "kk23 AtrophySpell"
  358. AddSpell "kk23 Atrophy2"
  359. Player->RemoveSpell "kk23 AtrophySpell"
  360. ModCurrentMagicka 300
  361. set Atro to 1
  362. endif
  363. endif
  364.  
  365. if ( Decay == 0 )
  366. if ( player->GetSpell, "kk23 DecaySpell" )
  367. AddSpell "kk23 DecaySpell"
  368. AddSpell "kk23 Decay2"
  369. Player->RemoveSpell "kk23 DecaySpell"
  370. ModCurrentMagicka 300
  371. set Decay to 1
  372. endif
  373. endif
  374.  
  375. if ( Evan == 0 )
  376. if ( player->GetSpell, "kk23 EvanesceSpell" )
  377. AddSpell "kk23 EvanesceSpell"
  378. AddSpell "kk23 Evanesce2"
  379. Player->RemoveSpell "kk23 EvanesceSpell"
  380. ModCurrentMagicka 300
  381. set Evan to 1
  382. endif
  383. endif
  384.  
  385. if ( Wilt == 0 )
  386. if ( player->GetSpell, "kk23 WiltSpell" )
  387. AddSpell "kk23 WiltSpell"
  388. AddSpell "kk23 Wilt2"
  389. Player->RemoveSpell "kk23 WiltSpell"
  390. ModCurrentMagicka 300
  391. set Wilt to 1
  392. endif
  393. endif
  394.  
  395. if ( Aegis == 1 )
  396. if ( Atro == 1 )
  397. if ( Decay == 1 )
  398. if ( Evan == 1 )
  399. if ( Wilt == 1 )
  400. if ( FullPower == 0 )
  401. set FullPower to 1
  402. endif
  403. endif
  404. endif
  405. endif
  406. endif
  407. endif
  408.  
  409. if ( FullPower == 1 )
  410. if ( GetMagicka < 100 )
  411. ModCurrentMagicka 100
  412. endif
  413. endif
  414.  
  415. if ( DoOnce == 0 )
  416. if ( GetDistance Player <= 500 )
  417. set DoOnce to 1
  418. FadeOut 1
  419. StartScript kk23_ZeteTeleportScr ; global script is automatically targeted on local script reference /abot
  420. PlaySound blackoutin
  421. endif
  422. endif
  423.  
  424. if ( GetPCCell "Zete Fyr's Pocket Realm" )
  425. if ( DoOnce == 1 )
  426. FadeIn 1
  427. set DoOnce to 2
  428. endif
  429. DisableTeleporting
  430. DisableLevitation
  431. endif
  432.  
  433. if ( OnDeath )
  434. if ( DoOnce == 2 )
  435. Journal "kk23_Zete", 10
  436. AddItem "kk23_Zete_Ring_Curse" 1
  437. set DoOnce to 3
  438. endif
  439. endif
  440.  
  441. end
  442.  
  443. # kk23_ZeteTeleportScr ========================================================
  444. Begin kk23_ZeteTeleportScr
  445.  
  446. Player->PositionCell 0 700 -3 180 "Zete Fyr's Pocket Realm"
  447. PositionCell 0 0 -3 180 "Zete Fyr's Pocket Realm"
  448. StopScript kk23_ZeteTeleportScr ; remember to stop global scripts when done! /abot
  449. ForceGreeting
  450.  
  451. end
  452.  
  453.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement