FF7

wmap walking script

FF7
May 2nd, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. local end_frames = pcsx.framecount() + 830000;
  2. local outfile = assert(io.open("worldmap_walking_rng.txt", "w"));
  3. local start_escapes = memory.readword(0x0009D2A2);
  4.  
  5.  
  6. while pcsx.framecount() < end_frames do
  7. while memory.readword(0x00F5BF4) ~= 709 do
  8. joypad.set(1, { ["up"] = 1, ["right"] = 1 });
  9. pcsx.frameadvance();
  10. joypad.set(1, { ["up"] = 0, ["right"] = 0 });
  11. pcsx.frameadvance();
  12. joypad.set(1, { ["down"] = 1, ["left"] = 1 });
  13. pcsx.frameadvance();
  14. joypad.set(1, { ["down"] = 0, ["left"] = 0 });
  15. pcsx.frameadvance();
  16. end
  17.  
  18. escaped = start_escapes
  19. while escaped == start_escapes do
  20. escaped = memory.readword(0x009D2A2);
  21. -- Run! Start testing at frame 200
  22. joypad.set(1, { ["l1"] = true, ["r1"] = true });
  23. pcsx.frameadvance();
  24. end
  25. joypad.set(1, { ["l1"] = false, ["r1"] = false });
  26. end
  27.  
  28. outfile:write("Start Escapes: ", start_escapes, "\n");
  29. outfile:write("End Escapes: ", memory.readword(0x0009D2A2), "\n");
  30. outfile:write("Total escapes: ", memory.readword(0x0009D2A2) - start_escapes, "\n");
  31.  
  32. assert(outfile:close());
  33. gui.text(0, 50, "Done.");
  34. pcsx.pause();
Advertisement
Add Comment
Please, Sign In to add comment