Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tusukur_proc()
- {
- store(rand(99), 0);
- if (!get_local_flag(9))
- {
- store(5, 1);
- set_local_flag(9);
- }
- int localVariable0 = retrieve(1);
- if (get_local_flag(1))
- {
- localVariable0 = localVariable0 - 1;
- store(localVariable0, 1);
- }
- if (turn_count() == 1)
- {
- revenge();
- }
- if (!get_local_flag(1) && rand(99) < 49)
- {
- set_local_flag(1);
- sapping();
- }
- else if (retrieve(1) <= 0 && get_local_flag(1))
- {
- store(5, 1);
- sapping();
- }
- if (ally_party_size_lower_than_or_equal_to_x(1))
- {
- if (!get_local_flag(2))
- {
- set_local_flag(2);
- chaos();
- }
- else if (!enemy_ailment_check(0x0400) && rand(99) < 19)
- {
- clear_local_flag(3);
- cranial();
- }
- else if (!enemy_ailment_check(0x0800) && rand(99) < 19)
- {
- clear_local_flag(3);
- abdomen();
- }
- else if (retrieve(0) < 49 && !get_local_flag(3))
- {
- set_local_flag(3);
- chaos();
- }
- else if (self_hp_below_threshold(50))
- {
- clear_local_flag(3);
- revenge();
- }
- else if (self_hp_below_threshold(75))
- {
- if (retrieve(0) < 49)
- {
- clear_local_flag(3);
- revenge();
- }
- else
- {
- clear_local_flag(3);
- attack();
- }
- }
- else
- {
- clear_local_flag(3);
- attack();
- }
- }
- else if (self_hp_below_threshold(50) && !get_local_flag(4))
- {
- set_local_flag(4);
- revenge();
- }
- else if (!enemy_ailment_check(0x0400) && rand(99) < 17)
- {
- cranial();
- }
- else if (!enemy_ailment_check(0x0800) && rand(99) < 17)
- {
- abdomen();
- }
- else if (enemy_all_ailment_check(0x0400) == 0 && rand(99) < 7)
- {
- cranial();
- }
- else if (enemy_all_ailment_check(0x0800) == 0 && rand(99) < 7)
- {
- abdomen();
- }
- else if (self_hp_below_threshold(30))
- {
- revenge();
- }
- else if (self_hp_below_threshold(50))
- {
- if (retrieve(0) < 69)
- {
- revenge();
- }
- else
- {
- attack();
- }
- }
- }
- void revenge()
- {
- action_skill(239);
- target_standard();
- return;
- }
- void chaos()
- {
- action_skill(238);
- target_standard();
- return;
- }
- void abdomen()
- {
- action_skill(237);
- target_standard();
- return;
- }
- void cranial()
- {
- action_skill(236);
- target_standard();
- return;
- }
- void sapping()
- {
- action_skill(235);
- target_standard();
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment