The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Reading a pointer from a custom table of pointers (to script bank)

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old September 22nd, 2018 (7:08 AM). Edited September 22nd, 2018 by hjk321.
hjk321's Avatar
hjk321 hjk321 is offline
 
Join Date: Sep 2017
Posts: 219
I'm working on a system that reads pointers from a table based on the value of a variable. I could probably just make a condition script, except for the fact that the variable in question will have hundreds of values throughout the game (it is the variable controlling the player's progress). Every pointer in the table I am making points to a string which will be used with a preparemsg command. It seems using loadpointer is the way to go but it does not accept variables. It would seem self-modifying code is the way to go here, where the script will custom-write a pointer based on the variable but I'm not sure where to go from here. No variation of writebytetooffset accepts variables either, so I can't dynamically write the self-modifying code to the part of the ROM where the loadpointer command is located. Do I need ASM for this? I doubt it, since what I'm trying to do is simple enough...

Thanks for any insight on this.

Edit: ASM is required, have most of it done. Just need to figure out how to access script banks in ASM...
__________________
Binary is dead.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:18 AM.