Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+5)

Hi, I'm not the creator but I hope you don't mind me answering because I remember this tripped me up early in development too, but it's surprisingly simple! Using your example, the format you'd need is this:

[["I am not crying," you say, even tempered. You want to, though!|2][$stoic = true]]

Whatever you put in that second set of brackets inside the choice will only execute when someone selects it. You can also have multiple variables in those brackets, just separate them with a comma. For instance if you wanted to like, let someone change their hair mid-game you could have something like

[["It's perfect!"|2][$hair = "straight", $hairlength = "short", $haircolor = "blue"]]

(+1)

Aaah, thank you so much! That helps out a lot!!! And being able to put diffent variables is so cool, too! I wouldn't have thought of that, or at least, would have done it wrong. :P

(also, I had accidentally clicked report instead of reply and got so worried for a second, haha)

Yeah no problem 👍 I honestly don't remember where I had to go digging for that info so I'm happy to pass it along. Happy coding!