Typescript/Svelte IF Framework

Yes, Twine uses CodeMirror and allows story formats to provide editor extensions for it. It is used for the passages, and the story JS and CSS.

Again, the Twee format doesn’t really bring much to the table other than the passage system. I actually already made a Rust library and compiler for Twee back when I still thought making a story format was the best idea.

I read through the issue there is for that, and I understand you can’t use it in set command because that’d be ambiguous, but anyone that had high-school math would expect it’s valid to write something like (-2 + 7). It’s just weird that’s not possible. And set would be possible with (-2), that signals it’s the unary minus and not a set-and-subtract, and it gets rid of the confusing extra 0.

I picked out 3 issues I have: unary minus, operator precedence instead of parenthesizing absolutely everything (also something you’re not used to from regular maths), and a syntax for declaring proper functions that work like the built-in round: They get parameters and return a value, but don’t have choices or print anything. IIUC you can’t use commands in expressions, so you can’t use gosub or something like that for a reusable calculation that isn’t displayed.

With those changes, ChoiceScript is essentially a more beginner-friendly Ink, which is precisely what I want.

By the way, this quote:

Is what motivated me to work on keyboard accessibility yesterday. For touchscreen I’ll probably make an option that does something similar to ChoiceScript: Pulling all inline links out of the text, possible with the sentence they’re in or at least a bit of context and displaying a series of buttons for them after the passage. I’m determined there is a way to make an accessible cross-platform UI that’s at least a bit more pretty than the default ChoiceScript one.

1 Like