How would you do this...?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
iamgothic2
Newbie
Posts: 4
Joined: Sun Aug 31, 2008 10:21 am
Contact:

How would you do this...?

#1 Post by iamgothic2 »

Hello there, its been awhile since i've been using renpy, but im back to wanting to make a game.

So...

I was wondering, how could you script this in renpy so that the user can type in what they want their name to be, and it would be stored in the game so that that name would show up. Here's an example...

Lets say you wanted your name to be "Jane".
And a character named John would say something like, "nice weather today isn't it Jane."
Whenever you, the main character, would say something, that name you wanted to show up.

Something sort of like that. :wink: Do you know how to do it? o.o
Any answers are immensely appreciated. ^__^

Thank you for your time, I really appreciate it. ^^

Megaman Z
Miko-Class Veteran
Posts: 829
Joined: Sun Feb 20, 2005 8:45 pm
Projects: NaNoRenO 2016, Ren'Py tutorial series
Location: USA
Contact:

Re: How would you do this...?

#2 Post by Megaman Z »

given the variable "pcname"...

Code: Select all

    "Your name is %(pcname)s."
this goes into more detail.
~Kitsune Zeta

iamgothic2
Newbie
Posts: 4
Joined: Sun Aug 31, 2008 10:21 am
Contact:

Re: How would you do this...?

#3 Post by iamgothic2 »

Ahhh, thank you very much Megaman Z.

This helped alot! :)

Post Reply

Who is online

Users browsing this forum: Google [Bot]