OK, I’ve kinda fixed it in the latest version on github, but mostly not.
Quicktest now effectively skips *goto_scene and *gosub_scene lines that use {} or []. (Randomtest works fine.) If you have a file with a section that can only be reached using a curly referenced *goto_scene command, consider adding a section like this somewhere in your game, enumerating the possible destinations.
Quicktest will “run” those lines to verify that the chap1, chap2, and chap3 labels exist in the checkpoint scene, and verify that those labels will be actually covered by Quicktest.
But I speculate you’re getting tripped up on Quicktest’s fake bugs, the tendency to “cheat” on *if statements. For example, this will fail in the manner you described.
In real life, it should be impossible to have an error in this code, because the *goto_end line should never be called. But Quicktest will cheat and run the *if false command as if it were true, resulting in the bug you see here.
OK, yeah, I reproduce this error now. Quicktest tests each scene in isolation; if you *create variables with invalid values without setting them to something valid within the current scene, a fake bug may occur.
But since my version works and yours doesn’t, I think a reasonable workaround is to *create hold_scene "dummy" where there’s an empty dummy.txt file to satisfy Quicktest.
The ability to dynamically create an array would be really nice, copying and pasting hundreds of lines and manually changing the number is a real pain.
Maybe something like…
*create_array varName amount defaultvalue ?
*create_array soldier_ranks 20 "Private"
I also think the fact that you refer to an array like this[5] could confuse people when the actual variable is named/defined like this_5.
Other than that, these are all very useful features, a definite step in the right direction.
I’m looking very forward to using them.
I would like to use the new Array Syntax, but, a tad apprehensive if the syntax will change in the future. Has a final decision been made to keep the array syntax?
I agree that manually typing out the index numbers can be painful and you have my vote for Dynamic Array support. I’ve been using Spreadsheet App (Open Office Calc) as the Editor of choice working with ChoiceScript. Works quite well with consideration to the indention rules and lack of dynamic arrays. All I’m missing now is Syntax Highlighting. lol.
Could someone please help me out with the new spacing rules? Why are spaces after *if statements no longer working?
Two *line_break commands kind of work, but create a bigger space than I want. One *line_break is a single carriage return with no blank space (the same as it was before.) Blank lines don’t work at all. What’s the solution to manufacture a single blank line between paragraphs if you’re using *if statements?
Sorry for a little bit of a bump on this topic, but I’ve finally gotten around to using these features with a new project.
First off, again, I love these new features, but as others have said, the ability to either dynamically create an array, or do so with a one-liner like CJW suggested would be very useful. I had though I could compact things a little by using a loop, but since all the *create commands need to happen first, one can’t use a loop to set up an array.
@dfabulich
I’ve been trying out the array syntax with two dimensional arrays, and at first it seemed to work remarkably well (when printing values and even using two variables as the array indexes).
For some reason however the *set command seems to ignore the second pair of brackets?