The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Dresdor/macro

From A Tale in the Desert
Jump to navigationJump to search

Constants bench_number = 4 //Number of benches to run (max 4) End If $bench_number = 4 let active_1 = 1; active_2 = 1; active_3 = 1; active_4 = 1; active_benches = 4 If $bench_number = 3 let active_1 = 1; active_2 = 1; active_3 = 1; active_benches = 3 If $bench_number = 2 let active_1 = 1; active_2 = 1; active_benches = 2 If $bench_number = 1 let active_1 = 1; active_benches = 1 Run Startup_Loop While $active_benches > 0 If $bench_number >= 1 and active_1 =1 Run bench_1 If $bench_number >= 2 active_2 = 1 Run bench_2 If $bench_number >= 3 and active_3 = 1 Run bench_3 If $bench_number >=4 and active_4 = 1 Run bench_4 //Startup Loop Loop 5 If $active_1 = 1 run cc_add_1 If $active_2 = 1 run cc_add_2 If $active_3 = 1 run cc_add_3 If $active_4 = 1 run cc_add_4 Delay 10000 End //benches loop If $active_1 = 1 run bench_1 If $active_2 = 1 run bench_2 If $active_3 = 1 run bench_3 If $active_4 = 1 run bench_4 Run active_check //bench_1 Is Red x y Break If $boosting_1 > 0 then $boosting = $boosting – 10; break Is Red x y If Project_1 <= 0 then run boost_1; break Else if cc_1 <= 0 then run cc_add_1; break If $cc_1 <= 0 then run cc_add_1; $project_1 = $project_1 - 10 If $project_1 <= 0 then run project_run_1; $cc_1 = $cc_1 - 10 End //boost_1 if $tick_1 = 1 then mousepos leftclick; $tick_1 = 0; $boosting_1 = 90 if $tick_1 = 0 then mousepos leftclick; $tick_1 = 1 end //cc_add_1 Mousepos Leftclick $cc_1 = 90 end //project_run_1 if $project = 1, mousepos $project_1 = 120 if $project = 2, mousepos $project_1 = 90 if $project = 3, mousepos $project_1 = 90 if $project = 4, mousepos $project_1 = 60 leftclick $glass_1 = $glass_1 – 1 end //active_check If $glass_1 <= 19, $active_1 = 0 If $glass_2 <= 19 $active_2 = 0 If $glass_3 <= 19 $active_3 = 0 If $glass_4 <= 19 $active_4 = 0