// Cross Channel Looper
// by planting42
//
// This is to automate the achievement for having the story loop 100 times.
// It will run 18 loops before you reach the bad ending.
// At that point, press A to pass the end screen and make sure you save data (top option)
// Load save 5 if using the XboxAchievements walkthrough or load your loop save.
//
// Click LS to enable.
int loop;
int cycle=18;
main
{
if (event_press (8)) {loop= !loop;}
if (loop) {combo_run (looper);}
if (!loop) {combo_stop (looper);}
}
combo looper
{
set_val (19, 100);
wait (500);
set_val (14, 100);
wait (500);
set_val (19, 100);
wait (500);
set_val (1, 100);
wait (1000);
set_val (19, 100);
wait (500);
set_val (14, 100);
wait (500);
set_val (19, 100);
wait (500);
set_val (1, 100);
wait (500);
set_val (1, 0)
wait (500);
set_val (1, 100);
wait (1000);
set_val(TRACE_1, cycle);
if (cycles() == 0) {combo_stop (looper);}
}
function cycles()
{
cycle = (cycle - 1);
return cycle;
}