Hello, I’m currently making a Tarot Card System for the WIP game I’m working on. Within it, I want to give the players a chance to have their fortune told, pretty much. I’ve tried *goto_random_scene, but for that, I would have to add over 78 different scenes within the *startup.txt, which is… rather impractical.
The best form of coding I’ve found so far is the *rand, but with the *rand, of course, you can reroll what you get simply by going to the Stat Screen. I’ll be adding stats by whichever of the 78 different cards you get. So, I feel, this would be a good way to cheat within the game…
Anyways, is there a way for me to be able to get the *rand going without them being able to reroll what they get? Thank you so much! Or if there’s a better way for me to do this, and give them a random *label in general, I would much appreciate it.
This is what my *rand coding looks like at the moment:
(Note that there are only 10 options below, but when finished there will be 26 different cards, over three choices, for 78 different outcomes.)
*temp tarotcard *rand tarotcard 1 10 *if (tarotcard=1) *set t_fool true *gosub t_fool *if (tarotcard=2) *set t_empress true *gosub t_empress *if (tarotcard=3) *set t_lovers true *gosub t_lovers *if (tarotcard=4) *set t_hermit true *gosub t_hermit *if (tarotcard=5) *set t_hanged_man true *gosub t_hanged_man *if (tarotcard=6) *set t_devil true *gosub t_devil *if (tarotcard=7) *set t_moon true *gosub t_moon *if (tarotcard=8) *set t_world true *gosub t_world *if (tarotcard=9) *set ace_of_c true *gosub ace_of_c *if (tarotcard=10) *set a4_of_c true *gosub a4_of_c *page_break
I tried adding the *page_break at the end to keep the player from being able to reroll their outcome, but, of course, it didn’t work. This is what one of the tarot cards look like:
*label t_empress This is random placeholder text for t_empress *page_break *goto secondcard
Anyways, thanks ahead of time, and I apologize if I’m being dumb with how I’m trying to go about this lol.