Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

could you give me examples of how to link it o a button and different uses of he if command? it keep saying <<if>> macro cannot be found

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 :]