Hi all, I've a 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
TT Snim

Hi all, I've a question.

#1 Post by TT Snim »

Hi, I am new to this whole thing and I think I'm going to like it, if only I could figure it out. XD

I have a small script and I keep getting the same error. Mind you, I've had this program for all of two days, but I've read and re read the tuts and I stil have no idea what I am doing. *Falls over*

I get this message. . .

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


On line 13 of C:\Documents and Settings\Administrator\Desktop\renpy-6.0.0-full\renpy-6.0.0\TheLab/game/script.rpy: end of line expected.
j"Lets talk.":
^

Ren'Py Version: Ren'Py 6.0.0a



With this script. . .

init:

$ t = Character('TTSnim', color="#cc66cc")
$ j = Character('Joe', color="#66cc66")

label start:

t"Hay Joe!"
j"Hi there."
t"What do you want to do to day?"

menu:
j"Lets talk.":
jump talk

j"Lets play a game.":
jump game

label talk:
t"What would you like to talk about?"
j"you pick a topic."

label game:
t"What game should we play?"
j"Can we play a word game?"

t"That was fun!"

User avatar
mikey
Lemma-Class Veteran
Posts: 3249
Joined: Sat Jan 10, 2004 6:03 am
itch: atpprojects
Contact:

#2 Post by mikey »

Before the real experts write something, I'd suggest having a space between the character and the spoken words.

Instead of:

Code: Select all

j"Hello!"
I'd write:

Code: Select all

j "Hello!"
That little arrowhead in the error log was pointing to that place.
Also, the indentation is important I think.

Code: Select all

j "Hello"
is not the same as

Code: Select all

     j "Hello"
I think :?

DrakeNavarone
Veteran
Posts: 338
Joined: Mon Mar 06, 2006 2:27 am
Completed: see sig below
Projects: always; never not
Organization: Team BG
Location: PA, USA
Contact:

#3 Post by DrakeNavarone »

You're trying to include a Character object with a menu choice. While Ren'Py allows you to use Characters with the menu's caption, it does not with the actual choices. In order to fix it, just remove the 'j' from in front of the choices.

Code: Select all

"Lets talk.":
"Lets play a game.":
Changing your choices to those should work.
http://www.twitter.com/drakeynv
The Compendium of Drake:
Starlit Sky ~ Songs of Araiah ~ Mirai Imouto ~ Temple Glen ~ Fuyu no Tabi

ttsnim
Newbie
Posts: 4
Joined: Sun Mar 04, 2007 6:01 pm
Contact:

#4 Post by ttsnim »

Thanks a bunch guys! All is working well now. ^_^
Yes, yes I am crazy, thank you much.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]