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.
-
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:
#1
Post
by hoggoe » Tue Mar 13, 2018 10:28 pm
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?"

-
Lord Hisu
- Regular
- Posts: 58
- Joined: Sun Feb 11, 2018 2:31 am
-
Contact:
#2
Post
by Lord Hisu » Tue Mar 13, 2018 10:40 pm
"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: 754
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
-
Contact:
#3
Post
by rayminator » 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")
define l = character(_("Lonnie"), color="#ffcccc")
# The game starts here.
label start:
"l" "Tesing testing."
"c" "Why?"
-
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:
#4
Post
by korova » Wed Mar 14, 2018 10:44 am
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:
#5
Post
by hoggoe » Thu Mar 15, 2018 10:29 pm
Right, right. Capitalization. Thanks, everyone.
Users browsing this forum: Google [Bot]