I have a really weird issue.
A friend and I are making a visual novel and in one of the story branches I want to give the player the opportunity to enter some text and if they enter the right word they get a secret ending.
I know how I want to have the player enter the text, with an input line that changes an empty variable, but if you can figure out a better way it is more than welcome.
My issues is that I cant figure out how to get the game to recognize the word that was saved into the variable.
Here's the code I have right now that doesn't work:
Code: Select all
## In the script.rpy file.
init:
$ word = ""
## In the file for the story branch where the code can be put in:
“Filler Text.”
$ word = renpy.input(_("Input Word"))
"Filler Text"
if word is fish:
jump secret_end
##Example secret end label
label secret_end:
“These are some words.”
“You just read them, thank you for that”