Choicescript cave man here.
tldr: What’s the most elegant way of coding a tutorial mode into my game? I want choices in the game to show up (for the player) as:
Hit a ball hard and fast to the baseline [Strength] - If tutorial mode is on
Hit a ball hard and fast to the baseline - If tutorial mode is off
Does anyone know a code-efficient way to do this? Probably something to do with arrays, but I can’t seem to wrap my head around that.
I’ve searched the forums for a similar question, but I can’t seem to find anything. Thanks in advance for the help!
I’ve coded a “tutorial mode” into my game, College Tennis: Origin Story, mainly to make sure that folks who are less familiar with tennis (or anyone, really) understand which stats are being tested for each choice made during a tennis match. An example of this would be:
*choice #Hit a ball hard and fast to the baseline. [Strength]
I’ve also allowed players to toggle this mode on/off. Meaning that more ‘experienced’ players (or players who want to play with more immersion, can switch this tutorial mode off.
I’ve done this in the most primitive way possible: created two versions of the same scene:
- Version A presents each choice with a label [which stat is being tested]
- Version B presents just the choice
Obviously this is a terrible way to code, but the only other option I can think of is doing something like an “if” statement. I didn’t do this because I thought it would be almost just as much of a hassle.
*choice *if (tutorial_mode) #Hit a ball hard and fast to the baseline. [Strength] Blah blah... *if (not (tutorial_mode)) #Hit a ball hard and fast to the baseline. Blah blah...