Attracting new users in games

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
ColinMedia6
Regular
Posts: 72
Joined: Sat Apr 08, 2017 9:47 pm
Projects: -LUXO- Love never ends,Alice In Wonderland X
Organization: Colin Media Productions
Tumblr: MisterOfChan
Deviantart: KisameHoshigakiRPG
Contact:

Attracting new users in games

#1 Post by ColinMedia6 »

How i can make "welcome (username)" in the game?
Check out our new game: -LUXO- Love never ends here!
viewtopic.php?f=43&t=44063
Deviant Art now!
http://kisamehoshigakirpg.deviantart.com/

noblex
Newbie
Posts: 3
Joined: Fri May 26, 2017 5:17 am
Contact:

Re: Attracting new users in games

#2 Post by noblex »

%defaultPlayerName = "Gerry Scotti"
"So.. What's your name?"
$ localName = renpy.input("What is your name?")
if localName == "":
$localName = defaultPlayerName
"Hello %(localName)s"

ColinMedia6
Regular
Posts: 72
Joined: Sat Apr 08, 2017 9:47 pm
Projects: -LUXO- Love never ends,Alice In Wonderland X
Organization: Colin Media Productions
Tumblr: MisterOfChan
Deviantart: KisameHoshigakiRPG
Contact:

Re: Attracting new users in games

#3 Post by ColinMedia6 »

Code: Select all

%defaultPlayerName = "Batura Momochi"
"So.. What's your name?"
$ localName = renpy.input("What is your name?")
if localName == "":
$localName = defaultPlayerName
"Hello %(localName)s"
Fixed with code, and in Luxo Love Never Ends the default is replaced with "Batura Momochi"
Check out our new game: -LUXO- Love never ends here!
viewtopic.php?f=43&t=44063
Deviant Art now!
http://kisamehoshigakirpg.deviantart.com/

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Attracting new users in games

#4 Post by trooper6 »

Here is the more Renpy/Python way of doing that code:

Code: Select all

default playerName = None

label start:
    "So.. What's your name?"
    $ playerName = renpy.input("What is your name?")
    if playerName == "":
        $ playerName = "Batura Momochi"
    "Hello [playerName]"
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Google [Bot]