User File #43915861495833001

Upload All User Files

#43915861495833001 - George Foreman's RNG knoledge

George Foreman's KO Boxing (E)tabler.lua
955 downloads
Uploaded 12/21/2017 5:53 PM by zoboner (see all 35)
To know how the RNG number function. It function with a multiple of 8 and start at 0 (0,8,16,24,32...) to finish at 248. This script give you all possible values for know by advance when the enemy get up when he is K.O. Watch the LUA console, at left you have the RNG value and at right the " enemy get up" value. Not obligatory to use this script, I post it if you want studies how the RNG function in this game. Do a save state (2) before the enemy fallen during the round 1 or others, for this lua run correctly!
v = 0
v1 = 0
local function RNG_NumTable()
local RNG_numRam = mainmemory.read_u8
local know_timeTOgetUP = mainmemory.read_u8
local rng = RNG_numRam(0x010E)
local kttu = know_timeTOgetUP(0x0423)
local efc = emu.framecount()

if efc == 2324 then 
mainmemory.writebyte(0x010E,v)
end
if efc == 2327 then
print (v1,kttu-1)
v = v +1
v1 = v1 +1
savestate.loadslot(4)
end
if v1 > 255 then 
v = 0
v1 = 0 
print "all values are printed" 
client.pause()
end
   end

while true do
RNG_NumTable()
	emu.frameadvance();
end