*goto_scene inside a stats screen?

I know I read, somewhere, that I shouldn’t be using goto_scene inside a stats screen, but I can’t find where I read it and have no idea what I should use instead, or if it’s an outdated post.

My code looks like this currently (And it works):

*stat_chart
  opposed_pair Rebel
    Dreamer

*choice
  #Relationships
    *goto_scene statsre


And then, on the scene stastre:
*stat_chart
  percent joshvar Joshua Falkland
 *choice
    #Stats
      *goto_scene choicescript_stats

Use *gosub_scene instead and on statstre you add a *return instead of that *goto_scene choicescript_stats.

For choicescript_stats.txt have a *label above *stat_chart and after the *gosub_scene have a *goto to this *label you made.

choicescript_stats.txt:

*label main_stats
*stat_chart
  opposed_pair Rebel
    Dreamer

*choice
  #Relationships
    *gosub_scene statsre
    *goto main_stats

statsre.txt:

*stat_chart
  percent joshvar Joshua Falkland
 *choice
    #Stats
      *return
2 Likes

This isn’t to do with coding … but it might be related :wink:

Are “Dreamer” and “Rebel” an opposing pair?

Plenty of rebels are dreamers. Indeed, it’s possibly true to say that all rebels start out as dreamers - Dreaming that there is a different/better (as they see it) way.

According to a website that says it knows

The opposite (antonym) of dreamer is realist
The opposite of rebel is loyalist

(Just sayin’ :wink: )

1 Like

Actually, it’s meant to look like that! Given the setting, you’re either a supporter of the “Dream” Initiative or… well, a rebel who doesn’t agree with those ideas (and may or may not be involved in actual revolts to take 'em down). Although, “loyalist” does sound kinda cool…

I’ll think about it, but yeah, it’s pretty much an stylistic choice atm. Thank you for commenting!

2 Likes

Question resolved!