# Things that make it worth writing using choicescript

**URL:** <https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337>\
**Category:** Game Development\
**Created:** [June 25, 2018, 3:08pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337 "2018-06-25T15:08:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/will/32/132033_2.png) [@will](https://forum.choiceofgames.com/u/will)\
**Post date:** [June 25, 2018, 3:08pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/1 "2018-06-25T15:08:52Z")

</div>

I’m having a blast building a project with choicescript. One thing in particular that I think makes the format worthwhile is the control you have over pacing that you wouldn’t normally have in straight prose.

You want an action scene to be fast paced? Short paragraphs, long sentences, no page breaks, tonnes of spacing. You fly through at a breakneck speed.

You want a slow, contemplative, romantic moment between two characters that takes its time as the characters get to know each other? Allow the player to choose each line of dialogue, and the conversation will drift at a slow, deliberate pace, where every word is meaningful.

The possibilities of the format allow for such a high degree of control over the pacing that it almost makes me giddy.

What are some other things that people like about the format that you wouldn’t necessarily “get” at first glance?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 25, 2018, 3:17pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/2 "2018-06-25T15:17:11Z")

</div>

Then again, having the player pick every line of dialogue can be nauseatingly dull and get people to get a refund/not buy the game.

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [June 25, 2018, 3:32pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/3 "2018-06-25T15:32:54Z")

</div>

Choicescript’s main strength, and sometimes a downfall, would be its simplicity, I would say. People who have never had any experience with other coding languages can easily make a very good game.  
On the other hand, the coding can become too restricting and force you to create solutions than require more work, than say, it’d require on some other language.  
That’s just my opinion.

---

<div class="post-metadata">

**Author:** ![kgold](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kgold/32/146832_2.png) [@kgold](https://forum.choiceofgames.com/u/kgold)\
**Post date:** [June 25, 2018, 4:42pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/4 "2018-06-25T16:42:49Z")

</div>

Something I like about the format over normal prose is that it can feel more personal. After not just customizing your character but making some decisions that speak to your personality, the game can really react to that. Did your cautious approach result in failing to win over the love interest? Did your silly approach make a mess of things? People can take ownership in a story they feel they helped create, and maybe even read some lessons for themselves into what happens.

Something I like over parser-based IF is that it’s much easier for the player to take actions that will meaningfully advance the story. While the parser player is going N N S looking for something to TAKE that they missed, the same number of interactions in ChoiceScript can start a war, end an affair, and pick some snappy dialogue to top it off.

Something I like over any non-text medium is that you get to make Big Observations. There’s one I still like from my game Choice of Robots where you realize that whatever you felt about your robot, your mother must have felt at least that about you. It would have had to be someone’s dialogue in most other media. I like letting that sort of thing be a part of the POV.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [June 25, 2018, 4:56pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/5 "2018-06-25T16:56:51Z")

</div>

> [@kgold](#):
>
> There’s one I still like from my game Choice of Robots where you realize that whatever you felt about your robot, your mother must have felt at least that about you.

Does that mean we’ll be seeing some “my grandchild is a robot” T-shirts any time soon? 🤩

---

<div class="post-metadata">

**Author:** ![Melancholy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/melancholy/32/59552_2.png) [@Melancholy](https://forum.choiceofgames.com/u/Melancholy)\
**Post date:** [June 25, 2018, 4:57pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/6 "2018-06-25T16:57:33Z")

</div>

100% this.  
I mean, I know most authors don’t have much experience with programming, and having such a simplistic syntax helps them create games without much hassle, but for anyone with a little programming knowledge, ChoiceScript is… a _experience,_ to say the least.

The labels, the more restrictive variables, the clumsy ways to create efficient subroutines (e.g not being able to pass variables over easily) is irritating. For a lack of a better word, it feels almost clunky when attempting to incorporate game mechanics and systems.

Nonetheless, it is still a decent language to use for interactive stories with minimal pictures/music.

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [June 25, 2018, 5:01pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/7 "2018-06-25T17:01:54Z")

</div>

Hard work pays off more, eh?  
Agreed, choicescript is indeed a great engine, but it’s much more satisfying to achieve positive results in a much more complex programming language.

---

<div class="post-metadata">

**Author:** ![kgold](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kgold/32/146832_2.png) [@kgold](https://forum.choiceofgames.com/u/kgold)\
**Post date:** [June 25, 2018, 5:11pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/8 "2018-06-25T17:11:48Z")

</div>

Pretty obscure, but then, I’d personally be inclined to put an electrified pickle and/or Alaska on the T-shirt, so who am I to judge?

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [June 25, 2018, 5:24pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/9 "2018-06-25T17:24:23Z")

</div>

![isarobot](https://global.discourse-cdn.com/choiceofgames/original/3X/1/3/13396106df6be9af349249d4a0b009c3519108dc.jpg)

😁

Back on topic…

I love how ChoiceScript is very friendly to people who do not have any training or background in programming. The language is very easy to pick up and understand, and the limits of what you can do with it are quite astounding. My own project, Missing Wings, has several games and mini-games in it and part of the reason I did that was to show my love. ❤

---

<div class="post-metadata">

**Author:** ![Franzinyte](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/franzinyte/32/170556_2.png) [@Franzinyte](https://forum.choiceofgames.com/u/Franzinyte)\
**Post date:** [June 25, 2018, 10:13pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/10 "2018-06-25T22:13:10Z")

</div>

> [@Melancholy](#):
>
> the clumsy ways to create efficient subroutines (e.g not being able to pass variables over easily) is irritating.

Um, I’m not sure if this is what you mean, but have you tried using `*params`? It’s not perfect, but I use it in my stats subroutine along with multireplace and it’s been working nicely.

> [@New ChoiceScript features: implicit control flow, gosub parameters](https://forum.choiceofgames.com/t/new-choicescript-features-implicit-control-flow-gosub-parameters/30042):
>
> Thanks to a big code contribution from @kgold, there are new features to try in the latest version of ChoiceScript up on GitHub: implicit control flow and \*gosub parameters. Implicit control flow Normally, you have to use a \*goto before the end of a \*choice #option or before an \*else, or you’ll get errors like this: It is illegal to fall out of a \*choice statement; you must \*goto or \*finish before the end of the indented block. It is illegal to fall in to an \*else statement; you must \*goto o…

---

<div class="post-metadata">

**Author:** ![lunawisp](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lunawisp/32/85423_2.png) [@lunawisp](https://forum.choiceofgames.com/u/lunawisp)\
**Post date:** [June 26, 2018, 7:38am UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/11 "2018-06-26T07:38:22Z")

</div>

What makes this awkward for people used to other languages is that you can pass parameters via a gosub but not a goto, there’s no way to return a value from a gosub, there are no data structures at all (strings and numerics don’t cut it any more), the fact that you can only compare two variables/constants at a time and have to resort to messy bracketing.

Having said that, it wasn’t designed as a language for creating your next great MMO. What it does, it does very well and there are ways around all of those issues. It’s also evolving, the ability to use parameters with gosub is quite a recent development and no longer having to use goto after every single choice statement or in the middle of it…else… constructs is also quite new - and a godsend!

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/will/32/132033_2.png) [@will](https://forum.choiceofgames.com/u/will)\
**Post date:** [June 26, 2018, 1:12pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/12 "2018-06-26T13:12:17Z")

</div>

> [@Franzinyte](#):
>
> multireplace

Just found out about this feature. It’s not covered in the standard tutorials! I had seen the `@{}` structure while snooping through other people’s code and just assumed it was black magic. It’s gonna be kind of awkward having half of my WIP an awkward mess of its and elseifs and elses and gotos and the second half a beautifully streamlined multireplace extravaganza, but such is the cost of progress.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [June 26, 2018, 1:31pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/13 "2018-06-26T13:31:28Z")

</div>

Other tricks that you might not know:

- `[n/]` = `*line_break`, but usable in-line with your story sentences.
- `[i][/i]` for italic
- `[b][/b]` for bold
- `*text_image` is an equivalent to `*image`, but your assigned image’s color will be inverted as you switch the screen to night/dark mode.

---

<div class="post-metadata">

**Author:** ![Hazel](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hazel/32/77796_2.png) [@Hazel](https://forum.choiceofgames.com/u/Hazel)\
**Post date:** [June 26, 2018, 2:24pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/14 "2018-06-26T14:24:46Z")

</div>

> [@Szaal](#):
>
> `*text_image` is an equivalent to `*image` , but your assigned image’s color will be inverted as you switch the screen to night/dark mode.

Omg, thank you, this is exactly what I was looking for. Wow.

Is there… some kind of ‘advanced CS’ tutorial for things like this? The wiki is helpful, but learning from snippets of other people’s code is best.

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/will/32/132033_2.png) [@will](https://forum.choiceofgames.com/u/will)\
**Post date:** [June 26, 2018, 2:29pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/15 "2018-06-26T14:29:25Z")

</div>

I exclusively use [n/]! It’s really useful for the stat screen.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [June 26, 2018, 2:54pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/16 "2018-06-26T14:54:17Z")

</div>

The current wiki page is a bit of a mess IMO and could use some update, but there’s really no tutorial for stuff like this.  
IIRC, I got this trick from @RETowers on a certain thread I’ve forgotten.

---

<div class="post-metadata">

**Author:** ![Vendetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/vendetta/32/533_2.png) [@Vendetta](https://forum.choiceofgames.com/u/Vendetta)\
**Post date:** [June 26, 2018, 3:27pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/17 "2018-06-26T15:27:02Z")

</div>

> [@Szaal](#):
>
> The current wiki page is a bit of a mess IMO and could use some update

It certainly could. It’s entirely community-driven so if the community doesn’t drive it… well, I’m sure I don’t need to belabor the point! Every now and then I’ll find a fresh burst of energy from somewhere and do a bit more but, yeah, it can be… draining. Something about a finger and a dyke springs to mind.

It’s perhaps worth pointing out that any [Wiki](https://choicescriptdev.wikia.com/wiki/ChoiceScript_Wiki?title=ChoiceScript_Wiki) member can edit any of the Command / Function pages where they spot an error / outdated info / missing recent changes to existing commands, and anyone can create a brand new page. An admin person would then ensure that page is properly linked where appropriate.

---

<div class="post-metadata">

**Author:** ![Hazel](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hazel/32/77796_2.png) [@Hazel](https://forum.choiceofgames.com/u/Hazel)\
**Post date:** [June 26, 2018, 3:32pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/18 "2018-06-26T15:32:47Z")

</div>

If I knew enough, I would edit it, but I’m still at a very novice stage.

BTW, is [n/] meant to work when used in choice selection text? I’m not sure if those are allowed to have line breaks.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [June 26, 2018, 3:55pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/19 "2018-06-26T15:55:58Z")

</div>

I’d actually like to edit the wiki, but I’m afraid that my editing will be… _radical._ And for that, I also need the full power of _total authority to edit any page._ Hah!

Perhaps one day :"

* * *

@Hazel

```
*choice
    #Tell you what[n/]This is perfectly valid.
    #As well as @{true this|that} one.

```

---

<div class="post-metadata">

**Author:** ![Vendetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/vendetta/32/533_2.png) [@Vendetta](https://forum.choiceofgames.com/u/Vendetta)\
**Post date:** [June 26, 2018, 5:11pm UTC](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337/20 "2018-06-26T17:11:18Z")

</div>

> [@Szaal](#):
>
> I’d actually like to edit the wiki, but I’m afraid that my editing will be… _radical._ And for that, I also need the full power of _total authority to edit any page._ Hah!

Not a problem. PM me your Wiki user name and _Hey Presto!_ you’re a ChoiceScriptDev Wiki Editor… I seriously doubt there are any in the community who would deny either your very broad CS knowledge, your obvious coding expertise, or your outstanding willingness to help others.

The Wiki could do with a new lease of life. I’m sure I wouldn’t be the only one grateful should you feel willing and able to spearhead that.

[Next page](https://forum.choiceofgames.com/t/things-that-make-it-worth-writing-using-choicescript/40337.md?page=2)
