kyasarintsu

tuskur

Mar 30th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. void tusukur_proc()
  2. {
  3. store(rand(99), 0);
  4. if (!get_local_flag(9))
  5. {
  6. store(5, 1);
  7. set_local_flag(9);
  8. }
  9. int localVariable0 = retrieve(1);
  10. if (get_local_flag(1))
  11. {
  12. localVariable0 = localVariable0 - 1;
  13. store(localVariable0, 1);
  14. }
  15. if (turn_count() == 1)
  16. {
  17. revenge();
  18. }
  19. if (!get_local_flag(1) && rand(99) < 49)
  20. {
  21. set_local_flag(1);
  22. sapping();
  23. }
  24. else if (retrieve(1) <= 0 && get_local_flag(1))
  25. {
  26. store(5, 1);
  27. sapping();
  28. }
  29. if (ally_party_size_lower_than_or_equal_to_x(1))
  30. {
  31. if (!get_local_flag(2))
  32. {
  33. set_local_flag(2);
  34. chaos();
  35. }
  36. else if (!enemy_ailment_check(0x0400) && rand(99) < 19)
  37. {
  38. clear_local_flag(3);
  39. cranial();
  40. }
  41. else if (!enemy_ailment_check(0x0800) && rand(99) < 19)
  42. {
  43. clear_local_flag(3);
  44. abdomen();
  45. }
  46. else if (retrieve(0) < 49 && !get_local_flag(3))
  47. {
  48. set_local_flag(3);
  49. chaos();
  50. }
  51. else if (self_hp_below_threshold(50))
  52. {
  53. clear_local_flag(3);
  54. revenge();
  55. }
  56. else if (self_hp_below_threshold(75))
  57. {
  58. if (retrieve(0) < 49)
  59. {
  60. clear_local_flag(3);
  61. revenge();
  62. }
  63. else
  64. {
  65. clear_local_flag(3);
  66. attack();
  67. }
  68. }
  69. else
  70. {
  71. clear_local_flag(3);
  72. attack();
  73. }
  74. }
  75. else if (self_hp_below_threshold(50) && !get_local_flag(4))
  76. {
  77. set_local_flag(4);
  78. revenge();
  79. }
  80. else if (!enemy_ailment_check(0x0400) && rand(99) < 17)
  81. {
  82. cranial();
  83. }
  84. else if (!enemy_ailment_check(0x0800) && rand(99) < 17)
  85. {
  86. abdomen();
  87. }
  88. else if (enemy_all_ailment_check(0x0400) == 0 && rand(99) < 7)
  89. {
  90. cranial();
  91. }
  92. else if (enemy_all_ailment_check(0x0800) == 0 && rand(99) < 7)
  93. {
  94. abdomen();
  95. }
  96. else if (self_hp_below_threshold(30))
  97. {
  98. revenge();
  99. }
  100. else if (self_hp_below_threshold(50))
  101. {
  102. if (retrieve(0) < 69)
  103. {
  104. revenge();
  105. }
  106. else
  107. {
  108. attack();
  109. }
  110. }
  111. }
  112. void revenge()
  113. {
  114. action_skill(239);
  115. target_standard();
  116. return;
  117. }
  118. void chaos()
  119. {
  120. action_skill(238);
  121. target_standard();
  122. return;
  123. }
  124. void abdomen()
  125. {
  126. action_skill(237);
  127. target_standard();
  128. return;
  129. }
  130. void cranial()
  131. {
  132. action_skill(236);
  133. target_standard();
  134. return;
  135. }
  136. void sapping()
  137. {
  138. action_skill(235);
  139. target_standard();
  140. return;
  141. }
  142.  
Advertisement
Add Comment
Please, Sign In to add comment