User File #17211803164880441

Upload All User Files

#17211803164880441 - Crash Bandicoot Huge Adventure - lua v2.01 - BizHawk

CrashGBA - v2.01 BizHawk.lua
1260 downloads
Uploaded 9/6/2014 2:53 AM by Spikestuff (see all 287)
-- Crash Huge Adventure lua v2.1 BizHawk
-- This is Community Work Please Help
-- Join in add updates of your own and add your name

-- Values Found by: Spikestuff
-- Script Code by: Spikestuff, Ilari

while true do
memory.usememorydomain("IWRAM")
area = memory.readbyte(0x1644)
areab = memory.readbyte(0x0830)
cdwn = memory.readbyte(0x14E0)-1

if area == 11 or area == 13 or area == 14 or area == 15 or area == 16 or area == 17 then else
	if area == 5 or area == 9 then
			gui.text(0,134,memory.read_s16_le(0x3F34),"black","orange")
		else
	if area == 2 and areab == 1 or area == 18 then
			gui.text(0,134,memory.read_s16_le(0x1404),"black","yellow")
		else
			gui.text(0,134,memory.read_s16_le(0x082C),"black","yellow")
end end end

--N.Gin Health
bombhealth = memory.read_s8(0x4130)
turthealth = memory.read_u8(0x40B0)
lefthealth = memory.read_u16_le(0x41B0)
righthealth = memory.read_u16_le(0x4230)

memory.usememorydomain("EWRAM")
lvl = memory.readbyte(0x0000E8)
dshi = memory.readbyte(0x003EFC) -- Dingodile's Shield

if area == 16 then -- Mask Level Checking
	gui.text(175,30,"Mask Level: " .. memory.readbyte(0x00009C),"black","yellow")
end

if area == 9 then -- N.Gin
	if bombhealth == 255 or bombhealth == -1 then else
		gui.text(30,70,"Bomb: " .. (bombhealth+1)/2) end
	if lefthealth == 0 and righthealth == 0 then else
		gui.text(0,86,"Rockets: " .. (lefthealth/2) .. "/" .. (righthealth/2)) end
	if turthealth == 255 or turthealth == -1 then else
		gui.text(10,102,"Turret: " .. (turthealth+1)/2) end
end

if lvl == 20 and area == 8 then -- Dingodile's Shield
	gui.text(0,150,"Shield: " .. ((dshi == 1) and "ON" or "OFF"))
end


if area == 2 and areab == 1 or area == 18 then else
	if area == 11 or area == 13 or area == 14 or area == 15 or area == 16 or area == 17 then else
		if area == 6 then -- Bonus
			gui.text(0,70,"Pixel X: " .. memory.read_u16_le(0x010E2D))
			gui.text(0,86,"Pixel Y: " .. memory.read_u16_le(0x010E31))
			gui.text(0,102,"Speed X: " .. memory.read_s16_le(0x010E8C))
			gui.text(0,118,"Speed Y: " .. memory.read_s16_le(0x010E90))
			gui.text(0,276,"Slide Time: 22/" .. memory.read_s16_le(0x0111F4),"black","orange")
			gui.text(0,292," Spin Time: 23/" .. memory.read_s16_le(0x0111F4),"black","orange")
		else
		if area == 5 or area == 9 then -- Flying Cooldown
			if cdwn ~= -1 then
				gui.text(0,118,"Cooldown: " .. cdwn)
			end
		else
		if area == 10 then -- Neo Cortex and Mega Mix
			gui.drawBox(0,142,240,160,"null","black")
			gui.text(330,286,"Pixel X: " .. memory.read_u16_le(0x010A15))
			gui.text(330,300,"Pixel Y: " .. memory.read_u16_le(0x010A19))
			gui.text(180,286,"Speed X: " .. memory.read_s16_le(0x010A74))
			gui.text(180,300,"Speed Y: " .. memory.read_s16_le(0x010A78))
			gui.text(0,286,"Slide: 22/" .. memory.read_s16_le(0x010DDC),"black","yellow")
			gui.text(0,300," Spin: 23/" .. memory.read_s16_le(0x010DDC),"black","yellow")
		else -- Normal
			gui.text(0,70,"Pixel X: " .. memory.read_u16_le(0x010A15))
			gui.text(0,86,"Pixel Y: " .. memory.read_u16_le(0x010A19))
			gui.text(0,102,"Speed X: " .. memory.read_s16_le(0x010A74))
			gui.text(0,118,"Speed Y: " .. memory.read_s16_le(0x010A78))
			if area == 1 or area == 8 then
				gui.text(0,292," Spin Dur.: 24/" .. memory.read_s16_le(0x010DDC),"black","lime")
			else
				gui.text(0,276,"Slide Time: 22/" .. memory.read_s16_le(0x010DDC),"black","yellow")
				gui.text(0,292," Spin Time: 23/" .. memory.read_s16_le(0x010DDC),"black","yellow")
			end
end end end end end

emu.frameadvance() end