User File #638394732800867299

Upload All User Files

#638394732800867299 - PMW3 DS Touch Script

PMW3_yxt.lua
101 downloads
Uploaded 12/29/2023 7:01 PM by inconsistent (see all 30)
Posting for people doing RTA runs of DS. Taps the screen when holding Y + X. Better version of the old script. Works even if you're pressing other buttons (e.g. holding Left then pressing Y and X), the old version wouldn't touch the screen.
while true do
    if joypad.get()["Y"] and joypad.get()["X"] then
        joypad.set({Touch=1})
        joypad.setanalog({["Touch X"] = 127, ["Touch Y"] = 95}) 
      else
        client.clearautohold(); -- clear sticky
      end
    emu.frameadvance()
end