Totally Nooby Question

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
hoggoe
Newbie
Posts: 2
Joined: Tue Mar 13, 2018 10:11 pm
Completed: 0
Projects: Just one, doesn't even have a title yet...
Organization: ZPCI
IRC Nick: Hoggoe
Contact:

Totally Nooby Question

#1 Post by hoggoe »

First time poster here, and let me tell ya. I suck. Bad. I've followed some instructions and still managed to mess it up. Simple stuff.
The lines of code are as follows and the issue after that. I've tried to define just two things...

Code: Select all

# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define e = Character("Eileen")


# The game starts here.
Define c = character(_("Chadwick"), color="#ccffcc")
Define l = character(_("Lonnie"), color="#ffcccc")

label start:

"l" "Tesing testing."

"c" "Why?"
Image

User avatar
Lord Hisu
Regular
Posts: 58
Joined: Sun Feb 11, 2018 2:31 am
Contact:

Re: Totally Nooby Question

#2 Post by Lord Hisu »

"define" is a Renpy keyword, and it's match case, so "Define" won't work.

Also, you should indent you code (4 spaces to the right) when creating a new block.
I'm almost sure it will work in this case if you don't indent, but it won't work in anything except label declarations (never understood why), so you should get used to it.

Code: Select all

label block1:
    "Char1" "I'm talking."
    "Char1" "Yay."
label block2:
    "This is another block."
EDIT:

Also, "Character", not "character". I know it can be confusing, but Character is not a keyword, it is a class, hence the capital letter.
Last edited by Lord Hisu on Tue Mar 13, 2018 10:47 pm, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Totally Nooby Question

#3 Post by rayminator »

it should look like this

Code: Select all

# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define e = Character("Eileen")
define c = character(_("Chadwick"), color="#ccffcc")
define l = character(_("Lonnie"), color="#ffcccc")


# The game starts here.

label start:

     "l" "Tesing testing."

     "c" "Why?"

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Totally Nooby Question

#4 Post by korova »

I have another proposal...
rayminator wrote: Tue Mar 13, 2018 10:47 pm it should look like this

Code: Select all

# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define e = Character("Eileen")
define c = Character(_("Chadwick"), color="#ccffcc") ## no capital for define, capital C for Character definition
define l = Character(_("Lonnie"), color="#ffcccc") ## no capital for define, capital C for Character definition


# The game starts here.

label start:

     l "Tesing testing."  ## no quotes for the character name (quotes are for "anonymous"/undefined characters

     c "Why?"  ## same here

hoggoe
Newbie
Posts: 2
Joined: Tue Mar 13, 2018 10:11 pm
Completed: 0
Projects: Just one, doesn't even have a title yet...
Organization: ZPCI
IRC Nick: Hoggoe
Contact:

Re: Totally Nooby Question

#5 Post by hoggoe »

Right, right. Capitalization. Thanks, everyone.

Post Reply

Who is online

Users browsing this forum: No registered users