Hello, I am newbie
I tried creating a LUA-macro in the Gens11b, and did not work
A, B, C keys works
X, Y, Z not works
You need some code to enable a 6 buttons?
Even changing the configuration of the controls in Gens11b, but not work my 6 buttons LUA macro
ROM = Ultimate Mortal Kombat 3
OS = Windows XP 64Bit SP2
Emulator = Gens11b
___________
lalaice = {
{down=true,right=false},{down=true,right=false},
{down=false,right=true},{down=false,right=true},
{A=true},{A=true},
}
lalacombo = {
{A=true,B=true},{X=true},{X=true},{X=true},{X=true},
{X=false},{X=false},{X=false},{X=false},{X=false},
{X=true},{X=true},{X=true},{X=true},{X=true},{X=true},
{X=false},{X=false},{X=false},{X=false},{X=false},
{A=true},{A=true},{A=true},{A=true},{A=true},
{A=false},{A=false},{A=false},{A=false},{A=false},
{C=true},{C=true},{C=true},{C=true},{C=true},{C=true},
{C=false},{C=false},{C=false},{C=false},{C=false},
{Z=true},{Z=true},{Z=true},{Z=true},{Z=true},{Z=true},
{Z=false},{Z=false},{Z=false},{Z=false},{Z=false},
{Z=true},{Z=true},{Z=true},{Z=true},{Z=true},{Z=true},
{Z=false},{Z=false},{Z=false},{Z=false},{Z=false},
{left=true, Z=true}, {left=true, Z=true}, {left=true, Z=true}, {left=true, Z=true}
}
function doframewith (buttons)
repeat
joypad.set(buttons)
gens.emulateframe() gens.wait()
until abortmacro or not gens.lagged()
end
function domacro (buttonseq)
abortmacro = false
for i=1,#buttonseq do
if abortmacro then return end
doframewith(buttonseq[i])
end
end
gens.registerbefore(function()
if alreadyin then return else alreadyin = true end
if input.get().control then
domacro(lalaice)
end
if input.get().shift then
domacro(lalacombo)
end
alreadyin = false
end)