Advertisement
Kahmul

Flying Kalameet event script functions documentation

Dec 27th, 2022
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. Kalameet Event Script IDs:
  2.  
  3. 1210400: bridge encounter Kalameet ID
  4. 1210401: grounded fight
  5. 1210402: flying fight
  6.  
  7.  
  8. Kalameet Animation IDs:
  9.  
  10. 7000: bridge encounter
  11. 7001: slow cycle extra flight path
  12. 7002: burn back of arena out of the slow cycle
  13. 7003: burn front and back of arena out of the slow cycle
  14. 7004: death
  15. 7006: fly in on first encounter at fight arena
  16. 7008: fly back behind the mountains
  17. 7009: stuck idle behind the mountains
  18. 7010: attack that you want / burn back of arena
  19. 7011: attack front and back of arena
  20.  
  21.  
  22. Flags:
  23.  
  24. 11210055,56,57,58: flags for where in the arena you are, used in function 11210052
  25.  
  26. 11210062: first encounter finished, ready to do flying attacks
  27. 11210063: Kalameet dead
  28. 11210064: burn the back of arena only (the one you want)
  29. 11210065: burn front + back of arena
  30. 11210066: wait, player is in no attack region
  31. 11210067: decided on a flying attack already, blocks other flying attacks until unset
  32. 11210068: a 7X flag has been set, not used otherwise seemingly
  33. 11210069: finished fly back to behind the cliff/mountains
  34.  
  35. 11210070-73: used for random delay between attacks (referred to as 7X below)
  36.  
  37.  
  38. Functions:
  39.  
  40. function 11210050 (bridge encounter)
  41.  
  42. function 11210051 (first encounter at the fight arena)
  43. -> start fly-in animation when player enters area id 01212052
  44. -> anim 7006, wait 240 frames
  45. -> anim 7008, wait 194 frames
  46. -> set flags: 11210062 and 11210069
  47.  
  48. function 11210052 (decide on attack based on where player is and Kalameet HP)
  49. -> set 1121007X randomly to on (decides random delay between attacks), as well as 11210068
  50. -> set 11210063 if Kalameet is <= 1% HP and he is not doing an attack aka dead
  51. -> set 11210064 if player is in back of arena
  52. -> set 11210065 if player is in the front of the arena
  53. -> set 11210066 if player is no attack region
  54. -> set 11210067 in any case to signal Kalameet is busy
  55.  
  56. function 11210053 (kill Kalameet)
  57. -> kill Kalameet if 11210063 is set
  58.  
  59. function 11210054 (Kalameet burns back of the arena)
  60. -> run if 11210064 is set
  61. -> play 7010 (attack you want) if behind the mountain (11210069 is set)
  62. -> play 7002 if attacking out of slow cycle (not behind mountain, 11210069 not set)
  63. -> if dead, skip the next line with flying behind the mountain or slow cycle
  64. -> fly behind mountain + delay depending on 7X flags (71 = 60 frames, 72 = 120 frames, 73 = 180 frames), do slow cycle if 70 is set
  65. -> set 11210064 + 67 to 0, and 11210069 to 1 if behind mountain
  66.  
  67. function 11210055 (Kalameet burns front and back of the arena)
  68. -> run if 11210065 is set
  69. -> play 7011 if behind the mountain (11210069 is set)
  70. -> play 7003 if attacking out of slow cycle (not behind mountain, 11210069 not set)
  71. -> if dead, skip the next line with flying behind the mountain or slow cycle
  72. -> fly behind mountain + delay depending on 7X flags (71 = 60 frames, 72 = 120 frames, 73 = 180 frames), do slow cycle if 70 is set
  73. -> set 11210065 + 67 to 0, and 11210069 to 1 if behind mountain
  74.  
  75. function 11210056 (Kalameet does nothing because player is in no attack region)
  76. -> run if 11210066 is set
  77. -> if kalameet is behind the mountain already, play 7009 idle anim, do wait based on 7X flags (45, 60, 75, 90 frames), then unset 11210066 + 67 to allow Kalameet to check for attack again
  78. -> if kalameet is not behind the mountain already (just did slow cycle), then do anim 7008 to fly back behind the mountain and do the same wait as line above and set 11210069 + unset 11210066 + 67
  79.  
  80. function 11210057 (unsure about purpose, makes sure only one 7X flag is set? Should not be the case anyway however)
  81. -> checks if combination of 11210068 + 1121007X is set and then sets 11210068 and all other 1121007X flags to 0 besides the 1121007X that was checked
  82.  
  83. function 11210535 (shooting Kalameet down with Gough)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement