Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buttons = { };
- buttons["Up"] = null;
- buttons["Down"] = null;
- buttons["Left"] = null;
- buttons["Right"] = null;
- buttons["Start"] = null;
- buttons["Select"] = null;
- buttons["Circle"] = null;
- buttons["Triangle"] = null;
- buttons["Square"] = null;
- buttons["Cross"] = null;
- framewait = 0
- repeat
- console.writeline(framewait)
- savestate.loadslot(1)
- i = 0
- repeat
- emu.frameadvance();
- i = i + 1
- gui.text (400,400, i)
- gui.text (600,600, "frames waited")
- gui.text (800,600, framewait)
- until (i > framewait)
- --press cross
- buttons["Cross"] = true;
- joypad.set(buttons, 1)
- emu.frameadvance();
- --wait for a bit fight animation
- i = 0
- repeat
- emu.frameadvance();
- i = i + 1
- gui.text (400,400, i)
- gui.text (600,600, "frames waited")
- gui.text (800,600, framewait)
- until (i == 250)
- while true do
- emu.frameadvance();
- gui.text (600,600, "frames waited")
- gui.text (800,600, framewait)
- miss = mainmemory.read_u32_le(0x074074)
- attackerone = mainmemory.read_u32_le(0x073A20)
- attackertwo = mainmemory.read_u32_le(0x073A24)
- attackerthree = mainmemory.read_u32_le(0x073A28)
- --====enemy miss===--
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- if (attackerone > 2) then
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- if (miss == 1) then
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- break
- end
- end
- --====own hit====--
- emu.frameadvance();
- emu.frameadvance();
- if (attackerone < 4) then
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- if (miss == 0) then
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- emu.frameadvance();
- break
- end
- end
- --====done====--
- if attackertwo == 4294967295 then
- framewait = 99999999
- break
- end
- end
- framewait = framewait + 1
- until (framewait > 99999999)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement