Okay...first question is do your mini-games actually work? Like, can you call the function to start them in the game and the player can play them?
Yea, they work perfectly. Its a pretty basic setup I have now that plays a variation on Lights Out and a combination Wordle/Fallout 3+ terminal hacking. I use the selectable menu because really we're just picking and "toggling" values on a board, so it works well. They load up, run, and close out just fine. My only real issue now is the Lights Out occasionally spits out an unsolvable board, so I need to bone up on my mathematics and/or review a best approach to other variants.
About the uses; a good deal of my game is going to be generated procedurally. The goal is to make these items spawnable without needing a lot of overhead to find particular variables and shuffle stuff around. Using the in-game switches and variables could get conceptually sticky, at least to my mind. I swore I had written about the proc-gen aspect, but it appears I didn't or had in a previous draft as I was sorting out the ask but deleted it, so apologies because that does make a big difference in the why of it all. Al ot of this COULD be solved with some simple switches. By having the game be able to return a basic true/false from the call, the generated event itself can track anything it needs to know via self switches~ IE find a treasure chest with a jammed lock? We open a mini game, play, and return. On success, we award the items, throw self switch A, and A displays the open chest. On failure, we display a failure message and they can go again or maybe we throw self switch B, and B shows a busted chest.
I'm already using something similar, but that is already a simple true/false eval; I've written in a D&D-style ability, skill check, etc. system and I have a simple "skill check" function that will accept a stat to check and a difficulty, handle the die roll and bonuses, and report back a success or fail; an NPC in my test town currently mocks me for my low stats when I can't pass the ability checks.
Another NPC intertwines with this: they ask for help breaking into something, and offer a few choices. First is a skill check; a simple pass/fail check. Next is a mini game trigger, which launches the mini game. WITHIN the mini game I can run a success/fail check easily, and pop a game message to that effect, but what I'm trying to do now is step that up a bit and allow the event to handle it itself via that return true or false.
As a design aside, knowing feelings toward mini games, the example is deliberate; when mini games are presented in the game, you can either run a relevant skill check and take those results or play the mini game and accept that outcome. Even wrote up some functions that allow demonstrating your odds of success on the skill checks to help decision making; currently the base character has a 45% chance of helping the old guy break into something via a skill check, and we get to see that, and we have around a 65% chance of impressing the NPC, which we also see~ I feel better about doing the mini game than taking the roll of the die on the old guy
🙂
ALL SAID though, ATT_Turan, you've gotten me a bit inspired about an approach. I'm already taking us out of the normal flow using the separate scene and menu system so when you said that, it occurred to me that wait, that's not ENTIRELY unusual. Messages put a lot of stuff on hold while they process and wait for the user input, choices put things on hold for an entirely different set of user input, and often then proceed with messages and more code, and things like battles put the rest of the world on hold.
So, at the moment, I'm sifting through the game interpreter elements regarding wait modes and the messages, choices, etc. If I can configure a custom wait mode, I think I can get what I want out of it.