User input names, making character names not bold [RESOLVED]

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.
Message
Author
User avatar
MimirollCookie
Miko-Class Veteran
Posts: 725
Joined: Sat May 23, 2015 5:05 am
Completed: Best Friends (DRAMA), Sweet and Spices (NaNo16)
Projects: Cupid's Wish, Best Friends Deux
Organization: Pastelle Studios
Deviantart: MimirollCookie
Location: A place where rainbows and unicorns collide. ^0^
Contact:

Re: User input names, making character names not bold [RESOL

#16 Post by MimirollCookie »

How about trying this code for a user-input names?:

First, define the character.

Code: Select all

define e = Character("[name]")
second, copy this code.

Code: Select all

# The game starts here.
label start:
    $ name = renpy.input("What's your name?")
    $ name = name.strip()
    e"Hello! I'm [name]!"
    return
~Make sure to copy these!

Code: Select all

$ name = renpy.input("What's your name?")
    $ name = name.strip()
I used this code for test projects, etc. I used this code because it's easier to type.

-Anyways, I hope it helps!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]