Error in code

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
eleusinian
Newbie
Posts: 1
Joined: Wed Jun 03, 2015 3:55 am
Skype: oi-stein
Contact:

Error in code

#1 Post by eleusinian »

Please help me find the error in this code:

Code: Select all

style.mm_root = "main.png",
#Declare images
image church = "church.png"
image placeholder = "ok.png"
#Declare characters
define nl = Character("ok")

label start:
    scene church
    play music "1.mp3"
    "It's cold. Bright, but cold."
    "The wind is crisp. I can hear it whistling in the distance."
    "It's eerie. Almost foreshadowing."
    "A warning."
    "But a warning for what?"
Thank you!

User avatar
Sapphi
Eileen-Class Veteran
Posts: 1685
Joined: Fri Jun 05, 2009 3:31 am
Completed: Boku no Taisetsu na Yumeko
Projects: Twelve, PAW ★ PRINTS
Organization: Kitsch-soft
Location: Illinois, USA
Contact:

Re: Error in code

#2 Post by Sapphi »

Unnecessary comma at the end of the first line?
"It is [the writer's] privilege to help man endure by lifting his heart,
by reminding him of the courage and honor and hope and pride
and compassion and pity and sacrifice which have been the glory of his past."
— William Faulkner
▬▬▬▬▬▬▬▬▬▬..+X+..▬▬▬▬▬▬▬▬▬▬
Image

User avatar
firecat
Miko-Class Veteran
Posts: 540
Joined: Sat Oct 25, 2014 6:20 pm
Completed: The Unknowns Saga series
Projects: The Unknown Saga series
Tumblr: bigattck
Deviantart: bigattck
Skype: bigattck firecat
Soundcloud: bigattck-firecat
Contact:

Re: Error in code

#3 Post by firecat »

the comma at the end of the first line needs to be remove, the character has no color text so that needs to be added, and maybe you forgot to add n1 before the "".
Image


Image


special thanks to nantoka.main.jp and iichan_lolbot

Post Reply

Who is online

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