Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Do you have any tutorials or guides that you could recommend? I'm trying to figure out how to create a ui and choices. Also I'm not using sugarcube due to it not working, Also I wanna do a name yourself and saving and loading. Help would be appreciated. Thanks for responding.

I’m sorry, all I’m familiar with is SugarCube, and I just read the docs. They’re pretty easy to find on Google.

ah man, thanks anyway i learned java just to write this

Ok i got sugarcube to work but im struggling with a command. CAN YOU HELP ME?

its supposed to do this

if you set $gender to "girl" set $feminine to "10"

and if you set $gender to "Boy" set $masculine to "10"

you could put <<set $feminine = 10>> and <<set $masculine = 10>> in your Story Init passage, then it's a matter of using <<if>> for when points are taken away or added. like

<<if $gender is "Boy">>

<<set $masculine -= 1>>

This may not be the most efficient way, but it should work.

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