-- Tekken 3 BizHawk lua v1.0
-- This is Community Work Please Help
-- Join in add updates of your own and add your name
-- Values found by: Spikestuff
-- Script Edited by: Spikestuff, samurai goroh, ThunderAxe
options = 0
character = { [0] = "Paul",
[1] = "Law",
[2] = "Lei",
[3] = "King",
[4] = "Yoshimitsu",
[5] = "Nina",
[6] = "Hwoarang",
[7] = "Xiaoyu",
[8] = "Eddy",
[9] = "Jin",
[10] = "Julia",
[11] = "Kuma/Panda",
[12] = "Bryan",
[13] = "Heihachi",
[14] = "Ogre",
[15] = "Mokujin",
[16] = "Gun Jack",
[17] = "Gon",
[18] = "Anna",
[19] = "Doctor Bosconovitch",
[20] = "True Ogre"
}
difficulty = { [0] = "Easy",
[1] = "Medium",
[2] = "Hard",
}
rtime = { [0] = "20 Sec",
[1] = "30 Sec",
[2] = "40 Sec",
[3] = "50 Sec",
[4] = "60 Sec",
[5] = "infinite",
}
yn = { [0] = "No",
[1] = "Yes",
}
bgm = { [0] = "Remixed",
[1] = "Arcade",
[2] = "Silent",
}
sm = { [0] = "Mono",
[1] = "Stereo",
}
while true do
if input.get()["j"] or input.get()["J"] then
options = 1
else if input.get()["k"] or input.get()["K"] then
options = 0
end end
if options == 1 then
gui.text( 2, 130, difficulty[memory.readbyte(0x97F06)],"Chartreuse") -- Difficulty Check 0/1/2
gui.text( 2, 145, "Rounds: " .. memory.readbyte(0x97F07)+1,"Chartreuse")
gui.text( 2, 160, "Time: " .. rtime[memory.readbyte(0x97F08)],"Chartreuse")
gui.text( 2, 175, "Change: " .. yn[memory.readbyte(0x97F0A)],"Chartreuse")
gui.text( 2, 190, "Guard Damage: " .. yn[memory.readbyte(0x97F09)],"Chartreuse")
gui.text( 2, 205, "Select Hold: " .. yn[memory.readbyte(0x97F19)],"Chartreuse")
gui.text( 2, 220, "Quick Select: " .. yn[memory.readbyte(0x97F10)],"Chartreuse")
gui.text( 2, 235, "BGM: " .. bgm[memory.readbyte(0x97F05)],"Chartreuse")
gui.text( 2, 250, "Speaker Out: " .. sm[memory.readbyte(0x97F04)],"Chartreuse")
else
gui.text( 2, 58, difficulty[memory.readbyte(0x97F06)]) -- Difficulty Check 0/1/2
end
pcheck = memory.readbyte(0xADF10) -- Player Check / Might be wrong value
timer = memory.read_u32_le(0xADBCC) -- Center Timer
moku1 = memory.readbyte(0xA923E) -- Player 1 Mokujin
moku2 = memory.readbyte(0xAAACA) -- Player 2 Mokujin
p1hp = memory.readbyte(0x97D18) -- Player 1 Health
p2hp = memory.readbyte(0x97D28) -- Player 2 Health
gui.text( 254, 85, string.format("%3i", p1hp)) -- HP player 1
gui.text( 358, 85, string.format("%3i", p2hp)) -- HP player 2
gui.text( 300, 70, string.format("%4i", timer)) -- Timer
if pcheck == 3 then
else
gui.text( 44, 100, "Round Full Time: " .. memory.read_u32_le(0xAFAB4), "red" ) -- Round Timer
gui.text( 44, 115, "Total Stage Time: " .. memory.read_u32_le(0x95464), "yellow" ) -- Full Fight Timer
end
if memory.readbyte(0x98106) == 15 then -- Checks if Player 1 is Mokujin
gui.text ( 44, 85, character[moku1])
end
if memory.readbyte(0x98107) == 15 then -- Checks if Player 2 is Mokujin
gui.text ( 410, 85, character[moku2] )
end
emu.frameadvance()
end