#Checking if the player is in-game via code

10 messages · Page 1 of 1 (latest)

round grove
#

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! 🫡

round grove
#

Checking if the player is in-game via FlowScript

brazen steeple
#

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 adachi_true)

reef hare
#

normal gameplay

brazen steeple
#

ah

round grove
#

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 MitsuruTrue

#

Checking if the player is in-game