- 222
- Posts
- 7
- Years
- Seen Nov 18, 2023
Now I'm sure a lot of us know you can use loadpointer in conjunction with preparemsg to dynamically change the value of a displayed textbox like so:
But I'm curious to know if there was a (preferrably non-ASM) way to do a similar thing and call the pointer at script bank 0? Like a script could, in effect, dynamically change the functionality of another script down the road.
I looked through the command listings and surprisingly the support for banks is very limited within the game engine. Most commands that accept banks as parameters simply perform operations of those banks.
But maybe I missed something. There's no possible way the engine could support strings and not other pointers within the banks. Anyone ever tried this before? It might just be that I'll have to either work around this or buckle down and learn how to code ASM.
Spoiler:
Code:
loadpointer 0x0 0x740009 [I]' Points to a string, and loads it to bank 0x0[/I]
------------
[I]'separate, generic function that gets called a lot[/I]
preparemsg 0x0
waitmsg
return
But I'm curious to know if there was a (preferrably non-ASM) way to do a similar thing and call the pointer at script bank 0? Like a script could, in effect, dynamically change the functionality of another script down the road.
I looked through the command listings and surprisingly the support for banks is very limited within the game engine. Most commands that accept banks as parameters simply perform operations of those banks.
But maybe I missed something. There's no possible way the engine could support strings and not other pointers within the banks. Anyone ever tried this before? It might just be that I'll have to either work around this or buckle down and learn how to code ASM.
Last edited: