User File #50288574833160475

Upload All User Files

#50288574833160475 - Donald Land ACE generator

DonaldLand4playerACEgenerator.lua
Game: Donald Land ( NES, see all files )
671 downloads
Uploaded 10/4/2018 5:49 PM by TASeditor (see all 188)
t={}
t[0]={0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,2,2,2,1,0,0,0,0,0,0,1,2,2,2,2,2,2,2,2,2,2,2,1,0,0,0,0,0,0,1,2,2,1,3,3,3,1,3,2,2,2,2,1,0,0,0,0,0,1,2,1,1,3,3,3,1,1,3,2,2,2,1,0,0,0,0,0,0,1,3,1,3,3,3,1,3,3,3,2,2,1,0,0,0,0,0,0,1,2,2,2,3,3,3,3,3,3,2,2,1,0,0,0,0,0,0,1,2,2,2,3,3,3,3,3,3,2,2,1,0,0,0,0,0,0,1,1,3,3,3,3,3,1,3,3,2,1,0,0,0,0,0,0,0,1,3,1,1,1,1,1,3,3,2,1,0,0,0,0,0,0,0,0,0,1,3,3,3,3,3,3,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,2,1,1,0,0,0,0,0,0,1,3,1,2,1,1,1,1,2,2,1,3,3,1,1,0,0,0,1,2,2,1,2,2,1,1,2,2,2,1,3,2,2,2,1,0,0,1,2,2,1,2,2,1,1,2,2,2,1,1,2,3,3,3,1,1,2,2,1,2,2,2,2,2,2,3,2,2,1,3,3,3,3,1,1,3,3,1,2,2,2,2,2,2,3,2,2,1,2,2,2,3,1,1,3,3,2,2,2,2,2,2,2,2,2,1,3,3,2,2,1,0,0,1,1,2,2,2,2,2,2,2,2,2,1,3,3,2,2,1,0,0,0,1,2,3,2,2,2,2,2,2,2,2,1,1,1,1,0,0,0,0,1,2,3,2,2,2,2,2,2,2,2,2,2,1,0,0,0,0,0,1,2,2,2,2,2,2,2,3,3,2,2,2,1,0,0,0,0,0,1,2,2,2,2,2,2,2,3,3,2,2,2,1,0,0,0,0,0,1,2,2,2,2,2,2,2,2,2,2,2,2,1,0,0,0,0,0,0,1,2,1,1,2,2,2,1,1,1,2,1,0,0,0,0,0,0,0,0,1,3,3,1,1,3,3,3,3,1,0,0,0,0,0,0,0,0,0,1,2,2,1,1,2,2,2,2,1,0,0,0,0,0,0,0,0,0,1,3,3,1,1,3,3,3,3,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0}		
function DoWhateverItDoes(sdfsdfsdfsdfsdfsdfsdfsdfsdf)
if sdfsdfsdfsdfsdfsdfsdfsdfsdf == 0 then return 0xC4F7C8 elseif sdfsdfsdfsdfsdfsdfsdfsdfsdf == 1 then return 0x000000 elseif sdfsdfsdfsdfsdfsdfsdfsdfsdf == 2 then return 0xB53220 elseif sdfsdfsdfsdfsdfsdfsdfsdfsdf == 3 then return 0xFEFEFE else return 0xC4F7C8 end
end
function DoThisThing(index,column)
	if index >=emu.framecount()-30 and index <= emu.framecount() then local meow = index - emu.framecount()+30 if column == "P1 A" then return DoWhateverItDoes(t[0][meow*19+1]) elseif column == "P1 B" then return DoWhateverItDoes(t[0][meow*19+2]) elseif column == "P1 Select" then return DoWhateverItDoes(t[0][meow*19+3]) elseif column == "P1 Start" then return DoWhateverItDoes(t[0][meow*19+4]) elseif column == "P1 Up" then return DoWhateverItDoes(t[0][meow*19+5]) elseif column == "P1 Down" then return DoWhateverItDoes(t[0][meow*19+6]) elseif column == "P1 Left" then return DoWhateverItDoes(t[0][meow*19+7]) elseif column == "P1 Right" then return DoWhateverItDoes(t[0][meow*19+8]) elseif column == "P2 A" then return DoWhateverItDoes(t[0][meow*19+9]) elseif column == "P2 B" then return DoWhateverItDoes(t[0][meow*19+10]) elseif column == "P2 Select" then return DoWhateverItDoes(t[0][meow*19+11]) elseif column == "P2 Start" then return DoWhateverItDoes(t[0][meow*19+12]) elseif column == "P2 Up" then return DoWhateverItDoes(t[0][meow*19+13]) elseif column == "P2 Down" then return DoWhateverItDoes(t[0][meow*19+14]) elseif column == "P2 Left" then return DoWhateverItDoes(t[0][meow*19+15]) elseif column == "P2 Right" then return DoWhateverItDoes(t[0][meow*19+16]) elseif column == "P3 A" then return DoWhateverItDoes(t[0][meow*19+17]) elseif column == "P3 B" then return DoWhateverItDoes(t[0][meow*19+18]) elseif column == "P3 Select" then return DoWhateverItDoes(t[0][meow*19+19]) end end
end
client.gettool("TAStudio") 
tastudio.onqueryitembg(DoThisThing)
print("Please set controller ports to Fourscore before loading the script else the ACE generator malfunctions.")
while (true) do
emu.frameadvance()
end