Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

when using the if macro you have to make sure to also have the closing to it:

<<if $variable is "this">>

statement.

<</if>>

if you're going for something a bit more complicated, like a scale, it may look a bit more like:

<<if $masculine <= 5>>

statement.

<<elseif $masculine <= 6>>

statement.

<<else>>

statement.

<</if>>

I could link you some sugarcube tutorials if you'd like.

please do

Here is one that pretty much outlines almost all the basics that I use most often:

https://www.motoslave.net/sugarcube/2/docs/

and here's a reddit thread of other sites that are helpful:

https://www.reddit.com/r/twinegames/comments/au74yc/collection_of_tutorials_ive_...

hope this helps. otherwise there's many forum posts that are helpful in coding. good luck :]