z_mirror/ChangeInserterDropLane

git clone https://git.raiguard.me/z_mirror/ChangeInserterDropLane

Caleb HeuerUpdate to 2.06f0de6c

cheater
2.0 KiB93 linesraw
1player = game.simulation.create_test_player({ name = "fufucuddlypoops" })
2player.teleport({ -7, 2 })
3game.simulation.camera_alt_info = true
4game.simulation.camera_player = player
5game.simulation.camera_player_cursor_position = { -7, 1.5 }
6
7step_0 = function()
8  start_tick = game.tick
9  script.on_nth_tick(1, function()
10    if game.tick - start_tick > 60 then
11      step_1()
12    end
13  end)
14end
15
16step_1 = function()
17  target_cursor_position = { -4.5, -1.5 }
18  script.on_nth_tick(1, function()
19    local finished = game.simulation.move_cursor({ position = target_cursor_position })
20    if finished then
21      step_2()
22    end
23  end)
24end
25
26step_2 = function()
27  start_tick = game.tick
28  script.on_nth_tick(1, function()
29    if game.tick - start_tick > 15 then
30      remote.call("ChangeInserterDropLane_simulation", "change_selected_lane", player)
31      step_3()
32    end
33  end)
34end
35
36step_3 = function()
37  start_tick = game.tick
38  script.on_nth_tick(1, function()
39    if game.tick - start_tick > 15 then
40      step_4()
41    end
42  end)
43end
44
45step_4 = function()
46  target_cursor_position = { -1.5, -1.5 }
47  script.on_nth_tick(1, function()
48    local finished = game.simulation.move_cursor({ position = target_cursor_position })
49    if finished then
50      step_5()
51    end
52  end)
53end
54
55step_5 = function()
56  start_tick = game.tick
57  script.on_nth_tick(1, function()
58    if game.tick - start_tick > 15 then
59      remote.call("ChangeInserterDropLane_simulation", "change_selected_lane", player)
60      step_6()
61    end
62  end)
63end
64
65step_6 = function()
66  start_tick = game.tick
67  script.on_nth_tick(1, function()
68    if game.tick - start_tick > 15 then
69      step_7()
70    end
71  end)
72end
73
74step_7 = function()
75  target_cursor_position = { -7, 1.5 }
76  script.on_nth_tick(1, function()
77    local finished = game.simulation.move_cursor({ position = target_cursor_position })
78    if finished then
79      step_8()
80    end
81  end)
82end
83
84step_8 = function()
85  start_tick = game.tick
86  script.on_nth_tick(1, function()
87    if game.tick - start_tick > 240 then
88      step_0()
89    end
90  end)
91end
92
93step_0()