User File #23484597354984791

Upload All User Files

#23484597354984791 - Tekken 3J - lua v1.1 - PSXjin

Tekken3J - v1.1 PSXjin.lua
1168 downloads
Uploaded 6/15/2015 2:49 PM by Spikestuff (see all 287)
-- Tekken 3 PSXjin lua v1.1 PSXjin
-- 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


while true do
check = memory.readbyte(0xBA42F) -- For Mokujin
pcheck = memory.readbyte(0xAF3A8) -- Player Check

if 1 == check or check == 49 then
gui.text(182,10,memory.readbyte(0x992DE)) -- Difficulty Check 0/1/2
end

if check == 36 then -- In Fight
timer = memory.readword(0xAF064) -- Center Timer
moku1 = memory.readbyte(0xAA6D6) -- Player 1 Mokujin
moku2 = memory.readbyte(0xABF62) -- Player 2 Mokujin
p1hp = memory.readword(0x990F2) -- Player 1 Health
p2hp = memory.readword(0x99102) -- Player 2 Health

if 0 == p1hp then
	gui.text(146,90,"  0")
else if 100 < p1hp then
	gui.text(146,90,p1hp)
else if 10 < p1hp then
	gui.text(146,90," " .. p1hp)
else if 0 < p1hp then
	gui.text(146,90,"  " .. p1hp)
end end end end

if 0 == p2hp then
	gui.text(211,90,"0  ")
else if 100 < p2hp then
	gui.text(211,90,p2hp)
else if 10 < p2hp then
	gui.text(211,90,p2hp .. " ")
else if 0 < p2hp then
	gui.text(211,90,p2hp .. "  ")
end end end end

if pcheck == 2 then
gui.text(260,101,"Total Stage Time: " .. memory.readword(0xB0F4C),"yellow") -- Full Fight Timer
gui.text(260,109,"Round Full Time: " .. memory.readword(0x968B8),"red") -- Round Timer
else
gui.text(8,101,"Total Stage Time: " .. memory.readword(0xB0F4C),"yellow") -- Full Fight Timer
gui.text(8,109,"Round Full Time: " .. memory.readword(0x968B8),"red") -- Round Timer
end

if 0 == timer then
	gui.text(176,70,"   0","#ff92f1")
else if 10 > timer then
	gui.text(176,70,"   " .. timer,"#ff92f1")
else if 100 > timer then
	gui.text(176,70,"  " .. timer,"#ff92f1")
else if 1000 > timer then
	gui.text(176,70," " .. timer,"#ff92f1")
else
	gui.text(176,70,timer,"#ff92f1")
end end end end

if memory.readbyte(0x994DE) == 15 then -- Checks if Player 1 is Mokujin
if moku1 == 0 then
	gui.text(16,85,"Paul")
else if moku1 == 1 then
	gui.text(16,85,"Law")
else if moku1 == 2 then
	gui.text(16,85,"Lei")
else if moku1 == 3 then
	gui.text(16,85,"King")
else if moku1 == 4 then
	gui.text(16,85,"Yoshimitsu")
else if moku1 == 5 then
	gui.text(16,85,"Nina")
else if moku1 == 6 then
	gui.text(16,85,"Hwoarang")
else if moku1 == 7 then
	gui.text(16,85,"Xiaoyu")
else if moku1 == 8 then
	gui.text(16,85,"Eddy")
else if moku1 == 9 then
	gui.text(16,85,"Jin")
else if moku1 == 10 then
	gui.text(16,85,"Julia")
else if moku1 == 11 then
	gui.text(16,85,"Kuma/Panda")
else if moku1 == 12 then
	gui.text(16,85,"Bryan")
else if moku1 == 13 then
	gui.text(16,85,"Heihachi")
else if moku1 == 16 then
	gui.text(16,85,"Gun Jack")
else if moku1 == 17 then
	gui.text(16,85,"Gon")
else if moku1 == 18 then
	gui.text(16,85,"Anna")	
else if moku1 == 19 then
	gui.text(16,85,"Doctor Bosconovitch")
end end end end end end end end end end end end end end end end end end end

if memory.readbyte(0x994DF) == 15 then -- Checks if Player 2 is Mokujin
if moku2 == 0 then
	gui.text(300,85,"Paul")
else if moku2 == 1 then
	gui.text(300,85,"Law")
else if moku2 == 2 then
	gui.text(300,85,"Lei")
else if moku2 == 3 then
	gui.text(300,85,"King")
else if moku2 == 4 then
	gui.text(300,85,"Yoshimitsu")
else if moku2 == 5 then
	gui.text(300,85,"Nina")
else if moku2 == 6 then
	gui.text(300,85,"Hwoarang")
else if moku2 == 7 then
	gui.text(300,85,"Xiaoyu")
else if moku2 == 8 then
	gui.text(300,85,"Eddy")
else if moku2 == 9 then
	gui.text(300,85,"Jin")
else if moku2 == 10 then
	gui.text(300,85,"Julia")
else if moku2 == 11 then
	gui.text(300,85,"Kuma/Panda")
else if moku2 == 12 then
	gui.text(300,85,"Bryan")
else if moku2 == 13 then
	gui.text(300,85,"Heihachi")
else if moku2 == 16 then
	gui.text(300,85,"Gun Jack")
else if moku2 == 17 then
	gui.text(300,85,"Gon")
else if moku2 == 18 then
	gui.text(300,85,"Anna")	
else if moku2 == 19 then
	gui.text(300,85,"Doctor Bosconovitch")
end end end end end end end end end end end end end end end end end end end
end 

emu.frameadvance() end