Need help with italics

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Message
Author
SolarSnake
Newbie
Posts: 22
Joined: Fri Nov 10, 2006 2:09 pm
Location: Ithaca, NY (USA)
Contact:

#16 Post by SolarSnake »

Another major big use of variables for VNs is to keep track of choices in a non-looping story. e.g.

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"
a whole bunch of story later:

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!"
This way, you can make later parts of the story reflect earlier choices without requiring the earlier choices to cause major branches.


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*"
(Note: I'm an american male, so I gave an example where you hook up with females in the ending. If you prefer an ending where you hook up with males, just pretend (or be) in England where those are all men's names.)
"Let us endeavor so to live that when we come to die even the undertaker will be sorry." —Mark Twain, "Pudd'nhead Wilson's Calendar"

User avatar
papillon
Arbiter of the Internets
Posts: 4107
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

#17 Post by papillon »

If you want a name that flips genders across the atlantic, use 'Robin' or 'Jamie'. Those'll confuse people nicely.

Shirley isn't a boy's name anywhere I know of... and Tracy's not only a girl's name but a rather notorious one. ("Sharon" and "Tracy" were apparetly so common among lower-class British women for a time period that they've been permanently stuck with a bad reputation.) :)

SolarSnake
Newbie
Posts: 22
Joined: Fri Nov 10, 2006 2:09 pm
Location: Ithaca, NY (USA)
Contact:

#18 Post by SolarSnake »

Ok, granted, you might have to pretend that you are in England of 100 years ago...

But Shirley, Tracey, and Stacey were definitely all men's names at some point.

But good point about Robin and Jamie, thanks!
"Let us endeavor so to live that when we come to die even the undertaker will be sorry." —Mark Twain, "Pudd'nhead Wilson's Calendar"

NetGenSuperstar
Regular
Posts: 113
Joined: Sun Oct 08, 2006 1:29 am
Location: BEHIND YOU!!!
Contact:

#19 Post by NetGenSuperstar »

papillon wrote:If you want a name that flips genders across the atlantic, use 'Robin' or 'Jamie'. Those'll confuse people nicely.
Kim works, too. It's an American female name (short for Kimberly), but I know of quite a few Korean-American males with the name Kim, since it's a Korean name as well.

Post Reply

Who is online

Users browsing this forum: No registered users