Code: Select all
menu:
"Buy her a swimsuit":
"I buy her a swimsuit!"
$ gift = "swimsuit"
"Buy her a tennis racket":
"I buy her a tennis tracket"
$gift = "racket"
"Buy her a komodo dragon"
"Aw, that komodo dragon hachling is so cute!"
$gift = "dragon"
Code: Select all
if present == "swimsuit":
gf "Thanks for the swimsuit, but I already have five."
"Rats."
elif present == "racket":
gf "Thanks for the tennis racket, but I don't play tennis."
"Rats."
else:
gf "Thank you so much for this really cute komodo dragon! I've named him Mr Cuddles! I'm looking forward to buying him mousecicles and taking him for walks every day."
"Yay!"
Variables are also useful for doing point based systems, so that when the game ends you end up with whoever you were nicest too, or whatever. In that case, every choice would either add or subtract points from the appropriate variable, and then at the end you'd do:
Code: Select all
if tracy_points > shirly_points && tracy_points > stacy_points:
tracy "Want to go back to my place? *wink*"
elif shirly_points > tracy_points && shirly_points > stacy_points:
shirly "Want to go back to my place? *wink*"
else:
stacy "Want to go back to my place? *wink*"