Doing Things as the Player Prior to the Game "Starting" in ZILF

So, I’ve been playing around with ZILF the last few days and am trying to wrap my head around something that feels like it should be easier than I’m making it out to be. Upon loading the story file, I would like to immediately drop the player into a room - no title, no nothing, just an abrupt start in a room that, upon the player performing an action, said action routine (say, pulling a lever: LEVER-F) runs the GO routine and formally starts the game. Ideally, the GO routine then subsequently moves the player elsewhere; think: said lever opens a trap door and moves the player to a watery pit. Just an action that hard cuts to GO and suddenly the player jarringly finds themselves in another location.

Am I just missing something fundamental (probably) or is there more to this than meets the eye?

2 Likes

You can’t do any code before GO, it is the code entry point. You have to do your things before printing the title and such. I’m not sure what you want to do but it is certainly possible to start the game without printing the banner and do that at a later point when some conditions are true or some action is done.

5 Likes

I’m not sure why this never occurred to me; I knew I either had to be overthinking things or misunderstanding something elementary (or both). Thank you so much - this is so simple and I feel really silly for not realizing it sooner, lol.

2 Likes