ChoiceScript Full Tutorial (finished!)

Also useful:

Quicktest troubleshooting
Randomtest troubleshooting

Stats page help (Note that there is another Stats Page example with the Design Templates page.)

6 Likes

I’m pretty proficient at this, despite being relatively new to it, because I know a handful of other scripting languages.

HOWEVER this looks like an immensely helpful tool that I will have bookmarked for reference if/when I come across any issues.

Thank you so much! :two_hearts:

3 Likes

Nice! The lack of internal URLs/bookmarkability was my main complaint about this resource. I was worried you wouldn’t be able to add that without revamping the whole thing, which is why I didn’t mention it.

Once people get to grips with the tutorial elements of your site they might ask ‘what’s next?’

You might wish to consider a section linking forum demos demonstrating innovative coding with choicescript (or even if you’re up for it, a hyperlink to one of the game’s scene files so they can immediately review the code)

These could be assembled under simple headers, like

  • introducing external instructions (for saving / multiplayers)
  • using advanced inventories
  • highly graphical games
  • advanced randomisation
    that kind of thing

I only mention it because I thought of your site when I wanted to find a quick way of viewing innovative ways of using choicescript :blush:

2 Likes

I like that idea, especially since the sheer volume of the forum tends to overwhelm me. Although, since it can be overwhelming, I think it’s that much more important to help sort it out! I just finished doing some moving stuff, so I think I’ll start looking into it. If you have suggestions for specific forum posts though, everything helps!

4 Likes

@jeantown’s Guenevere has a *restore_password function that’s useful to look at - but I believe it requires adding a line of script to the game files

@Lordirish does pretty good examples of inventory systems - there’s one in Norif I: The Lost Raven but he might be able to say which is the best example for code

@aetheria did a great job with visuals in Lunchtime at St. Expeditus

I don’t think there’s anything available to look at yet from Chronicles of Mornland - which has some kind of multiplayer function.

: )


I’ve been trying to find games with developed code around randomisation, grammar matching etc. (I offer my mini game Wilson until a better example is suggested)

3 Likes

Seems I’m a bit late to the CS Tutorial fest! @Lglasser Amazing work here :clap: Being a more interactive and visual learner, this tutorial would have worked wonders for learning.

At least now I have something to get me back into the flow of things if ever I take a long break. Thanks for such a grand contribution. :smiley:

1 Like

Typo

*create (Create a permanemt variable)

4 Likes

Thanks a bunch! Fixed! :smiley:

3 Likes

The tutorial is offline, do you have it uploaded anywhere else?

1 Like

That is really weird. I’m about to go to bed but I’ll see if I can fix it tomorrow and upload the files here too at least. It will be a nice excuse for fixing some smaller issues as well.

2 Likes

Okay, I checked the website this morning and it looked up for me. Just to be sure, I refreshed it. But I’ve also uploaded the page onto my dropbox, along with a .tws file there if you want to look at the Twine file.

Copy of Tutorial on Dropbox

Twine File

2 Likes

Hello I am new here and I wanted know how do we install Choice script because i’m not understanding the directions they are giving me.

Hello! I’m new to writing in ChoiceScript and have a question about something. I know you can use ${} so the player can personalize their name and/or other various things, but I was wondering if I could use it for setting pronouns as well. I’ve been looking at the Choice of Dragon startup.txt Princess section as an example, but this character would be present throughout the whole game instead of the smaller section used as an example. Would anyone know how to do that or should I nix that altogether?

Thanks so much!

3 Likes

Oh shoot I just found it in the tutorial, sorry! Never mind.

1 Like

No worries, glad you found it! I’d​ love to make that info more accessible to folks in the future, however. Where were you in the tutorial when you were wanting to know this info? Or where did you try to look for it?

2 Likes

Well, so my friend and I can both work on it at the same time, we’ve been writing everything out in Google Docs using the Choice of Dragon sample as an example of how things should be laid out. When I tried to test the code, it said there were errors, and when looking for help I came across this! (Thank you so much for creating this, by the way! It’s a lifesaver.) Since I was looking for ${} specifically since that was what I knew, the Text Variables (Strings) section was the one I looked at first. I’m definitely going to go through the whole thing from the top, though, so I can get a better grasp of everything.

3 Likes

Thanks for this buddy somehow I will be needing this tutorial badly…I’m working on a project right now and soon to begin the coding once I’m familiar with the basic syntax. Kudos to you mate!

1 Like

I’m sorry, but is it just me or is the website for the tutorial down?

1 Like

Not just you, the website is down. Hopefully this gets fixed soon