GenesisFan64

ecco

Apr 1st, 2021
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. -- ECCO LUA Script
  2. -- This calls the routine that shows a message on screen
  3. -- for a custom message see below.
  4. -- DO NOT run this script again until the current message finishes
  5. --
  6. -- **INFO**
  7. -- 0x5B88 - Second string list
  8. -- 0x61B6 - MAIN string list
  9. -- (free slots: 0x61C0 to 0x65BB)
  10. -- CALL ROUTINE:
  11. -- pc: 0x671F2 (or 0x671F4)
  12. -- id: d7 [byte]
  13. -- 0xFFA56B BACKGROUND COLOR (0-5)
  14.  
  15. -- For making your own custom message: (HEX editing)
  16. -- Disable checksum      - 000348:4E71
  17. -- Set new entry pointer - 006298:0000 00629A:62A0 | put your text string at 0x0062A0
  18. -- Then call it with this ID:
  19. -- MESSAGE_ID    = 0x37
  20. --
  21. -- *string data special bytes*
  22. -- 0x0A next line
  23. -- 0x00 normal End-of-Text
  24. -- 0x0D stops and waits user to press A
  25. --
  26. -- Then call this script with this message id:
  27. --
  28.  
  29. PC_CALLMSG    = 0x671F2
  30. MESSAGE_ID     = 0x01
  31. MESSAGE_COLOR  = 0x00 -- from 0x00 to 0x05
  32.  
  33. memory.setregister("d7",MESSAGE_ID)
  34. memory.writebyte(0xFFA56B,MESSAGE_COLOR)
  35. memory.setregister("pc",PC_CALLMSG)
Add Comment
Please, Sign In to add comment