UPDATE
I no longer update or actively support the Online Choicescript Tester.
Please see the Choicescript IDE instead.
I’ve wanted to do something like this for a while now, but only just got around to it.
It’s a very simple tool in both design and purpose - it basically allows you to copy and paste choicescript code into a textbox on a web page and ‘run’ that code straight away in your browser, saving you the hassle of opening up your text editor and messing around with files or making fresh copies of choicescript.
It’s really intended for just quickly testing out simple code, perhaps an example someone posted in a thread or some standalone stuff on the wiki (my mini-scenes system will run in it for e.g.: http://choicescriptdev.wikia.com/wiki/System_mini-scenes).
It really is just a tool of convenience I wanted for personal use, but I thought I may as well share it with everyone else too.
It has its limitations of course, you can’t set (and thus, use) global variables, scene navigation (*finish, *goto_scene etc). Apart from that, it uses a proper a up to date version of CS to run the code, I’ve just changed where it sources the code from, so everything should work just fine (and has for me so far).
If you’re curious and want some examples, feel free to copy and paste the following code snippets into the tester (it runs fine even with the pre tag generated line breaks, though formatting is unavoidably weird).
Capitalization
*temp var
*set var "capitalization is cool"
${var}
$!{var}
$!!{var}
A Simple Loop
*temp n
*set n 0
*label loop
*set n + 1
${n}
*if (n < 10)
*goto loop
A Choice
What is your favourite colour?
*fake_choice
#Red
#Blue
#No! Yell-
Very good.
@archene There’s a side-by-side version here now. I’m not sure having the text below it would look as good, if you had a lot of lines of code you’d be constantly scrolling back and forth.
@FairyGodfeather
I’m really glad people are finding this useful! I thought for a while that I was the only one… x)
Again, please do let me know if you think of any potential improvements!
Without really thinking, I’d say something like integrating your syntax highlighter into it, but that would be like gilding a lily. This is perfect the way it is.
Thanks for the bump, always good to know when things are proving useful!
Edit: The side by side one seems borked, I’ll look into (sorry!)…
Edit2: And fixed, though I’m not sure how up-to-date the testers are so if anyone experiences any problems using the new commands, please let me know and I’ll update them!
Bumping this thread back to the main page since I just linked it to a couple of people. The choicescript tester is amazing! I think it’s one of the most valuable tools for coding out there.