{player.title}, there are labour day riots from {player.CityA} to {player.CityB}.
'start' script:
msg ("What country?")
get input {
// quest engine automatically sets the variable: result = your_input_during_game_play
game.country_string = result
if (game.country_string = "united states of america") {
game.leader_title_string = "president"
game.leader_name_string = "obama"
} else if (game.country_string = "germany") {
game.leader_title_string = "chancellor"
game.leader_name_string = "merkle" // however her name is spelled, lol
}
}
or, if you want to use the 'switch' script instead of multiple 'if' scripts (though multiple 'ifs' has more available functionality):
msg ("What country?")
get input {
// quest engine automatically sets the variable: result = your_input_during_game_play
game.country_string = result
switch (game.country_string) {
case ("united states of america") {
game.leader_title_string = "president"
game.leader_name_string = "obama"
}
case ("germany") {
game.leader_title_string = "chancellor"
game.leader_name_string = "merkle" // however her name is spelled, lol
}
}
}
your page dynamic text (script+text):
msg ("Your country is " + game.country_string + ", and so your leader is " + game.leader_title_string + " " + game.leader_name_string + ".")
// outputs for germany choice: Your country is germany, and so your leader is chancellor merkle.
// outputs for usa choice: Your country is united states of america, and so your leader is president obama.
and then for your pages dynamic text (scripts~variables~attributes+text), you need to use the 'if' script (in-code example):