Sudden medium update info here
-- Crash Huge Adventure lua v1.8
-- This is Community Work Please Help
-- Join in add updates of your own and add your name
-- Values found by: Spikestuff, Got4n, Dica
-- Script Edited by: Spikestuff, Warepire, Ilari, Dica
-- Thanks to: true (FALSE!)
while true do
local air = memory.readbyte(0x02010A7C)
local airb = memory.readbyte(0x03007C82)
local pack = memory.readbyte(0x02010A71)
local area = memory.readbyte(0x02010E06)
local areab = memory.readbyte(0x02010DD1)
local mask = memory.readbyte(0x0200009C)
lvl = memory.readbyte(0x020000E8)
bossc = memory.readbyte(0x020002A7)
local bombhealth = memory.readbyte(0x03004130)
local turthealth = memory.readbyte(0x030040B0)
dshi = memory.readbyte(0x02003EFC)
cdw = memory.readbyte(0x02010DE7)
hide = memory.readbyte(0x030023DB)
-- SPEED AND/OR PIXEL POS.
if boss == 64 or boss == 132 or lvl ~= 24 and hide == 0 then else
if lvl == 23 then --Cortex
gui.text(94,8,"PixelX: " .. memory.readshort(0x02010A15))
gui.text(94,16,"PixelY: " .. memory.readshort(0x02010A19))
gui.text(169,8,"SpeedX: " .. memory.readwordsigned(0x02010A74))
gui.text(169,16,"SpeedY: " .. memory.readwordsigned(0x02010A78))
gui.text(1,120,"Camera: " .. memory.readshort(0x02006E5D),"teal")
gui.text(1,129,"Spin Time 23/" .. memory.readbyte(0x02010DDC))
gui.text(1,138,"Slide Time: 22/" .. memory.readbyte(0x02010DDC))
else if areab == 0 then -- Polar
gui.text(1,111,"Speed " .. memory.readbyte(0x03003F18) .. "/2","teal")
else if area == 1 or area == 2 then -- Normal
gui.text(8,30,"PixelX: " .. memory.readshort(0x02010A15),"orange")
gui.text(8,38,"PixelY: " .. memory.readshort(0x02010A19),"orange")
gui.text(8,46,"SpeedX: " .. memory.readwordsigned(0x02010A74),"orange")
gui.text(8,54,"SpeedY: " .. memory.readwordsigned(0x02010A78),"orange")
gui.text(1,120,"Camera: " .. memory.readshort(0x02006E5D),"teal")
gui.text(1,129,"Spin Time 23/" .. memory.readbyte(0x02010DDC))
gui.text(1,138,"Slide Time: 22/" .. memory.readbyte(0x02010DDC))
else if area == 0 or area == 32 or area == 16 then -- Bonus
gui.text(8,30,"PixelX: " .. memory.readshort(0x02010E2D),"#CCFF33")
gui.text(8,38,"PixelY: " .. memory.readshort(0x02010E31),"#CCFF33")
gui.text(8,46,"SpeedX: " .. memory.readwordsigned(0x02010E8C),"#CCFF33")
gui.text(8,54,"SpeedY: " .. memory.readwordsigned(0x02010E90),"#CCFF33")
gui.text(1,120,"Camera: " .. memory.readshort(0x02007275),"teal")
gui.text(1,129,"Spin Time 23/" .. memory.readbyte(0x020111F4))
gui.text(1,138,"Slide Time: 22/" .. memory.readbyte(0x020111F4))
else if area == 5 or lvl == 8 then -- Water
gui.text(8,30,"PixelX: " .. memory.readshort(0x02010A15))
gui.text(8,38,"PixelY: " .. memory.readshort(0x02010A19))
gui.text(8,46,"SpeedX: " .. memory.readwordsigned(0x02010A74))
gui.text(8,54,"SpeedY: " .. memory.readwordsigned(0x02010A78))
gui.text(8,62,"Swim: " .. memory.readbytesigned(0x02010DE6))
gui.text(1,120,"Camera: " .. memory.readshort(0x02006E5D),"teal")
gui.text(1,128,"Spin Dur.: 24/" .. memory.readshort(0x02010DDC),"teal")
if cdw ~= 0 then
gui.text(1,136,"Cooldown: " .. memory.readbyte(0x02010DE7)-1,"teal") end
else if area == 119 then -- Flying
gui.text(1,111,"Pack: " .. memory.readbyte(0x02003484),"teal")
gui.text(1,120,"Cooldown: " .. memory.readbyte(0x030014E0),"teal")
if lvl == 21 then -- N.Gin
gui.text(165,46," Rockets: " .. memory.readshort(0x030041B0)/2 .. "/" .. memory.readshort(0x03004230)/2,"teal")
if bombhealth ~= 255 then gui.text(165,38," Bomb: " .. (bombhealth+1)/2,"teal") else gui.text(165,38," Bomb: 0", "teal") end
if turthealth ~= 255 then gui.text(165,54," Turret: " .. (turthealth+1)/2,"teal") else gui.text(165,54," Turret: 0", "teal") end
end end end end end end end end
-- Instage time: This resets on deaths WE DON'T WANT DEATH
if boss == 132 or lvl ~= 24 and hide == 0 then else
if boss == 64 then
gui.text(1,129,"Time: " .. memory.readshort(0x020034C8),"#CFCFCF") else
if area == 1 or area == 2 or area == 5 or lvl == 8 or area == 0 or area == 32 or area == 16 then
gui.text(1,111,"LTime: " .. memory.readshort(0x0300082C),"#CFCFCF") else
if areab == 0 then
gui.text(1,119,"LTime: " .. memory.readshort(0x03001404),"#CFCFCF") else
if area == 119 then
gui.text(1,129,"LTime: " .. memory.readshort(0x03001404),"#CFCFCF")
end end end end end
-- Level Check
if boss == 64 or boss == 132 or lvl ~= 24 and hide == 0 then else
if areab == 0 then gui.text(1,102,"POLAR","#D6AD33") else -- POLAR
if area == 5 or lvl == 8 then gui.text(1,102,"WATER","teal") else -- WATER
if area == 119 then gui.text(1,102,"FLYING","#DBB84D") else -- FLYING
-- Bonus
if airb == 0 then gui.text(1,102,"GROUND","#999900") else
if airb == 2 then gui.text(1,102,"AIR","#66FFCC") else
-- Normal
if air == 8 then gui.text(1,102,"GROUND","#999900") else
if air == 0 then gui.text(1,102,"AIR","#66FFCC") else
end end end end end end end end
-- Invisi Time
if areab == 0 then
if mask == 3 then
gui.text(84,54,"SAFE: " .. memory.readshort(0x0300147C),"yellow")end else
if area == 0 or area == 16 or area == 32 then -- BONUS
if mask == 3 then
gui.text(84,54,"SAFE: 1199 / " .. memory.readshort(0x03001DD0),"yellow") end else
if mask == 3 then
gui.text(84,54,"SAFE: 1025 / " .. memory.readshort(0x03001DD0),"yellow") else end end end
-- Boss Positions.
if boss == 64 or boss == 132 or lvl ~= 24 and hide == 0 then else
if lvl == 20 then -- Dingodile
gui.text(169,38,"Dingo X: " .. memory.readshort(0x02011825))
gui.text(169,46,"Shield: " .. ((dshi == 1) and "ON" or "OFF")); else
if lvl == 22 then -- Tiny
gui.text(169,38,"Tiny X: " .. memory.readshort(0x02011F4D))
gui.text(169,46,"Tiny Y: " .. memory.readshort(0x02011F51)); else
if lvl == 23 then -- Cortex
gui.text(94,138,"Cortex Cool: " .. memory.readbyte(0x020123F4))
gui.text(169,130,"Cortex X: " .. memory.readword(0x02012349))
gui.text(169,138,"Cortex Y: " .. memory.readword(0x0201234D))
end end end end
-- Mask Check
if mask > 0 and mask < 4 then
if lvl ~= 24 and hide == 0 then gui.text (1,8,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
if boss == 64 then
gui.text(84,26,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
if area == 119 or boss == 132 then else
if lvl == 20 or lvl == 22 then
gui.text(169,30,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
if lvl == 23 then
gui.text(94,24,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
gui.text(84,46,"Mask Level: " .. memory.readshort(0x0200009C),"yellow")
end end end end end end
-- Lives and Boxes
if lvl ~= 24 and hide == 0 then else
if boss == 64 or boss == 132 then gui.text(84,18,"Lives: " .. memory.readshort(0x02000098)) else
if lvl == 20 or lvl == 21 or lvl == 22 or lvl == 23 then
gui.text(39,8,"Lives: " .. memory.readshort(0x02000098)) else
gui.text(84,38,"Lives: " .. memory.readshort(0x02000098))
if lvl == 20 or lvl == 21 or lvl == 22 or lvl == 23 or boss == 64 or boss == 132 then else
gui.text(84,30,"Boxes: " .. memory.readshort(0x02003474) .. " / " .. memory.readshort(0x02000094))
end end end end
--Things that don't need to change.
if movie.active()==false then gui.drawbox(150,148,240,160, "red")
if movie.active()==false then gui.text(158,151, "MOVIE NOT RECORDING") end end
if movie.active()==true then gui.text(1,0,"RR: " .. movie.rerecordcount()) end
vba.frameadvance() end