Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // FlowScript decompiled by AtlusScriptLib by TGE (2017)
- // In the unfortunate case of any bugs, please report them back to me.
- //
- //
- // Procedure declarations
- //
- void arachne_proc()
- {
- set_max_ailment_duration(8, 3);
- set_max_ailment_duration(0x2000, 3);
- set_max_ailment_duration(0x0100, 4);
- set_max_ailment_duration(0x40, 4);
- set_max_ailment_duration(0x0400, 4);
- set_max_ailment_duration(0x0800, 4);
- set_max_ailment_duration(0x1000, 4);
- store(rand(99), 0);
- run_script_at_action_time();
- enable_out_of_turn();
- if (!out_of_turn_action() && !action_time_turn())
- {
- if (!get_local_flag(0x10))
- {
- store(4, 1);
- set_local_flag(0x10);
- }
- if (retrieve(1) >= 1)
- {
- store(retrieve(1) - 1, 1);
- }
- }
- else if (out_of_turn_action())
- {
- if (get_local_flag(20) && action_time_turn())
- {
- store(4, 1);
- clear_local_flag(18);
- clear_local_flag(20);
- if (get_local_flag(14))
- {
- clear_local_flag(14);
- }
- else if (get_local_flag(13))
- {
- clear_local_flag(13);
- }
- else if (get_local_flag(12))
- {
- clear_local_flag(12);
- }
- else if (get_local_flag(11))
- {
- clear_local_flag(11);
- }
- else if (get_local_flag(10))
- {
- clear_local_flag(10);
- }
- else if (get_local_flag(9))
- {
- clear_local_flag(9);
- }
- else if (get_local_flag(8))
- {
- clear_local_flag(8);
- }
- else if (get_local_flag(7))
- {
- clear_local_flag(7);
- }
- }
- else if (get_local_flag(18) && action_time_turn())
- {
- store(4, 1);
- clear_local_flag(18);
- }
- if (self_ailment_check(4 + 8))
- {
- do_nothing_and_display_message(0);
- target_self();
- if (action_time_turn())
- {
- clear_persistent_flag(30);
- }
- return;
- }
- if (retrieve(1) == 2)
- {
- action_skill_with_message(515, 1, 654);
- target_self();
- return;
- }
- else
- {
- do_nothing_and_display_message(0);
- target_self();
- return;
- }
- }
- if (check_persistent_flag(30) && retrieve(1) == 1)
- {
- action_skill(308);
- target_front_row();
- if (action_time_turn())
- {
- clear_persistent_flag(30);
- }
- return;
- }
- else if (action_time_turn())
- {
- clear_persistent_flag(30);
- }
- if (!get_local_flag(17))
- {
- if (self_hp_below_threshold(45) || action_count() >= 4)
- {
- action_skill_with_message(305, 1, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- }
- else if (retrieve(1) <= 0 && !get_local_flag(7))
- {
- action_skill_with_message(305, 1, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(8))
- {
- action_skill_with_message(305, 2, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(9))
- {
- action_skill_with_message(305, 3, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(10))
- {
- action_skill_with_message(305, 4, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(11))
- {
- action_skill_with_message(305, 5, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(12))
- {
- action_skill_with_message(305, 6, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(13))
- {
- action_skill_with_message(305, 7, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0 && !get_local_flag(14))
- {
- action_skill_with_message(305, 8, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- else if (retrieve(1) <= 0)
- {
- action_skill_with_message(305, 9, 569);
- target_standard();
- if (self_ailment_check(0x0400) && action_time_turn())
- {
- set_local_flag(20);
- }
- return;
- }
- if (self_hp_below_threshold(15))
- {
- if (!get_local_flag(6) && !action_time_turn())
- {
- clear_local_flag(1);
- clear_local_flag(2);
- clear_local_flag(3);
- clear_local_flag(4);
- set_local_flag(6);
- }
- if (!get_local_flag(1))
- {
- action_skill(307);
- target_standard();
- if (action_time_turn())
- {
- set_local_flag(1);
- }
- return;
- }
- else if (!get_local_flag(2))
- {
- action_skill(309);
- target_front_row();
- if (action_time_turn())
- {
- set_local_flag(2);
- }
- return;
- }
- else
- {
- action_skill(306);
- target_standard();
- if (action_time_turn())
- {
- clear_local_flag(1);
- clear_local_flag(2);
- }
- return;
- }
- }
- else if (self_hp_below_threshold(30))
- {
- if (!get_local_flag(5) && !action_time_turn())
- {
- clear_local_flag(1);
- clear_local_flag(2);
- clear_local_flag(3);
- set_local_flag(5);
- }
- if (!get_local_flag(1))
- {
- action_skill(307);
- target_standard();
- if (action_time_turn())
- {
- set_local_flag(1);
- }
- return;
- }
- else if (!get_local_flag(2))
- {
- action_attack();
- target_standard();
- if (action_time_turn())
- {
- set_local_flag(2);
- }
- return;
- }
- else if (!get_local_flag(3))
- {
- action_skill(306);
- target_standard();
- if (action_time_turn())
- {
- set_local_flag(3);
- }
- return;
- }
- else
- {
- action_skill(309);
- target_front_row();
- if (action_time_turn())
- {
- clear_local_flag(1);
- clear_local_flag(2);
- clear_local_flag(3);
- }
- return;
- }
- }
- else if (get_local_flag(17))
- {
- if (!get_local_flag(1))
- {
- action_skill(307);
- target_standard();
- if (action_time_turn())
- {
- set_local_flag(1);
- }
- return;
- }
- else if (!get_local_flag(2))
- {
- action_attack();
- target_standard();
- if (action_time_turn())
- {
- set_local_flag(2);
- }
- return;
- }
- else
- {
- action_skill(306);
- target_standard();
- if (action_time_turn())
- {
- clear_local_flag(1);
- clear_local_flag(2);
- }
- return;
- }
- }
- else
- {
- action_attack();
- target_standard();
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment