User File #63900696766348833

Upload All User Files

#63900696766348833 (unlisted) - red manip

red_manip.lua
1 comment, 30 downloads
Uploaded 6/8/2020 6:27 PM by Alyosha (see all 10)
local HIT_T = true;
local do_once_temp = true;
local i = 0;
local j = 0;
local k = 0;
local l = 0;


while (HIT_T == true) do
	
	if (do_once_temp) then
		savestate.loadslot(1);
		
		do_once_temp = false;
	end
	
	if (l == 10) then
		l = 0;
		k = k+ 1;
		if (k == 10) then
			k = 0;
			j = j + 1;
			if (j == 10) then
				j = 0;
				i = i + 1;
				if (i == 10) then
					HIT_T = false;
				end
			end
		end
	end

	if (emu.framecount() == (519 + i)) then
		joypad.setfrommnemonicstr("|.......A.|");
	end		
	
	if (emu.framecount() == (523 + i + j)) then
		joypad.setfrommnemonicstr("|....S....|");
	end	
		
	if (emu.framecount() == (704 + i + j + k)) then
		joypad.setfrommnemonicstr("|.......A.|");
	end		
	
	if (emu.framecount() == (812 + i + j + k + l)) then
		joypad.setfrommnemonicstr("|....S....|");
	end	
	
	if ((i + j + k + l) < 18) then
		if (emu.framecount() == 900) then
			if (memory.readbyte(0xD359) == 0x64) then
				console.write(i);
				console.write(" ");
				console.write(j);
				console.write(" ");
				console.write(k);
				console.write(" ");
				console.write(l);
				console.write(" ");
				console.write(memory.readbyte(0xD35A));
				console.write('\n');

			end
		
			l = l + 1;
			savestate.loadslot(1);
		end	
	else
		l = l + 1;
		savestate.loadslot(1);
	end


	emu.frameadvance()
end
DJ_Incendration
on 6/8/2020 6:55 PM
I actually find this hard to understand. How does this work?