I have a bunch of little questions. I’m looking at original Choicescript only, no mods. Here we go:
Can you rename the Next Chapter button?
Can you remove the Next Chapter button?
Is there a benefit/detriment to linking the game with goto_scene instead of listed through the mygame?
Is there much benefit to using multiple short scenes instead of one long scene? If so, is there an optimal size or size that is “too big” for a single scene file?
Do temp variables vanish during a goto_scene? If so, does this mess up temp variables when using savepoints for games like Zombie Exodus?
Is there much benefit to avoiding global variables by using temp variables?
*page_break New Button type
It also works with *finish IIRC.
I think *goto_scene does not produce a Next Chapter button.
To my knowledge there is no downside to using *goto_scene over *finish.
This really depends. Once scenes hit a certain length they can take a little while to load, particularly if they are being played online. This can cause some issues if the game is online and being played on a spotty internet connection. But other than that there isn’t a huge issue about the size.
Yes, *temp variables disappear whenever there is a new scene. I’m not sure how games like ZE handle their internal saving, but if you really don’t want to crowd up mygame.js, I’m pretty sure *create still technically works.
It saves a little bit of memory (and with some games, the lists of variable can be huge), and I think it helps some authors to keep in mind what is important and unimportant, but to my knowledge you’d really have to try to break CS to get a list of variables big enough for it to really matter.
I’ll just babble on about variables and mygame.js since Reaperoa ninja’d me.
Δ.) Because one might hate the idea of a messy mygame.js file, I’d recommend that you can create your first scene as, let’s say, a genesis scene, where you *create all the ittybitty world stats, *set them, and then finish with a *goto_scene. You’ll never have to worry about seeing the petty booleans or variables that you only ever use once or twice in your mygame.js… and you can also *delete them once done.
That’s also useful for generating a random startup for testing.
Ω.) On the other hand, you can still have a fairly organized mygame.js using Javascript comment commands. // can interrupt even in the middle of the stat list, allowing a semblance of division, and therefor organization. I’ll give you a pic of one of my decommissioned games.
I’d go for an organized mygame.js file over *create-ing anything, myself. Not sure what the “genesis scene” really gets you, @Caddmuss – does it really make a difference where the ittybittys get stashed? The omega option looks much more appealing to me.
@Lucid thanks; I’ll keep that in mind when I next use the *goto_scene command! And, to add in my opinion, I use mygame.js instead of *create for variables (entirely). Also, I believe that somewhere (possibly in the CoG blog) the removal of the *create command was thought about, so if that happens there could be a spot of bother (not too much extra work, but it would be annoying and every second spent bug fixing is a second not spent writing)!
@Havenstone, I toyed with the idea of a randomly-generated world with a rather large number of variables. With the small, but numerous pitfalls that a cluttered mygame.js looked like when I started, the usage of an invisible vignette seemed to make sense to me, though it may be more than a bit vague to you.
NBD though, I abandoned it, for the most part, and figured I keep the idea for another day while I (pretend to) work on other things.