hey! I'm currently working on a code mod that doesn't directly use flowscript, but instead calls flowscript functions from C# via P5RPC.Lib, and I'm wondering if there's a function for checking if the player is in-game. I've tested FLD_CHECK_SAVE_DATA_LOAD, but it behaves strangely in that if you move to another location (i.e exiting a safe room), it returns zero. I've had issues with checking against FLD_GET_MINOR/MAJOR as well; it crashes at times, especially during transitions. any help is appreciated! 🫡
#Checking if the player is in-game via code
10 messages · Page 1 of 1 (latest)
Checking if the player is in-game via FlowScript
my guess would be that FLD_CHECK_SAVE_DATA_LOAD returns true (well, 1) if you loaded into that field by loading the save, as opposed to entering through another field
idk what you mean by "is ingame" though, do you mean like just normal gameplay as opposed to thieves' den or title screen? (since i would assume they are playing the game if your mod is running
)
normal gameplay
it's related to https://discord.com/channels/746211612981198989/1426432288891342948 since the call field epl (I forgot the name) function doesn't work on the title screen
ah
yeah pretty much normal gameplay
though looking at this post again I should've mentioned that it doesn't necessarily have to be done through a flowscript function
smth like a field in some gamecontext structure I could check would be perfect 
Checking if the player is in-game