Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

In the conditions, try using ’ ’ instead of “ “

"... [producerHomecountry], {if producerHomeContry == 'Japan'}Like most other OPhtori students {else}everything else in your text{/else}"

You technically don’t need to use the {/if} since it will work without it. However, the “ “ may be making it unclear to Ren’Py which the terminating “ is. By using single quotes (you have to use it when [somedict[‘somekey’]] or it will give a syntax error), it is clear to Ren’Py and the code which is the dialogue and which is the text tag.

The best I can guess, Ren’Py is seeing it like this:

"... [producerHomeCountry], {If producerHomeCountry == " (new line) Japan"} {else}Something{/else}"

So, the error is correct that there is no {if} for the {else} because of the double quote for Japan. By changing it to a single quote, it doesn’t interrupt that and Ren’Py sees it as one line, which then will see the {if} for the {else}.

(+1)

Oh that works. I'm a lot more used to using doublequotes in all my code so that never crossed my mind... Thanks for the help! :)

(+1)

Not a problem. :)