SHARE
TWEET

Wondershot Visualiser 2

Cronokirby Aug 15th, 2016 (edited) 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.  
  3. if mainmemory.readbyte(0x0117)==01 then
  4.  
  5. Mod = mainmemory.read_u8(0x0401) % 10
  6. WonderArray = {"1/10","1/2","1/2","1","1","1","1","2","2","3"}
  7.  
  8.     for i = 0,2 do
  9.         if mainmemory.read_u8(0x5e2d + (i*0x80) ) == 2 then
  10.             Positions = {mainmemory.read_u8(0x975a+i), mainmemory.read_u8(0x9765+i) - 40}
  11.    
  12.             for n = 0,9 do
  13.                 if n == Mod then
  14.                 Colors={}
  15.                 Colors[0]=(0xb0ff2121)
  16.                 Colors[1]=(0xb0ffa217) Colors[2]=(0xb0ffa217)
  17.                 Colors[3]=(0xb0beff56) Colors[4]=(0xb0beff56) Colors[5]=(0xb0beff56) Colors[6]=(0xb0beff56)
  18.                 Colors[7]=(0xb031ff83) Colors[8]=(0xb031ff83)
  19.                 Colors[9] =(0xb00dffff)
  20.                
  21.                     Box_Color = Colors[Mod] else
  22.                         Box_Color = (0xA0555555)
  23.                 end
  24.  
  25.                     gui.drawRectangle(Positions[1] + ( (n-3) * 6 ) ,Positions[2],3,3,Box_Color,Box_Color)
  26.             end
  27.                     gui.drawText(Positions[1]+ ( (Mod-4) * 6 ),Positions[2]-12,WonderArray[Mod+1],0xFFFFFFFF,10)
  28.         end
  29.     end
  30.        
  31. end
  32. emu.frameadvance()
  33. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top