imbuedl

Bank Clip Backflip Script (in progress)

Jan 4th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 51.47 KB | None | 0 0
  1. itools = dofile('lib_input_tools.lua')
  2. core = dofile('lib_core.lua')
  3.  
  4. N = 15 -- number of visual frames to advance before assuming link does not clip out of bounds
  5. M = 30 -- number of visual frames to advance before assuming link does not land out of bounds
  6.  
  7. function i_advance(amount)
  8.     for i = 1, amount, 1 do
  9.         itools.iframe_advance()
  10.     end
  11. end
  12.  
  13. function v_advance(amount)
  14.     for i = 1, amount, 1 do
  15.         itools.vframe_advance()
  16.     end
  17. end
  18.  
  19. function v_advance_press_A(amount)
  20.     for i = 1, amount, 1 do
  21.         itools.vframe_advance({['A']=true})
  22.     end
  23. end
  24.  
  25. function v_advance_press_Z(amount)
  26.     for i = 1, amount, 1 do
  27.         itools.vframe_advance({['Z']=true})
  28.     end
  29. end
  30.  
  31. function v_advance_press_R(amount)
  32.     for i = 1, amount, 1 do
  33.         itools.vframe_advance({['R']=true})
  34.     end
  35. end
  36.  
  37. function v_advance_hold_up(amount)
  38.     for i = 1, amount, 1 do
  39.         itools.vframe_advance({['X Axis']=0,['Y Axis']=127})
  40.     end
  41. end
  42.  
  43. function v_advance_hold_up_and_target(amount)
  44.     for i = 1, amount, 1 do
  45.         itools.vframe_advance({['X Axis']=0,['Y Axis']=127,['Z']=true})
  46.     end
  47. end
  48.  
  49. function v_advance_hold_down_and_target(amount)
  50.     for i = 1, amount, 1 do
  51.         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['Z']=true})
  52.     end
  53. end
  54.  
  55. function v_advance_hold_right(amount)
  56.     for i = 1, amount, 1 do
  57.         itools.vframe_advance({['X Axis']=127,['Y Axis']=0})
  58.     end
  59. end
  60.  
  61. function v_advance_hold_right_and_target(amount)
  62.     for i = 1, amount, 1 do
  63.         itools.vframe_advance({['X Axis']=127,['Y Axis']=0,['Z']=true})
  64.     end
  65. end
  66.  
  67. function set_down_isg_targeted()
  68.  
  69.     -- set down a bomb (on C-Down) and get isg
  70.     -- This takes a total of 42 visual frames
  71.    
  72.     itools.vframe_advance({['C Down']=true})
  73.     itools.clear_inputs()
  74.    
  75.     v_advance(1)
  76.     itools.vframe_advance({['A']=true})
  77.     itools.clear_inputs()
  78.    
  79.     v_advance_press_R(12)
  80.     itools.vframe_advance({['R']=true,['B']=true})
  81.     itools.clear_inputs()
  82.    
  83.     v_advance_press_R(6)
  84.     itools.vframe_advance({['R']=true,['A']=true})
  85.     itools.clear_inputs()
  86.    
  87.     v_advance_press_Z(19)
  88.     itools.clear_inputs()
  89.    
  90.     -- can perform the first input to walk somewhere (for example) on the next frame
  91.    
  92.  
  93. end
  94.  
  95. function shield_drop_isg()
  96.  
  97.     -- frame perfectly shield drop a bomb (on C-Down) and get isg off of it
  98.     -- This takes a total of 34 visual frames
  99.    
  100.     itools.vframe_advance({['C Down']=true})
  101.     itools.clear_inputs()
  102.    
  103.     v_advance(2)
  104.     v_advance_press_R(4)
  105.    
  106.     itools.vframe_advance({['R']=true,['B']=true})
  107.     itools.clear_inputs()
  108.    
  109.     v_advance_press_R(6)
  110.     itools.vframe_advance({['R']=true,['A']=true})
  111.     itools.clear_inputs()
  112.    
  113.     v_advance(19)
  114.    
  115.     -- can perform the first input to walk somewhere (for example) on the next frame
  116.  
  117. end
  118.  
  119.  
  120. -- Define functions to perform each movement option (except for 'Nothing')
  121.  
  122. -- Movement_Options = ['Untargeted Horizontal Slash',
  123. -- 'Untargeted Horizontal Slash, Shield', 'Targeted Vertical Slash', 'Targeted Vertical Slash, Untarget ASAP',
  124. -- 'Untargeted Right Slash', 'Untargeted Right Slash, Shield', 'Targeted Forward Thrust',
  125. -- 'Targeted Forward Thrust, Untarget ASAP', 'Nothing', 'Dry Roll']
  126.  
  127.  
  128.  
  129. function Untargeted_Horizontal_Slash()
  130.    
  131.     itools.clear_inputs()
  132.    
  133.     v_advance(2)
  134.    
  135.     itools.vframe_advance({['B']=true})
  136.    
  137.     itools.clear_inputs()
  138.    
  139.     v_advance(15)
  140.    
  141. end
  142.  
  143. function Untargeted_Horizontal_Slash_Shield()
  144.    
  145.     itools.clear_inputs()
  146.    
  147.     itools.vframe_advance()
  148.    
  149.     itools.vframe_advance({['B']=true})
  150.    
  151.     itools.clear_inputs()
  152.    
  153.     v_advance_press_R(10)
  154.    
  155.     itools.clear_inputs()
  156.    
  157.     v_advance(8)
  158.    
  159. end
  160.  
  161. function Targeted_Vertical_Slash()
  162.    
  163.     itools.clear_inputs()
  164.    
  165.     itools.vframe_advance()
  166.    
  167.     itools.vframe_advance({['B']=true, ['Z']=true})
  168.    
  169.     v_advance_press_Z(8)
  170.    
  171.     itools.clear_inputs()
  172.    
  173.     v_advance(7)
  174.    
  175.     itools.clear_inputs()
  176.    
  177.     itools.vframe_advance()
  178. end
  179.  
  180. function Targeted_Vertical_Slash_Untarget_ASAP()
  181.    
  182.     itools.clear_inputs()
  183.    
  184.     itools.vframe_advance()
  185.    
  186.     itools.vframe_advance({['B']=true, ['Z']=true})
  187.    
  188.     itools.clear_inputs()
  189.    
  190.     v_advance(14)
  191.    
  192. end
  193.  
  194. function Untargeted_Right_Slash()
  195.    
  196.     itools.clear_inputs()
  197.    
  198.     itools.vframe_advance()
  199.    
  200.     itools.vframe_advance({['Z']=true})
  201.    
  202.     itools.clear_inputs()
  203.    
  204.     v_advance(5)
  205.    
  206.     itools.vframe_advance({['X Axis']=127,['Y Axis']=0,['B']=true})
  207.    
  208.     itools.clear_inputs()
  209.    
  210.     v_advance(17)
  211.    
  212. end
  213.  
  214. function Untargeted_Right_Slash_Shield()
  215.    
  216.     itools.clear_inputs()
  217.    
  218.     itools.vframe_advance()
  219.    
  220.     itools.vframe_advance({['Z']=true})
  221.    
  222.     itools.clear_inputs()
  223.    
  224.     v_advance(5)
  225.    
  226.     itools.vframe_advance({['X Axis']=127,['Y Axis']=0,['B']=true})
  227.    
  228.     itools.clear_inputs()
  229.    
  230.     v_advance_press_R(9)
  231.    
  232.     itools.clear_inputs()
  233.    
  234.     v_advance(8)
  235.    
  236. end
  237.  
  238. function Targeted_Forward_Thrust()
  239.    
  240.     itools.clear_inputs()
  241.    
  242.     itools.vframe_advance()
  243.    
  244.     itools.vframe_advance()
  245.    
  246.     itools.vframe_advance({['Z']=true})
  247.    
  248.     itools.clear_inputs()
  249.    
  250.     v_advance(5)
  251.    
  252.     itools.vframe_advance({['X Axis']=0,['Y Axis']=127,['B']=true,['Z']=true})
  253.    
  254.     itools.clear_inputs()
  255.    
  256.     v_advance_press_Z(8)
  257.    
  258.     itools.clear_inputs()
  259.    
  260.     v_advance(5)
  261.    
  262. end
  263.  
  264. function Targeted_Forward_Thrust_Untarget_ASAP()
  265.    
  266.     itools.clear_inputs()
  267.    
  268.     itools.vframe_advance()
  269.    
  270.     itools.vframe_advance({['Z']=true})
  271.    
  272.     itools.clear_inputs()
  273.    
  274.     v_advance(5)
  275.    
  276.     itools.vframe_advance({['X Axis']=0,['Y Axis']=127,['B']=true,['Z']=true})
  277.    
  278.     itools.clear_inputs()
  279.    
  280.     v_advance(12)
  281.    
  282. end
  283.  
  284. function Dry_Roll()
  285.    
  286.     itools.clear_inputs()
  287.    
  288.     v_advance_press_Z(1)
  289.     itools.vframe_advance({['Z']=true, ['A']=true})
  290.     itools.clear_inputs()
  291.    
  292.     v_advance(12)
  293.    
  294. end
  295.  
  296. Movement_Options = {'Untargeted Horizontal Slash', 'Untargeted Horizontal Slash, Shield', 'Targeted Vertical Slash', 'Targeted Vertical Slash, Untarget ASAP','Untargeted Right Slash', 'Untargeted Right Slash, Shield', 'Targeted Forward Thrust', 'Targeted Forward Thrust, Untarget ASAP', 'Nothing', 'Dry Roll'}
  297. Directions = {'Up', 'Up + Target', 'Right', 'Right + Target'}
  298.  
  299. file_write = io.open('Bank Clip Backflip Exit Shop Angle Data.txt', 'w+')
  300.  
  301. Clip_Exists = false
  302. Setup_Exists = false
  303. Line_Count = 1
  304.  
  305.  
  306. for i = 1, table.getn(Movement_Options), 1 do
  307.    
  308.     print('i: ' .. i .. '    Clip Exists ' .. tostring(Clip_Exists) .. '    Setup Exists ' .. tostring(Setup_Exists))
  309.    
  310.     option = Movement_Options[i]
  311.    
  312.     itools.clear_inputs()
  313.  
  314.     --- load save state (5)
  315.     itools.load_state(5)
  316.    
  317.     --- Perform the chosen movement option (unless it is 'Nothing')
  318.    
  319.     if option == 'Untargeted Horizontal Slash' then
  320.         Untargeted_Horizontal_Slash()
  321.     elseif option == 'Untargeted Horizontal Slash, Shield' then
  322.         Untargeted_Horizontal_Slash_Shield()
  323.     elseif option == 'Targeted Vertical Slash' then
  324.         Targeted_Vertical_Slash()
  325.     elseif option == 'Targeted Vertical Slash, Untarget ASAP' then
  326.         Targeted_Vertical_Slash_Untarget_ASAP()
  327.     elseif option == 'Untargeted Right Slash' then
  328.         Untargeted_Right_Slash()
  329.     elseif option == 'Untargeted Right Slash, Shield' then
  330.         Untargeted_Right_Slash_Shield()
  331.     elseif option == 'Targeted Forward Thrust' then
  332.         Targeted_Forward_Thrust()
  333.     elseif option == 'Targeted Forward Thrust, Untarget ASAP' then
  334.         Targeted_Forward_Thrust_Untarget_ASAP()
  335.     elseif option == 'Dry Roll' then
  336.         Dry_Roll()
  337.     end
  338.    
  339.     --- Get ISG
  340.     set_down_isg_targeted()
  341.    
  342.     --- Create a Save State
  343.     itools.save_state(6)
  344.    
  345.     for j = 1, table.getn(Directions), 1 do
  346.        
  347.         direction = Directions[j]
  348.        
  349.         ---------------------------------------------------------------------------------------------------
  350.        
  351.         if direction == 'Up' then
  352.             --- Test each frame of the backflip
  353.             for k = 2, 12, 1 do
  354.                
  355.                 print('(' .. i .. ', ' .. j .. ', ' .. k .. ')')
  356.                
  357.                 itools.clear_inputs()
  358.                 --- Load new save
  359.                 itools.load_state(6)
  360.                
  361.                 Clip_Successful_14 = false
  362.                 Clip_Successful_15 = false
  363.                 Setup_Successful_14 = false
  364.                 Setup_Successful_15 = false
  365.            
  366.                 ----- First find out how many frames to reach -2 Y Velocity
  367.                 ----- Use this to determine when to initially backflip
  368.                 ----- Try two timings: -14 Y Velocity and -15 Y Velocity
  369.                
  370.                 --- Shield drop the bomb and backflip
  371.                 itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  372.                 itools.clear_inputs()
  373.                
  374.                 --- For each frame of the backflip
  375.                 v_advance_hold_down_and_target(k)
  376.                 itools.clear_inputs()
  377.                
  378.                 found_y_velocity = false
  379.                 reach_y_velocity_time = 0
  380.                 Not_On_Banker = false
  381.                 while found_y_velocity == false and Not_On_Banker == false do
  382.                    
  383.                     reach_y_velocity_time = reach_y_velocity_time + 1
  384.                     v_advance_hold_up(1)
  385.                    
  386.                     Y_Velocity = core.read_float_be(0x3FFE18,'RDRAM')
  387.                     Y_Position = core.read_float_be(0x3FFDD8,'RDRAM')
  388.                     if Y_Velocity == -2 then
  389.                         found_y_velocity = true
  390.                     end
  391.                    
  392.                     if reach_y_velocity_time >= 20 and Y_Position ~= 133 then
  393.                         Not_On_Banker = true
  394.                     end
  395.                    
  396.                 end
  397.                
  398.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 12 to get to -14 y velocity. 32 - 13 = 19
  399.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 13 to get to -15 y velocity. 32 - 14 = 18
  400.                
  401.                 Backflip_Wait_Time_14 = 19 - k - reach_y_velocity_time
  402.                 Backflip_Wait_Time_15 = 18 - k - reach_y_velocity_time
  403.                 print(reach_y_velocity_time)
  404.                
  405.                 --- Ensure you are on the banker
  406.                 if Not_On_Banker == false and Backflip_Wait_Time_14 >= 0 then
  407.                    
  408.                     itools.clear_inputs()
  409.                     --- Load the newly created state (6)
  410.                     itools.load_state(6)
  411.                    
  412.                     ---------- First Test -14 Y Velocity
  413.                    
  414.                     v_advance_press_Z(Backflip_Wait_Time_14)
  415.                    
  416.                     --- Shield drop the bomb and backflip
  417.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  418.                     itools.clear_inputs()
  419.                    
  420.                     --- For each frame of the backflip
  421.                     v_advance_hold_down_and_target(k)
  422.                     itools.clear_inputs()
  423.                    
  424.                     --- Hold Up Until -11 Y Velocity
  425.                     v_advance_hold_up(reach_y_velocity_time + 9)
  426.                     itools.clear_inputs()
  427.                    
  428.                     v_advance_press_R(2)
  429.                     itools.clear_inputs()
  430.                    
  431.                     v_advance(1)
  432.                    
  433.                     --- Now have -14 Y Velocity unless Midframe Change
  434.                    
  435.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  436.                    
  437.                     i_advance(1)
  438.                    
  439.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  440.                    
  441.                     if Movement_Angle_1 == Movement_Angle_2 then
  442.                        
  443.                         Midframe_Change_14 = false
  444.                        
  445.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  446.                        
  447.                         Midframe_Change_14 = true
  448.                    
  449.                     end
  450.                    
  451.                     i_advance(2)
  452.                    
  453.                     --- Check if link clips
  454.                
  455.                     for i = 1, N, 1 do
  456.                    
  457.                         itools.vframe_advance()
  458.                        
  459.                         -- Check if link's Y Position is less than 60
  460.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  461.                            
  462.                             Clip_Successful_14 = true
  463.                             Clip_Exists = true
  464.                             print('Clip (-14 Y Velocity)')
  465.                            
  466.                             break
  467.                            
  468.                         end
  469.                        
  470.                     end
  471.                    
  472.                     ---------- If clip is successful, check if JS can land
  473.                    
  474.                     if Clip_Successful_14 == true then
  475.                        
  476.                         itools.load_state(6)
  477.                        
  478.                         v_advance_press_Z(Backflip_Wait_Time_14)
  479.                        
  480.                         --- Shield drop the bomb and backflip
  481.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  482.                         itools.clear_inputs()
  483.                        
  484.                         --- For each frame of the backflip
  485.                         v_advance_hold_down_and_target(k)
  486.                         itools.clear_inputs()
  487.                        
  488.                         --- Hold Up Until -11 Y Velocity
  489.                         v_advance_hold_up(reach_y_velocity_time + 9)
  490.                         itools.clear_inputs()
  491.                        
  492.                         v_advance_press_R(2)
  493.                         itools.clear_inputs()
  494.                        
  495.                         v_advance(1)
  496.                        
  497.                         --- Now have -14 Y Velocity unless Midframe Change
  498.  
  499.                         if Midframe_Change_14 == true then
  500.                            
  501.                             i_advance(2)
  502.                            
  503.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  504.            
  505.                             for j = 1, M, 1 do
  506.                            
  507.                                 itools.vframe_advance()
  508.                                
  509.                                 -- Check if link's Y Position is 133, which is the height of the bank
  510.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  511.                                    
  512.                                     Setup_Successful_14 = true
  513.                                     Setup_Exists = true
  514.                                     print('SUCCESS!!!!!!!!!!!!!!')
  515.                                    
  516.                                     break
  517.                                    
  518.                                 end
  519.                                
  520.                             end
  521.                            
  522.                         elseif Midframe_Change_14 == false then
  523.                            
  524.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  525.                            
  526.                             for j = 1, M, 1 do
  527.                            
  528.                                 itools.vframe_advance()
  529.                                
  530.                                 -- Check if link's Y Position is 133, which is the height of the bank
  531.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  532.                                    
  533.                                     Setup_Successful_14 = true
  534.                                     Setup_Exists = true
  535.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  536.                                    
  537.                                     break
  538.                                    
  539.                                 end
  540.                                
  541.                             end
  542.                                
  543.                         end
  544.                        
  545.                     end
  546.                    
  547.                     ---------- Now Test -15 Y Velocity
  548.                     itools.clear_inputs()
  549.                     --- Load the newly created state (6)
  550.                     itools.load_state(6)
  551.                    
  552.                     v_advance_press_Z(Backflip_Wait_Time_15)
  553.                    
  554.                     --- Shield drop the bomb and backflip
  555.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  556.                     itools.clear_inputs()
  557.                    
  558.                     --- For each frame of the backflip
  559.                     v_advance_hold_down_and_target(k)
  560.                     itools.clear_inputs()
  561.                    
  562.                     --- Hold Up Until -11 Y Velocity
  563.                     v_advance_hold_up(reach_y_velocity_time + 10)
  564.                     itools.clear_inputs()
  565.                    
  566.                     v_advance_press_R(2)
  567.                     itools.clear_inputs()
  568.                    
  569.                     v_advance(1)
  570.                    
  571.                     --- Now have -15 Y Velocity unless Midframe Change
  572.                    
  573.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  574.                    
  575.                     i_advance(1)
  576.                    
  577.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  578.                    
  579.                     if Movement_Angle_1 == Movement_Angle_2 then
  580.                        
  581.                         Midframe_Change_15 = false
  582.                        
  583.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  584.                        
  585.                         Midframe_Change_15 = true
  586.                    
  587.                     end
  588.                    
  589.                     i_advance(2)
  590.                    
  591.                     --- Check if link clips
  592.                
  593.                     for i = 1, N, 1 do
  594.                    
  595.                         itools.vframe_advance()
  596.                        
  597.                         -- Check if link's Y Position is less than 60
  598.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  599.                            
  600.                             Clip_Successful_15 = true
  601.                             Clip_Exists = true
  602.                             print('Clip (-15 Y Velocity)')
  603.                            
  604.                             break
  605.                            
  606.                         end
  607.                        
  608.                     end
  609.                    
  610.                     ---------- If clip is successful, check if JS can land
  611.                    
  612.                     if Clip_Successful_15 == true then
  613.                        
  614.                         itools.load_state(6)
  615.                        
  616.                         v_advance_press_Z(Backflip_Wait_Time_15)
  617.                        
  618.                         --- Shield drop the bomb and backflip
  619.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  620.                         itools.clear_inputs()
  621.                        
  622.                         --- For each frame of the backflip
  623.                         v_advance_hold_down_and_target(k)
  624.                         itools.clear_inputs()
  625.                        
  626.                         --- Hold Up Until -11 Y Velocity
  627.                         v_advance_hold_up(reach_y_velocity_time + 10)
  628.                         itools.clear_inputs()
  629.                        
  630.                         v_advance_press_R(2)
  631.                         itools.clear_inputs()
  632.                        
  633.                         v_advance(1)
  634.                        
  635.                         --- Now have -15 Y Velocity unless Midframe Change
  636.  
  637.                         if Midframe_Change_15 == true then
  638.                            
  639.                             i_advance(2)
  640.                            
  641.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  642.            
  643.                             for j = 1, M, 1 do
  644.                            
  645.                                 itools.vframe_advance()
  646.                                
  647.                                 -- Check if link's Y Position is 133, which is the height of the bank
  648.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  649.                                    
  650.                                     Setup_Successful_15 = true
  651.                                     Setup_Exists = true
  652.                                     print('SUCCESS!!!!!!!!!!!!!!')
  653.                                    
  654.                                     break
  655.                                    
  656.                                 end
  657.                                
  658.                             end
  659.                            
  660.                         elseif Midframe_Change_15 == false then
  661.                            
  662.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  663.                            
  664.                             for j = 1, M, 1 do
  665.                            
  666.                                 itools.vframe_advance()
  667.                                
  668.                                 -- Check if link's Y Position is 133, which is the height of the bank
  669.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  670.                                    
  671.                                     Setup_Successful_15 = true
  672.                                     Setup_Exists = true
  673.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  674.                                    
  675.                                     break
  676.                                    
  677.                                 end
  678.                                
  679.                             end
  680.                                
  681.                         end
  682.                        
  683.                     end
  684.                    
  685.                     file_write:write(option .. '     ' .. direction .. '\n')
  686.                     file_write:write(k .. ' On Bank? Yes\n')
  687.                     if Clip_Successful_14 == true then
  688.                         file_write:write(k .. '.14 Clips? Yes\n')
  689.                     elseif Clip_Successful_14 == false then
  690.                         file_write:write(k .. '.14 Clips? No\n')
  691.                     end
  692.                     if Setup_Successful_14 == true then
  693.                         file_write:write(k .. '.14 Lands? Yes\n')
  694.                     elseif Setup_Successful_14 == false then
  695.                         file_write:write(k .. '.14 Lands? No\n')
  696.                     end
  697.                     if Midframe_Change_14 == true then
  698.                         file_write:write(k .. '.14 Midframe Change? Yes\n')
  699.                     elseif Midframe_Change_14 == false then
  700.                         file_write:write(k .. '.14 Midframe Change? No\n')
  701.                     end
  702.                     file_write:write(k .. '.14 Backflip Wait Time:' .. Backflip_Wait_Time_14 .. '\n')
  703.                    
  704.                     if Clip_Successful_15 == true then
  705.                         file_write:write(k .. '.15 Clips? Yes\n')
  706.                     elseif Clip_Successful_15 == false then
  707.                         file_write:write(k .. '.15 Clips? No\n')
  708.                     end
  709.                     if Setup_Successful_15 == true then
  710.                         file_write:write(k .. '.15 Lands? Yes\n')
  711.                     elseif Setup_Successful_15 == false then
  712.                         file_write:write(k .. '.15 Lands? No\n')
  713.                     end
  714.                     if Midframe_Change_15 == true then
  715.                         file_write:write(k .. '.15 Midframe Change? Yes\n')
  716.                     elseif Midframe_Change_15 == false then
  717.                         file_write:write(k .. '.15 Midframe Change? No\n')
  718.                     end
  719.                     file_write:write(k .. '.15 Backflip Wait Time:' .. Backflip_Wait_Time_15 .. '\n')
  720.                     file_write:write('---\n')
  721.                    
  722.                    
  723.                 elseif Not_On_Banker == true then
  724.                    
  725.                     file_write:write(option .. '     ' .. direction .. '\n')
  726.                     file_write:write(k .. ' On Bank? No\n')
  727.                     file_write:write(k .. '.14 Clips? N/A\n')
  728.                     file_write:write(k .. '.14 Lands? N/A\n')
  729.                     file_write:write(k .. '.14 Midframe Change? N/A\n')
  730.                     file_write:write(k .. '.14 Backflip Wait Time: N/A\n')
  731.                     file_write:write(k .. '.15 Clips? N/A\n')
  732.                     file_write:write(k .. '.15 Lands? N/A\n')
  733.                     file_write:write(k .. '.15 Midframe Change? N/A\n')
  734.                     file_write:write(k .. '.15 Backflip Wait Time: N/A\n')
  735.                     file_write:write('---\n')
  736.                    
  737.                 end
  738.             end
  739.  
  740.         elseif direction == 'Up + Target' then
  741.             --- Test each frame of the backflip
  742.             for k = 2, 12, 1 do
  743.                
  744.                 print('(' .. i .. ', ' .. j .. ', ' .. k .. ')')
  745.                
  746.                 itools.clear_inputs()
  747.                 --- Load new save
  748.                 itools.load_state(6)
  749.                
  750.                 Clip_Successful_14 = false
  751.                 Clip_Successful_15 = false
  752.                 Setup_Successful_14 = false
  753.                 Setup_Successful_15 = false
  754.            
  755.                 ----- First find out how many frames to reach -2 Y Velocity
  756.                 ----- Use this to determine when to initially backflip
  757.                 ----- Try two timings: -14 Y Velocity and -15 Y Velocity
  758.                
  759.                 --- Shield drop the bomb and backflip
  760.                 itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  761.                 itools.clear_inputs()
  762.                
  763.                 --- For each frame of the backflip
  764.                 v_advance_hold_down_and_target(k)
  765.                 itools.clear_inputs()
  766.                
  767.                 found_y_velocity = false
  768.                 reach_y_velocity_time = 0
  769.                 Not_On_Banker = false
  770.                 while found_y_velocity == false and Not_On_Banker == false do
  771.                    
  772.                     reach_y_velocity_time = reach_y_velocity_time + 1
  773.                     v_advance_hold_up_and_target(1)
  774.                    
  775.                     Y_Velocity = core.read_float_be(0x3FFE18,'RDRAM')
  776.                     Y_Position = core.read_float_be(0x3FFDD8,'RDRAM')
  777.                     if Y_Velocity == -2 then
  778.                         found_y_velocity = true
  779.                     end
  780.                    
  781.                     if reach_y_velocity_time >= 20 and Y_Position ~= 133 then
  782.                         Not_On_Banker = true
  783.                     end
  784.                    
  785.                 end
  786.                
  787.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 12 to get to -14 y velocity. 32 - 13 = 19
  788.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 13 to get to -15 y velocity. 32 - 14 = 18
  789.                
  790.                 Backflip_Wait_Time_14 = 19 - k - reach_y_velocity_time
  791.                 Backflip_Wait_Time_15 = 18 - k - reach_y_velocity_time
  792.                
  793.                 --- Ensure you are on the banker
  794.                 if Not_On_Banker == false and Backflip_Wait_Time_14 >= 0 then
  795.                    
  796.                     itools.clear_inputs()
  797.                     --- Load the newly created state (6)
  798.                     itools.load_state(6)
  799.                    
  800.                     ---------- First Test -14 Y Velocity
  801.                    
  802.                     v_advance_press_Z(Backflip_Wait_Time_14)
  803.                    
  804.                     --- Shield drop the bomb and backflip
  805.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  806.                     itools.clear_inputs()
  807.                    
  808.                     --- For each frame of the backflip
  809.                     v_advance_hold_down_and_target(k)
  810.                     itools.clear_inputs()
  811.                    
  812.                     --- Hold Up and Target Until -11 Y Velocity
  813.                     v_advance_hold_up_and_target(reach_y_velocity_time + 9)
  814.                     itools.clear_inputs()
  815.                    
  816.                     v_advance_press_R(2)
  817.                     itools.clear_inputs()
  818.                    
  819.                     v_advance(1)
  820.                    
  821.                     --- Now have -14 Y Velocity unless Midframe Change
  822.                    
  823.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  824.                    
  825.                     i_advance(1)
  826.                    
  827.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  828.                    
  829.                     if Movement_Angle_1 == Movement_Angle_2 then
  830.                        
  831.                         Midframe_Change_14 = false
  832.                        
  833.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  834.                        
  835.                         Midframe_Change_14 = true
  836.                    
  837.                     end
  838.                    
  839.                     i_advance(2)
  840.                    
  841.                     --- Check if link clips
  842.                
  843.                     for i = 1, N, 1 do
  844.                    
  845.                         itools.vframe_advance()
  846.                        
  847.                         -- Check if link's Y Position is less than 60
  848.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  849.                            
  850.                             Clip_Successful_14 = true
  851.                             Clip_Exists = true
  852.                             print('Clip (-14 Y Velocity)')
  853.                            
  854.                             break
  855.                            
  856.                         end
  857.                        
  858.                     end
  859.                    
  860.                     ---------- If clip is successful, check if JS can land
  861.                    
  862.                     if Clip_Successful_14 == true then
  863.                        
  864.                         itools.load_state(6)
  865.                        
  866.                         v_advance_press_Z(Backflip_Wait_Time_14)
  867.                        
  868.                         --- Shield drop the bomb and backflip
  869.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  870.                         itools.clear_inputs()
  871.                        
  872.                         --- For each frame of the backflip
  873.                         v_advance_hold_down_and_target(k)
  874.                         itools.clear_inputs()
  875.                        
  876.                         --- Hold Up and Target Until -11 Y Velocity
  877.                         v_advance_hold_up_and_target(reach_y_velocity_time + 9)
  878.                         itools.clear_inputs()
  879.                        
  880.                         v_advance_press_R(2)
  881.                         itools.clear_inputs()
  882.                        
  883.                         v_advance(1)
  884.                        
  885.                         --- Now have -14 Y Velocity unless Midframe Change
  886.  
  887.                         if Midframe_Change_14 == true then
  888.                            
  889.                             i_advance(2)
  890.                            
  891.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  892.            
  893.                             for j = 1, M, 1 do
  894.                            
  895.                                 itools.vframe_advance()
  896.                                
  897.                                 -- Check if link's Y Position is 133, which is the height of the bank
  898.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  899.                                    
  900.                                     Setup_Successful_14 = true
  901.                                     Setup_Exists = true
  902.                                     print('SUCCESS!!!!!!!!!!!!!!')
  903.                                    
  904.                                     break
  905.                                    
  906.                                 end
  907.                                
  908.                             end
  909.                            
  910.                         elseif Midframe_Change_14 == false then
  911.                            
  912.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  913.                            
  914.                             for j = 1, M, 1 do
  915.                            
  916.                                 itools.vframe_advance()
  917.                                
  918.                                 -- Check if link's Y Position is 133, which is the height of the bank
  919.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  920.                                    
  921.                                     Setup_Successful_14 = true
  922.                                     Setup_Exists = true
  923.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  924.                                    
  925.                                     break
  926.                                    
  927.                                 end
  928.                                
  929.                             end
  930.                                
  931.                         end
  932.                        
  933.                     end
  934.                    
  935.                     ---------- Now Test -15 Y Velocity
  936.                     itools.clear_inputs()
  937.                     --- Load the newly created state (6)
  938.                     itools.load_state(6)
  939.                    
  940.                     v_advance_press_Z(Backflip_Wait_Time_15)
  941.                    
  942.                     --- Shield drop the bomb and backflip
  943.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  944.                     itools.clear_inputs()
  945.                    
  946.                     --- For each frame of the backflip
  947.                     v_advance_hold_down_and_target(k)
  948.                     itools.clear_inputs()
  949.                    
  950.                     --- Hold Up and Target Until -11 Y Velocity
  951.                     v_advance_hold_up_and_target(reach_y_velocity_time + 10)
  952.                     itools.clear_inputs()
  953.                    
  954.                     v_advance_press_R(2)
  955.                     itools.clear_inputs()
  956.                    
  957.                     v_advance(1)
  958.                    
  959.                     --- Now have -15 Y Velocity unless Midframe Change
  960.                    
  961.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  962.                    
  963.                     i_advance(1)
  964.                    
  965.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  966.                    
  967.                     if Movement_Angle_1 == Movement_Angle_2 then
  968.                        
  969.                         Midframe_Change_15 = false
  970.                        
  971.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  972.                        
  973.                         Midframe_Change_15 = true
  974.                    
  975.                     end
  976.                    
  977.                     i_advance(2)
  978.                    
  979.                     --- Check if link clips
  980.                
  981.                     for i = 1, N, 1 do
  982.                    
  983.                         itools.vframe_advance()
  984.                        
  985.                         -- Check if link's Y Position is less than 60
  986.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  987.                            
  988.                             Clip_Successful_15 = true
  989.                             Clip_Exists = true
  990.                             print('Clip (-15 Y Velocity)')
  991.                            
  992.                             break
  993.                            
  994.                         end
  995.                        
  996.                     end
  997.                    
  998.                     ---------- If clip is successful, check if JS can land
  999.                    
  1000.                     if Clip_Successful_15 == true then
  1001.                        
  1002.                         itools.load_state(6)
  1003.                        
  1004.                         v_advance_press_Z(Backflip_Wait_Time_15)
  1005.                        
  1006.                         --- Shield drop the bomb and backflip
  1007.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1008.                         itools.clear_inputs()
  1009.                        
  1010.                         --- For each frame of the backflip
  1011.                         v_advance_hold_down_and_target(k)
  1012.                         itools.clear_inputs()
  1013.                        
  1014.                         --- Hold Up Until -12 Y Velocity
  1015.                         v_advance_hold_up_and_target(reach_y_velocity_time + 10)
  1016.                         itools.clear_inputs()
  1017.                        
  1018.                         v_advance_press_R(2)
  1019.                         itools.clear_inputs()
  1020.                        
  1021.                         v_advance(1)
  1022.                        
  1023.                         --- Now have -15 Y Velocity unless Midframe Change
  1024.  
  1025.                         if Midframe_Change_15 == true then
  1026.                            
  1027.                             i_advance(2)
  1028.                            
  1029.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1030.            
  1031.                             for j = 1, M, 1 do
  1032.                            
  1033.                                 itools.vframe_advance()
  1034.                                
  1035.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1036.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1037.                                    
  1038.                                     Setup_Successful_15 = true
  1039.                                     Setup_Exists = true
  1040.                                     print('SUCCESS!!!!!!!!!!!!!!')
  1041.                                    
  1042.                                     break
  1043.                                    
  1044.                                 end
  1045.                                
  1046.                             end
  1047.                            
  1048.                         elseif Midframe_Change_15 == false then
  1049.                            
  1050.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1051.                            
  1052.                             for j = 1, M, 1 do
  1053.                            
  1054.                                 itools.vframe_advance()
  1055.                                
  1056.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1057.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1058.                                    
  1059.                                     Setup_Successful_15 = true
  1060.                                     Setup_Exists = true
  1061.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  1062.                                    
  1063.                                     break
  1064.                                    
  1065.                                 end
  1066.                                
  1067.                             end
  1068.                                
  1069.                         end
  1070.                        
  1071.                     end
  1072.                    
  1073.                     file_write:write(option .. '     ' .. direction .. '\n')
  1074.                     file_write:write(k .. ' On Bank? Yes\n')
  1075.                     if Clip_Successful_14 == true then
  1076.                         file_write:write(k .. '.14 Clips? Yes\n')
  1077.                     elseif Clip_Successful_14 == false then
  1078.                         file_write:write(k .. '.14 Clips? No\n')
  1079.                     end
  1080.                     if Setup_Successful_14 == true then
  1081.                         file_write:write(k .. '.14 Lands? Yes\n')
  1082.                     elseif Setup_Successful_14 == false then
  1083.                         file_write:write(k .. '.14 Lands? No\n')
  1084.                     end
  1085.                     if Midframe_Change_14 == true then
  1086.                         file_write:write(k .. '.14 Midframe Change? Yes\n')
  1087.                     elseif Midframe_Change_14 == false then
  1088.                         file_write:write(k .. '.14 Midframe Change? No\n')
  1089.                     end
  1090.                     file_write:write(k .. '.14 Backflip Wait Time:' .. Backflip_Wait_Time_14 .. '\n')
  1091.                    
  1092.                     if Clip_Successful_15 == true then
  1093.                         file_write:write(k .. '.15 Clips? Yes\n')
  1094.                     elseif Clip_Successful_15 == false then
  1095.                         file_write:write(k .. '.15 Clips? No\n')
  1096.                     end
  1097.                     if Setup_Successful_15 == true then
  1098.                         file_write:write(k .. '.15 Lands? Yes\n')
  1099.                     elseif Setup_Successful_15 == false then
  1100.                         file_write:write(k .. '.15 Lands? No\n')
  1101.                     end
  1102.                     if Midframe_Change_15 == true then
  1103.                         file_write:write(k .. '.15 Midframe Change? Yes\n')
  1104.                     elseif Midframe_Change_15 == false then
  1105.                         file_write:write(k .. '.15 Midframe Change? No\n')
  1106.                     end
  1107.                     file_write:write(k .. '.15 Backflip Wait Time:' .. Backflip_Wait_Time_15 .. '\n')
  1108.                     file_write:write('---\n')
  1109.                    
  1110.                    
  1111.                 elseif Not_On_Banker == true then
  1112.                    
  1113.                     file_write:write(option .. '     ' .. direction .. '\n')
  1114.                     file_write:write(k .. ' On Bank? No\n')
  1115.                     file_write:write(k .. '.14 Clips? N/A\n')
  1116.                     file_write:write(k .. '.14 Lands? N/A\n')
  1117.                     file_write:write(k .. '.14 Midframe Change? N/A\n')
  1118.                     file_write:write(k .. '.14 Backflip Wait Time: N/A\n')
  1119.                     file_write:write(k .. '.15 Clips? N/A\n')
  1120.                     file_write:write(k .. '.15 Lands? N/A\n')
  1121.                     file_write:write(k .. '.15 Midframe Change? N/A\n')
  1122.                     file_write:write(k .. '.15 Backflip Wait Time: N/A\n')
  1123.                     file_write:write('---\n')
  1124.                    
  1125.                 end
  1126.             end
  1127.            
  1128.         elseif direction == 'Right' then
  1129.             --- Test each frame of the backflip
  1130.             for k = 2, 12, 1 do
  1131.                
  1132.                 print('(' .. i .. ', ' .. j .. ', ' .. k .. ')')
  1133.                
  1134.                 itools.clear_inputs()
  1135.                 --- Load new save
  1136.                 itools.load_state(6)
  1137.                
  1138.                 Clip_Successful_14 = false
  1139.                 Clip_Successful_15 = false
  1140.                 Setup_Successful_14 = false
  1141.                 Setup_Successful_15 = false
  1142.            
  1143.                 ----- First find out how many frames to reach -2 Y Velocity
  1144.                 ----- Use this to determine when to initially backflip
  1145.                 ----- Try two timings: -14 Y Velocity and -15 Y Velocity
  1146.                
  1147.                 --- Shield drop the bomb and backflip
  1148.                 itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1149.                 itools.clear_inputs()
  1150.                
  1151.                 --- For each frame of the backflip
  1152.                 v_advance_hold_down_and_target(k)
  1153.                 itools.clear_inputs()
  1154.                
  1155.                 found_y_velocity = false
  1156.                 reach_y_velocity_time = 0
  1157.                 Not_On_Banker = false
  1158.                 while found_y_velocity == false and Not_On_Banker == false do
  1159.                    
  1160.                     reach_y_velocity_time = reach_y_velocity_time + 1
  1161.                     v_advance_hold_right(1)
  1162.                    
  1163.                     Y_Velocity = core.read_float_be(0x3FFE18,'RDRAM')
  1164.                     Y_Position = core.read_float_be(0x3FFDD8,'RDRAM')
  1165.                     if Y_Velocity == -2 then
  1166.                         found_y_velocity = true
  1167.                     end
  1168.                    
  1169.                     if reach_y_velocity_time >= 20 and Y_Position ~= 133 then
  1170.                         Not_On_Banker = true
  1171.                     end
  1172.                    
  1173.                 end
  1174.                
  1175.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 12 to get to -14 y velocity. 32 - 13 = 19
  1176.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 13 to get to -15 y velocity. 32 - 14 = 18
  1177.                
  1178.                 Backflip_Wait_Time_14 = 19 - k - reach_y_velocity_time
  1179.                 Backflip_Wait_Time_15 = 18 - k - reach_y_velocity_time
  1180.                
  1181.                 --- Ensure you are on the banker
  1182.                 if Not_On_Banker == false and Backflip_Wait_Time_14 >= 0 then
  1183.                    
  1184.                     itools.clear_inputs()
  1185.                     --- Load the newly created state (6)
  1186.                     itools.load_state(6)
  1187.                    
  1188.                     ---------- First Test -14 Y Velocity
  1189.                    
  1190.                     v_advance_press_Z(Backflip_Wait_Time_14)
  1191.                    
  1192.                     --- Shield drop the bomb and backflip
  1193.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1194.                     itools.clear_inputs()
  1195.                    
  1196.                     --- For each frame of the backflip
  1197.                     v_advance_hold_down_and_target(k)
  1198.                     itools.clear_inputs()
  1199.                    
  1200.                     --- Hold Right Until -11 Y Velocity
  1201.                     v_advance_hold_right(reach_y_velocity_time + 9)
  1202.                     itools.clear_inputs()
  1203.                    
  1204.                     v_advance_press_R(2)
  1205.                     itools.clear_inputs()
  1206.                    
  1207.                     v_advance(1)
  1208.                    
  1209.                     --- Now have -14 Y Velocity unless Midframe Change
  1210.                    
  1211.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  1212.                    
  1213.                     i_advance(1)
  1214.                    
  1215.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  1216.                    
  1217.                     if Movement_Angle_1 == Movement_Angle_2 then
  1218.                        
  1219.                         Midframe_Change_14 = false
  1220.                        
  1221.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  1222.                        
  1223.                         Midframe_Change_14 = true
  1224.                    
  1225.                     end
  1226.                    
  1227.                     i_advance(2)
  1228.                    
  1229.                     --- Check if link clips
  1230.                
  1231.                     for i = 1, N, 1 do
  1232.                    
  1233.                         itools.vframe_advance()
  1234.                        
  1235.                         -- Check if link's Y Position is less than 60
  1236.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  1237.                            
  1238.                             Clip_Successful_14 = true
  1239.                             Clip_Exists = true
  1240.                             print('Clip (-14 Y Velocity)')
  1241.                            
  1242.                             break
  1243.                            
  1244.                         end
  1245.                        
  1246.                     end
  1247.                    
  1248.                     ---------- If clip is successful, check if JS can land
  1249.                    
  1250.                     if Clip_Successful_14 == true then
  1251.                        
  1252.                         itools.load_state(6)
  1253.                        
  1254.                         v_advance_press_Z(Backflip_Wait_Time_14)
  1255.                        
  1256.                         --- Shield drop the bomb and backflip
  1257.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1258.                         itools.clear_inputs()
  1259.                        
  1260.                         --- For each frame of the backflip
  1261.                         v_advance_hold_down_and_target(k)
  1262.                         itools.clear_inputs()
  1263.                        
  1264.                         --- Hold Right Until -11 Y Velocity
  1265.                         v_advance_hold_right(reach_y_velocity_time + 9)
  1266.                         itools.clear_inputs()
  1267.                        
  1268.                         v_advance_press_R(2)
  1269.                         itools.clear_inputs()
  1270.                        
  1271.                         v_advance(1)
  1272.                        
  1273.                         --- Now have -14 Y Velocity unless Midframe Change
  1274.  
  1275.                         if Midframe_Change_14 == true then
  1276.                            
  1277.                             i_advance(2)
  1278.                            
  1279.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1280.            
  1281.                             for j = 1, M, 1 do
  1282.                            
  1283.                                 itools.vframe_advance()
  1284.                                
  1285.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1286.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1287.                                    
  1288.                                     Setup_Successful_14 = true
  1289.                                     Setup_Exists = true
  1290.                                     print('SUCCESS!!!!!!!!!!!!!!')
  1291.                                    
  1292.                                     break
  1293.                                    
  1294.                                 end
  1295.                                
  1296.                             end
  1297.                            
  1298.                         elseif Midframe_Change_14 == false then
  1299.                            
  1300.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1301.                            
  1302.                             for j = 1, M, 1 do
  1303.                            
  1304.                                 itools.vframe_advance()
  1305.                                
  1306.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1307.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1308.                                    
  1309.                                     Setup_Successful_14 = true
  1310.                                     Setup_Exists = true
  1311.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  1312.                                    
  1313.                                     break
  1314.                                    
  1315.                                 end
  1316.                                
  1317.                             end
  1318.                                
  1319.                         end
  1320.                        
  1321.                     end
  1322.                    
  1323.                     ---------- Now Test -15 Y Velocity
  1324.                     itools.clear_inputs()
  1325.                     --- Load the newly created state (6)
  1326.                     itools.load_state(6)
  1327.                    
  1328.                     v_advance_press_Z(Backflip_Wait_Time_15)
  1329.                    
  1330.                     --- Shield drop the bomb and backflip
  1331.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1332.                     itools.clear_inputs()
  1333.                    
  1334.                     --- For each frame of the backflip
  1335.                     v_advance_hold_down_and_target(k)
  1336.                     itools.clear_inputs()
  1337.                    
  1338.                     --- Hold Right Until -11 Y Velocity
  1339.                     v_advance_hold_right(reach_y_velocity_time + 10)
  1340.                     itools.clear_inputs()
  1341.                    
  1342.                     v_advance_press_R(2)
  1343.                     itools.clear_inputs()
  1344.                    
  1345.                     v_advance(1)
  1346.                    
  1347.                     --- Now have -15 Y Velocity unless Midframe Change
  1348.                    
  1349.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  1350.                    
  1351.                     i_advance(1)
  1352.                    
  1353.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  1354.                    
  1355.                     if Movement_Angle_1 == Movement_Angle_2 then
  1356.                        
  1357.                         Midframe_Change_15 = false
  1358.                        
  1359.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  1360.                        
  1361.                         Midframe_Change_15 = true
  1362.                    
  1363.                     end
  1364.                    
  1365.                     i_advance(2)
  1366.                    
  1367.                     --- Check if link clips
  1368.                
  1369.                     for i = 1, N, 1 do
  1370.                    
  1371.                         itools.vframe_advance()
  1372.                        
  1373.                         -- Check if link's Y Position is less than 60
  1374.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  1375.                            
  1376.                             Clip_Successful_15 = true
  1377.                             Clip_Exists = true
  1378.                             print('Clip (-15 Y Velocity)')
  1379.                            
  1380.                             break
  1381.                            
  1382.                         end
  1383.                        
  1384.                     end
  1385.                    
  1386.                     ---------- If clip is successful, check if JS can land
  1387.                    
  1388.                     if Clip_Successful_15 == true then
  1389.                        
  1390.                         itools.load_state(6)
  1391.                        
  1392.                         v_advance_press_Z(Backflip_Wait_Time_15)
  1393.                        
  1394.                         --- Shield drop the bomb and backflip
  1395.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1396.                         itools.clear_inputs()
  1397.                        
  1398.                         --- For each frame of the backflip
  1399.                         v_advance_hold_down_and_target(k)
  1400.                         itools.clear_inputs()
  1401.                        
  1402.                         --- Hold Right Until -12 Y Velocity
  1403.                         v_advance_hold_right(reach_y_velocity_time + 10)
  1404.                         itools.clear_inputs()
  1405.                        
  1406.                         v_advance_press_R(2)
  1407.                         itools.clear_inputs()
  1408.                        
  1409.                         v_advance(1)
  1410.                        
  1411.                         --- Now have -15 Y Velocity unless Midframe Change
  1412.  
  1413.                         if Midframe_Change_15 == true then
  1414.                            
  1415.                             i_advance(2)
  1416.                            
  1417.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1418.            
  1419.                             for j = 1, M, 1 do
  1420.                            
  1421.                                 itools.vframe_advance()
  1422.                                
  1423.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1424.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1425.                                    
  1426.                                     Setup_Successful_15 = true
  1427.                                     Setup_Exists = true
  1428.                                     print('SUCCESS!!!!!!!!!!!!!!')
  1429.                                    
  1430.                                     break
  1431.                                    
  1432.                                 end
  1433.                                
  1434.                             end
  1435.                            
  1436.                         elseif Midframe_Change_15 == false then
  1437.                            
  1438.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1439.                            
  1440.                             for j = 1, M, 1 do
  1441.                            
  1442.                                 itools.vframe_advance()
  1443.                                
  1444.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1445.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1446.                                    
  1447.                                     Setup_Successful_15 = true
  1448.                                     Setup_Exists = true
  1449.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  1450.                                    
  1451.                                     break
  1452.                                    
  1453.                                 end
  1454.                                
  1455.                             end
  1456.                                
  1457.                         end
  1458.                        
  1459.                     end
  1460.                    
  1461.                     file_write:write(option .. '     ' .. direction .. '\n')
  1462.                     file_write:write(k .. ' On Bank? Yes\n')
  1463.                     if Clip_Successful_14 == true then
  1464.                         file_write:write(k .. '.14 Clips? Yes\n')
  1465.                     elseif Clip_Successful_14 == false then
  1466.                         file_write:write(k .. '.14 Clips? No\n')
  1467.                     end
  1468.                     if Setup_Successful_14 == true then
  1469.                         file_write:write(k .. '.14 Lands? Yes\n')
  1470.                     elseif Setup_Successful_14 == false then
  1471.                         file_write:write(k .. '.14 Lands? No\n')
  1472.                     end
  1473.                     if Midframe_Change_14 == true then
  1474.                         file_write:write(k .. '.14 Midframe Change? Yes\n')
  1475.                     elseif Midframe_Change_14 == false then
  1476.                         file_write:write(k .. '.14 Midframe Change? No\n')
  1477.                     end
  1478.                     file_write:write(k .. '.14 Backflip Wait Time:' .. Backflip_Wait_Time_14 .. '\n')
  1479.                    
  1480.                     if Clip_Successful_15 == true then
  1481.                         file_write:write(k .. '.15 Clips? Yes\n')
  1482.                     elseif Clip_Successful_15 == false then
  1483.                         file_write:write(k .. '.15 Clips? No\n')
  1484.                     end
  1485.                     if Setup_Successful_15 == true then
  1486.                         file_write:write(k .. '.15 Lands? Yes\n')
  1487.                     elseif Setup_Successful_15 == false then
  1488.                         file_write:write(k .. '.15 Lands? No\n')
  1489.                     end
  1490.                     if Midframe_Change_15 == true then
  1491.                         file_write:write(k .. '.15 Midframe Change? Yes\n')
  1492.                     elseif Midframe_Change_15 == false then
  1493.                         file_write:write(k .. '.15 Midframe Change? No\n')
  1494.                     end
  1495.                     file_write:write(k .. '.15 Backflip Wait Time:' .. Backflip_Wait_Time_15 .. '\n')
  1496.                     file_write:write('---\n')
  1497.                    
  1498.                    
  1499.                 elseif Not_On_Banker == true then
  1500.                    
  1501.                     file_write:write(option .. '     ' .. direction .. '\n')
  1502.                     file_write:write(k .. ' On Bank? No\n')
  1503.                     file_write:write(k .. '.14 Clips? N/A\n')
  1504.                     file_write:write(k .. '.14 Lands? N/A\n')
  1505.                     file_write:write(k .. '.14 Midframe Change? N/A\n')
  1506.                     file_write:write(k .. '.14 Backflip Wait Time: N/A\n')
  1507.                     file_write:write(k .. '.15 Clips? N/A\n')
  1508.                     file_write:write(k .. '.15 Lands? N/A\n')
  1509.                     file_write:write(k .. '.15 Midframe Change? N/A\n')
  1510.                     file_write:write(k .. '.15 Backflip Wait Time: N/A\n')
  1511.                     file_write:write('---\n')
  1512.                    
  1513.                 end
  1514.             end
  1515.            
  1516.         elseif direction == 'Right + Target' then
  1517.             --- Test each frame of the backflip
  1518.             for k = 2, 12, 1 do
  1519.                
  1520.                 print('(' .. i .. ', ' .. j .. ', ' .. k .. ')')
  1521.                
  1522.                 itools.clear_inputs()
  1523.                 --- Load new save
  1524.                 itools.load_state(6)
  1525.                
  1526.                 Clip_Successful_14 = false
  1527.                 Clip_Successful_15 = false
  1528.                 Setup_Successful_14 = false
  1529.                 Setup_Successful_15 = false
  1530.            
  1531.                 ----- First find out how many frames to reach -2 Y Velocity
  1532.                 ----- Use this to determine when to initially backflip
  1533.                 ----- Try two timings: -14 Y Velocity and -15 Y Velocity
  1534.                
  1535.                 --- Shield drop the bomb and backflip
  1536.                 itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1537.                 itools.clear_inputs()
  1538.                
  1539.                 --- For each frame of the backflip
  1540.                 v_advance_hold_down_and_target(k)
  1541.                 itools.clear_inputs()
  1542.                
  1543.                 found_y_velocity = false
  1544.                 reach_y_velocity_time = 0
  1545.                 Not_On_Banker = false
  1546.                 while found_y_velocity == false and Not_On_Banker == false do
  1547.                    
  1548.                     reach_y_velocity_time = reach_y_velocity_time + 1
  1549.                     v_advance_hold_right_and_target(1)
  1550.                    
  1551.                     Y_Velocity = core.read_float_be(0x3FFE18,'RDRAM')
  1552.                     Y_Position = core.read_float_be(0x3FFDD8,'RDRAM')
  1553.                     if Y_Velocity == -2 then
  1554.                         found_y_velocity = true
  1555.                     end
  1556.                    
  1557.                     if reach_y_velocity_time >= 20 and Y_Position ~= 133 then
  1558.                         Not_On_Banker = true
  1559.                     end
  1560.                    
  1561.                 end
  1562.                
  1563.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 12 to get to -14 y velocity. 32 - 13 = 19
  1564.                 ---- 74 - 42 = 32. 32 - 1 - k - reach_y_velocity_time - 13 to get to -15 y velocity. 32 - 14 = 18
  1565.                
  1566.                 Backflip_Wait_Time_14 = 19 - k - reach_y_velocity_time
  1567.                 Backflip_Wait_Time_15 = 18 - k - reach_y_velocity_time
  1568.                
  1569.                 --- Ensure you are on the banker
  1570.                 if Not_On_Banker == false and Backflip_Wait_Time_14 >= 0 then
  1571.                    
  1572.                     itools.clear_inputs()
  1573.                     --- Load the newly created state (6)
  1574.                     itools.load_state(6)
  1575.                    
  1576.                     ---------- First Test -14 Y Velocity
  1577.                    
  1578.                     v_advance_press_Z(Backflip_Wait_Time_14)
  1579.                    
  1580.                     --- Shield drop the bomb and backflip
  1581.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1582.                     itools.clear_inputs()
  1583.                    
  1584.                     --- For each frame of the backflip
  1585.                     v_advance_hold_down_and_target(k)
  1586.                     itools.clear_inputs()
  1587.                    
  1588.                     --- Hold Right and Target Until -11 Y Velocity
  1589.                     v_advance_hold_right_and_target(reach_y_velocity_time + 9)
  1590.                     itools.clear_inputs()
  1591.                    
  1592.                     v_advance_press_R(2)
  1593.                     itools.clear_inputs()
  1594.                    
  1595.                     v_advance(1)
  1596.                    
  1597.                     --- Now have -14 Y Velocity unless Midframe Change
  1598.                    
  1599.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  1600.                    
  1601.                     i_advance(1)
  1602.                    
  1603.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  1604.                    
  1605.                     if Movement_Angle_1 == Movement_Angle_2 then
  1606.                        
  1607.                         Midframe_Change_14 = false
  1608.                        
  1609.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  1610.                        
  1611.                         Midframe_Change_14 = true
  1612.                    
  1613.                     end
  1614.                    
  1615.                     i_advance(2)
  1616.                    
  1617.                     --- Check if link clips
  1618.                
  1619.                     for i = 1, N, 1 do
  1620.                    
  1621.                         itools.vframe_advance()
  1622.                        
  1623.                         -- Check if link's Y Position is less than 60
  1624.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  1625.                            
  1626.                             Clip_Successful_14 = true
  1627.                             Clip_Exists = true
  1628.                             print('Clip (-14 Y Velocity)')
  1629.                            
  1630.                             break
  1631.                            
  1632.                         end
  1633.                        
  1634.                     end
  1635.                    
  1636.                     ---------- If clip is successful, check if JS can land
  1637.                    
  1638.                     if Clip_Successful_14 == true then
  1639.                        
  1640.                         itools.load_state(6)
  1641.                        
  1642.                         v_advance_press_Z(Backflip_Wait_Time_14)
  1643.                        
  1644.                         --- Shield drop the bomb and backflip
  1645.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1646.                         itools.clear_inputs()
  1647.                        
  1648.                         --- For each frame of the backflip
  1649.                         v_advance_hold_down_and_target(k)
  1650.                         itools.clear_inputs()
  1651.                        
  1652.                         --- Hold Right and Target Until -11 Y Velocity
  1653.                         v_advance_hold_right_and_target(reach_y_velocity_time + 9)
  1654.                         itools.clear_inputs()
  1655.                        
  1656.                         v_advance_press_R(2)
  1657.                         itools.clear_inputs()
  1658.                        
  1659.                         v_advance(1)
  1660.                        
  1661.                         --- Now have -14 Y Velocity unless Midframe Change
  1662.  
  1663.                         if Midframe_Change_14 == true then
  1664.                            
  1665.                             i_advance(2)
  1666.                            
  1667.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1668.            
  1669.                             for j = 1, M, 1 do
  1670.                            
  1671.                                 itools.vframe_advance()
  1672.                                
  1673.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1674.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1675.                                    
  1676.                                     Setup_Successful_14 = true
  1677.                                     Setup_Exists = true
  1678.                                     print('SUCCESS!!!!!!!!!!!!!!')
  1679.                                    
  1680.                                     break
  1681.                                    
  1682.                                 end
  1683.                                
  1684.                             end
  1685.                            
  1686.                         elseif Midframe_Change_14 == false then
  1687.                            
  1688.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1689.                            
  1690.                             for j = 1, M, 1 do
  1691.                            
  1692.                                 itools.vframe_advance()
  1693.                                
  1694.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1695.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1696.                                    
  1697.                                     Setup_Successful_14 = true
  1698.                                     Setup_Exists = true
  1699.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  1700.                                    
  1701.                                     break
  1702.                                    
  1703.                                 end
  1704.                                
  1705.                             end
  1706.                                
  1707.                         end
  1708.                        
  1709.                     end
  1710.                    
  1711.                     ---------- Now Test -15 Y Velocity
  1712.                     itools.clear_inputs()
  1713.                     --- Load the newly created state (6)
  1714.                     itools.load_state(6)
  1715.                    
  1716.                     v_advance_press_Z(Backflip_Wait_Time_15)
  1717.                    
  1718.                     --- Shield drop the bomb and backflip
  1719.                     itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1720.                     itools.clear_inputs()
  1721.                    
  1722.                     --- For each frame of the backflip
  1723.                     v_advance_hold_down_and_target(k)
  1724.                     itools.clear_inputs()
  1725.                    
  1726.                     --- Hold Right and Target Until -11 Y Velocity
  1727.                     v_advance_hold_right_and_target(reach_y_velocity_time + 10)
  1728.                     itools.clear_inputs()
  1729.                    
  1730.                     v_advance_press_R(2)
  1731.                     itools.clear_inputs()
  1732.                    
  1733.                     v_advance(1)
  1734.                    
  1735.                     --- Now have -15 Y Velocity unless Midframe Change
  1736.                    
  1737.                     Movement_Angle_1 = memory.read_s16_be(0x400884,'RDRAM')
  1738.                    
  1739.                     i_advance(1)
  1740.                    
  1741.                     Movement_Angle_2 = memory.read_s16_be(0x400884,'RDRAM')
  1742.                    
  1743.                     if Movement_Angle_1 == Movement_Angle_2 then
  1744.                        
  1745.                         Midframe_Change_15 = false
  1746.                        
  1747.                     elseif Movement_Angle_1 ~= Movement_Angle_2 then
  1748.                        
  1749.                         Midframe_Change_15 = true
  1750.                    
  1751.                     end
  1752.                    
  1753.                     i_advance(2)
  1754.                    
  1755.                     --- Check if link clips
  1756.                
  1757.                     for i = 1, N, 1 do
  1758.                    
  1759.                         itools.vframe_advance()
  1760.                        
  1761.                         -- Check if link's Y Position is less than 60
  1762.                         if(core.read_float_be(0x3FFDD8,'RDRAM') < 60) then
  1763.                            
  1764.                             Clip_Successful_15 = true
  1765.                             Clip_Exists = true
  1766.                             print('Clip (-15 Y Velocity)')
  1767.                            
  1768.                             break
  1769.                            
  1770.                         end
  1771.                        
  1772.                     end
  1773.                    
  1774.                     ---------- If clip is successful, check if JS can land
  1775.                    
  1776.                     if Clip_Successful_15 == true then
  1777.                        
  1778.                         itools.load_state(6)
  1779.                        
  1780.                         v_advance_press_Z(Backflip_Wait_Time_15)
  1781.                        
  1782.                         --- Shield drop the bomb and backflip
  1783.                         itools.vframe_advance({['X Axis']=0,['Y Axis']=-128,['R']=true,['Z']=true,['A']=true})
  1784.                         itools.clear_inputs()
  1785.                        
  1786.                         --- For each frame of the backflip
  1787.                         v_advance_hold_down_and_target(k)
  1788.                         itools.clear_inputs()
  1789.                        
  1790.                         --- Hold Right and Target Until -12 Y Velocity
  1791.                         v_advance_hold_right_and_target(reach_y_velocity_time + 10)
  1792.                         itools.clear_inputs()
  1793.                        
  1794.                         v_advance_press_R(2)
  1795.                         itools.clear_inputs()
  1796.                        
  1797.                         v_advance(1)
  1798.                        
  1799.                         --- Now have -15 Y Velocity unless Midframe Change
  1800.  
  1801.                         if Midframe_Change_15 == true then
  1802.                            
  1803.                             i_advance(2)
  1804.                            
  1805.                             itools.iframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1806.            
  1807.                             for j = 1, M, 1 do
  1808.                            
  1809.                                 itools.vframe_advance()
  1810.                                
  1811.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1812.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1813.                                    
  1814.                                     Setup_Successful_15 = true
  1815.                                     Setup_Exists = true
  1816.                                     print('SUCCESS!!!!!!!!!!!!!!')
  1817.                                    
  1818.                                     break
  1819.                                    
  1820.                                 end
  1821.                                
  1822.                             end
  1823.                            
  1824.                         elseif Midframe_Change_15 == false then
  1825.                            
  1826.                             itools.vframe_advance({['X Axis']=-128,['Y Axis']=0,['B']=true})
  1827.                            
  1828.                             for j = 1, M, 1 do
  1829.                            
  1830.                                 itools.vframe_advance()
  1831.                                
  1832.                                 -- Check if link's Y Position is 133, which is the height of the bank
  1833.                                 if(core.read_float_be(0x3FFDD8,'RDRAM') == 133) then
  1834.                                    
  1835.                                     Setup_Successful_15 = true
  1836.                                     Setup_Exists = true
  1837.                                     print('SUCCESS!!!!!!!!!!!!!!!')
  1838.                                    
  1839.                                     break
  1840.                                    
  1841.                                 end
  1842.                                
  1843.                             end
  1844.                                
  1845.                         end
  1846.                        
  1847.                     end
  1848.                    
  1849.                    
  1850.                    
  1851.                     file_write:write(option .. '     ' .. direction .. '\n')
  1852.                     file_write:write(k .. ' On Bank? Yes\n')
  1853.                     if Clip_Successful_14 == true then
  1854.                         file_write:write(k .. '.14 Clips? Yes\n')
  1855.                     elseif Clip_Successful_14 == false then
  1856.                         file_write:write(k .. '.14 Clips? No\n')
  1857.                     end
  1858.                     if Setup_Successful_14 == true then
  1859.                         file_write:write(k .. '.14 Lands? Yes\n')
  1860.                     elseif Setup_Successful_14 == false then
  1861.                         file_write:write(k .. '.14 Lands? No\n')
  1862.                     end
  1863.                     if Midframe_Change_14 == true then
  1864.                         file_write:write(k .. '.14 Midframe Change? Yes\n')
  1865.                     elseif Midframe_Change_14 == false then
  1866.                         file_write:write(k .. '.14 Midframe Change? No\n')
  1867.                     end
  1868.                     file_write:write(k .. '.14 Backflip Wait Time:' .. Backflip_Wait_Time_14 .. '\n')
  1869.                    
  1870.                     if Clip_Successful_15 == true then
  1871.                         file_write:write(k .. '.15 Clips? Yes\n')
  1872.                     elseif Clip_Successful_15 == false then
  1873.                         file_write:write(k .. '.15 Clips? No\n')
  1874.                     end
  1875.                     if Setup_Successful_15 == true then
  1876.                         file_write:write(k .. '.15 Lands? Yes\n')
  1877.                     elseif Setup_Successful_15 == false then
  1878.                         file_write:write(k .. '.15 Lands? No\n')
  1879.                     end
  1880.                     if Midframe_Change_15 == true then
  1881.                         file_write:write(k .. '.15 Midframe Change? Yes\n')
  1882.                     elseif Midframe_Change_15 == false then
  1883.                         file_write:write(k .. '.15 Midframe Change? No\n')
  1884.                     end
  1885.                     file_write:write(k .. '.15 Backflip Wait Time:' .. Backflip_Wait_Time_15 .. '\n')
  1886.                     file_write:write('---\n')
  1887.                    
  1888.                    
  1889.                 elseif Not_On_Banker == true then
  1890.                    
  1891.                     file_write:write(option .. '     ' .. direction .. '\n')
  1892.                     file_write:write(k .. ' On Bank? No\n')
  1893.                     file_write:write(k .. '.14 Clips? N/A\n')
  1894.                     file_write:write(k .. '.14 Lands? N/A\n')
  1895.                     file_write:write(k .. '.14 Midframe Change? N/A\n')
  1896.                     file_write:write(k .. '.14 Backflip Wait Time: N/A\n')
  1897.                     file_write:write(k .. '.15 Clips? N/A\n')
  1898.                     file_write:write(k .. '.15 Lands? N/A\n')
  1899.                     file_write:write(k .. '.15 Midframe Change? N/A\n')
  1900.                     file_write:write(k .. '.15 Backflip Wait Time: N/A\n')
  1901.                     file_write:write('---\n')
  1902.                    
  1903.                 end
  1904.             end
  1905.         end
  1906.        
  1907.         --------------------------------------------------------------------------------------------------------
  1908.        
  1909.     end
  1910. end
  1911.  
  1912. file_write:close()
  1913. print('done')
Add Comment
Please, Sign In to add comment