Memorize a string of text without an input box

Hi there! I am a returning writer from years ago so I’ve forgotten quite a few things and my memory would appreciate refreshing a bit.

Is there a way to create a string of text without an input? Something like

string CITY = "New York"

so when I write something like “I live in [CITY]”, it spells out “I live in New York”.

The idea is to put several of these under a button at the start, so this choice will impact quite a few things later on. This would be rather compact way to code.

Character customization and name choosing with an input comes after.

if you do not want to use input than you can use gains to remember the choices

NARR
Where do you live?
choice “New York” {
gain NY
} “London” {
gain LONDON
} “Prague” {
gain PRAGUE
}

And then when ever later in story you will need to use the choices you will make if/elif/else:

if (NY) {
CHAR
Hi I am from New York!
} elif(LONDON) {
CHAR
Hi I am from London!
}else {
CHAR
Hi I am from Prague!
}

Alternatively, you can just name the choice.

NARR
What city do you live in?

choice (CITY)
“New York” continue
“Los Angeles” continue
“Portland” continue

CHARACTER
I live in [CITY].

OK this I see for first time. :smiley:
:astonished: :astonished: :astonished: :astonished:

Thank you, all. I’ll get to work. :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.