If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Lua:Idol Hotline: Nakayama Miho no Tokimeki High School

From The Cutting Room Floor
Jump to navigation Jump to search

This page contains Lua scripts for the game Idol Hotline: Nakayama Miho no Tokimeki High School.

Dialogue Id Displayer

FCEUX

while true do
  gui.text(20, 20, "Dialogue ID #1: " .. string.format('%02d',memory.readbyte(0x6122)))
  gui.text(20, 30, "Dialogue ID #2: " .. string.format('%02d',memory.readbyte(0x6123)))
  gui.text(20, 40, "Dialogue ID #3: " .. string.format('%02d',memory.readbyte(0x6124)))
  gui.text(20, 50, "Dialogue ID #4: " .. string.format('%02d',memory.readbyte(0x6125)))

emu.frameadvance()
end

Mesen

function sceneInfo()
  state = emu.getState()

  --Draw some rectangles and print some text
  emu.drawRectangle(8, 8, 120, 40, 0x302060FF, true, 1)
  emu.drawRectangle(8, 8, 120, 40, 0x30FF4040, false, 1)
  emu.drawString(12, 12, "Dialogue ID #1: " ..  string.format('%02d', emu.read(0x6122, emu.memType.cpu)), 0xFFFFFF, 0xFF000000, 5)
  emu.drawString(12, 20, "Dialogue ID #2: " ..  string.format('%02d', emu.read(0x6123, emu.memType.cpu)), 0xFFFFFF, 0xFF000000, 5)
  emu.drawString(12, 28, "Dialogue ID #3: " ..  string.format('%02d', emu.read(0x6124, emu.memType.cpu)), 0xFFFFFF, 0xFF000000, 5)
  emu.drawString(12, 36, "Dialogue ID #4: " ..  string.format('%02d', emu.read(0x6125, emu.memType.cpu)), 0xFFFFFF, 0xFF000000, 5)
end

emu.addEventCallback(sceneInfo, emu.eventType.endFrame)

Instrument Displayer (FCEUX)

while true do
  gui.text(20, 20, "Instrument: ")
  gui.text(20, 30, "Square 1: " .. string.format('%02x',memory.readbyte(0x60)))
  gui.text(20, 40, "Square 2: " .. string.format('%02x',memory.readbyte(0x61)))
  emu.frameadvance()
end

Cursor Coordinate Displayer (FCUEX)

Form Screen

Blue Cursor

while true do
  gui.text(20, 20, "Cursor: ")
  gui.text(20, 30, "X: " .. string.format('%02x',memory.readbyte(0x207)))
  gui.text(20, 40, "Y: " .. string.format('%02x',memory.readbyte(0x204)))
  emu.frameadvance()
end

Pink Cursor

while true do
  gui.text(20, 20, "Cursor: ")
  gui.text(20, 30, "X: " .. string.format('%02x',memory.readbyte(0xC5)))
  gui.text(20, 40, "Y: " .. string.format('%02x',memory.readbyte(0xC6)))
  emu.frameadvance()
end

In-Game Menu Cursor

while true do
  gui.text(20, 20, "Cursor: ")
  gui.text(20, 30, "X: " .. string.format('%02x',memory.readbyte(0x20B)))
  gui.text(20, 40, "Y: " .. string.format('%02x',memory.readbyte(0x208)))
  gui.text(20, 50, "Menu option #: " .. string.format('%02x',memory.readbyte(0xb1ae)))
  emu.frameadvance()
end

Name Screen

while true do
  gui.text(20, 20, "Cursor: ")
  gui.text(20, 30, "X: " .. string.format('%02x',memory.readbyte(0xC5)))
  gui.text(20, 40, "Y: " .. string.format('%02x',memory.readbyte(0xC6)))
  gui.text(20, 50, "Name X: " .. string.format('%02x',memory.readbyte(0xC7)))
  emu.frameadvance()
end