I really like this idea a lot! For one thing, I find it easy to forget which project I’m working in if I have two similar-but-not-same versions of the same project running simultaneously, to test a certain section or not break my working version or such.
I would especially like this if the prompts would switch automatically to whatever project one last ran (or at least, if that could be an optional setting): so in opening, you’d be @global
, and then on hitting the run button Project One you’d have @Project_One
unless you manually switched back to @global
or @Project_Seventy-three
or what have you.
Regarding the console in general: I feel I should mention in general that I was once (years ago once, back in CSIDE beta) quite opposed to the Console, and certain aspects of it, because I came into ChoiceScript very green at coding and not terribly confident. I thought it was going to be a required tool for a bit and was very alarmed.
Then I relaxed cos I found out it isn’t required. Then I asked about a way to more easily navigate the code whilst playing through…Thanks to the help instructions and some fiddling around and questions, I fell in love with the Console. Being able to use it to jump to any scene or label whilst playing a game for beta testing, or set variables so I could try the same scene six times with different stats without having to restart or play through…all very helpful. Plus there’s using it for calculator functions, or using it to test code that’s not integrated into the game yet.
To expand on this a bit, if that’s all right:
When I’m tinkering around with the Console, one of my favourite functions is actually changing variable values. That’s basically using Console like a calculator. The commands in Console would look like this, much like in actual ChoiceScript:
*set var 50
*set var %+20
That would set your variable to an assigned value, and then alter that value.
Then, to get Console to tell you the new value of the variable, you would type in:
var
and the Console very helpfully replies
60
(or whatever the appropriate value is in your particular instance.)
So maybe what would be better is a clearer explanation of ‘How to Use the Console as a Fairmath Calculator’ in the helps documents? (Also @CJW, would it be possible, or smart, to add screenshots to the helps documents? That would make those kinds of explanations much easier. Also also, maybe this should be the topic of that article I promised to write about how CSIDE helps me be a better writer/coder…)
Whatever ends up happening with a ChoiceScript calculator within CSIDE, and I can see that there are loads of neat possibilities, I would love to still see a prefix function in the Console. It’d be really useful to have a global console (and maybe it could clear by either closing CSIDE or with the *clear command? seems logical). I don’t think it’d be confusing as long as the Console clearly marks which project, or the global, that’s being tinkered with. And I’d love to be able to tinker with two projects at once.
Edit: I made a little screenshot version of using the Console as a calculator, in case that’s useful to anyone. I used a *temp
variable I’d created in the scene file, but I could have also created a `*temp’ variable with Console if I didn’t want to change any of my game variable values. Here it is: