For the sake of making one of my wip mods practical to test, I want to call a menu ingame when the user presses a button. Currently, the way I'm attempting to do this is by having Input Hook listen for a keyboard button (the specific one being defined in mod config), then call a function that calls a custom bf when the button is pressed. Nothing actually happens when I press the button, though,.
I know there's no assurance that every flow function called by P5Rlib will actually work, but I remember being confused by Input Hook documentation since (c#) events aren't a thing I've worked with much, so I don't know if it's skill issue or an actual incomplete implementation, or if there's a way around it. The code for calling the menu looks like this (bf is named scr0002_00_00, note: the menu is actually set up to be compiled by bf emulator since when I wrote it it couldn't be manually compiled with then-latest Script Tools)
#Calling a flowscript when pressing a keyboard button?
7 messages · Page 1 of 1 (latest)
I think what you've got there is right (at least the input hook part). Have you tried logging a message or something in it to check whether it's actually being triggered?
I think the problem is the flowscript. Each call like that has its own context so I don't think that'll work. i.e. when SCRIPT_READ_SYNC is called it will be like only it was called, it won't know about the SCRIPT_READ one before it
I know I wanted to add a way to deal with this but tbh I don't remember if I actually did...
i should do that actually idk why i didnt think of that
ah
Yeah, pretty sure I didn't. Sorry