A few questions.

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
Appleworks
Newbie
Posts: 4
Joined: Mon Jul 16, 2018 9:11 pm
Contact:

A few questions.

#1 Post by Appleworks »

Hello, I am new to the Ren'Py engine, and I have been working on a game with a small group of people to get familiarized with the engine. I am having an issue with the engine being annoying about a couple of things. First, it will not let me set the names of characters. If I am doing something wrong with this, please let me know.

Code: Select all

    define I = character(“Ino”)
    define Y = character(“Yasuko”)
    define K = character(“Kayori”)
    define U = character(“Usami”)
    define N = character(“Narahashi”)
    define T = character(“Tatsumi”)
    define t = character(“Teacher”)
Second, I have had some trouble with the question asking in the game. Upon startup, the program will say the following.

Code: Select all

File "game/script.rpy", line 130: end of line expected.
    jump choice2_done:
                     ^
File "game/script.rpy", line 140: end of line expected.
    jump choice2_done:
                     ^
The block of code for this section is as follows (we here at Appleworks aren't the most mature ever, so that is the reason for the writing the way it is)

Code: Select all

menu:
    "Make a joke about her.":
        jump choice2_joke
    "Accept what she says..":
        jump choice2_accept
label choice2_joke:
    "It’s true, she was a little taller, and probably stronger than I was, but I wasn’t going to lose an argument that easily."
    "Tatsumi" "You might be bigger than me… but your boobs say otherwise…"
    "Blood immediately rushes to her face and she assumes a defensive stance"
    "She punches me in the arm, and yells at me. What did I really expect?"
    "Teacher" "Usami! What is going on over there?!"
    "Usami" "Um…! Nothing, I just… saw a spider, yeah, a spider! It scared me that’s all!"
    "Usami eyes me murderously, and the rest of the class goes on in silence."
    jump choice2_done:
label choice2_accept:
    "I sit there, thinking this girl will stop at nothing to try to embarass me."
    "If I try to do anything, she will try to just do something in return."
    "Tatsumi" "Fine, I will be on time tomorrow."
    "???" "You better be, or you will regret it."
    "Teacher" "Usami, please leave the discipline to me from now on."
    "Usami" "Sorry sir, it will not happen again."
    "Usami glances at me, as though her getting yelled at was my fault."
    "The class goes on in silence."
    jump choice2_done:
label choice2_done:
If someone could help with either of these problems, i would really appreciate it.
This is Apple, signing off.
Last edited by Appleworks on Mon Jul 16, 2018 9:26 pm, edited 2 times in total.

Appleworks
Newbie
Posts: 4
Joined: Mon Jul 16, 2018 9:11 pm
Contact:

Re: A few questions.

#2 Post by Appleworks »

Sorry that I am asking multiple questions in this one thread, I had not read that on the text box. My bad.

User avatar
LiveTurkey
Regular
Posts: 109
Joined: Tue Dec 27, 2016 10:50 pm
Location: Brooklyn
Contact:

Re: A few questions.

#3 Post by LiveTurkey »

Code: Select all

jump choice2_done:
Remove the semi-colon (:) at the end both from line 130 and 140.

Appleworks
Newbie
Posts: 4
Joined: Mon Jul 16, 2018 9:11 pm
Contact:

Re: A few questions.

#4 Post by Appleworks »

Wow, thank you. I should have looked closer at the script there, my apologies.

User avatar
MaydohMaydoh
Regular
Posts: 165
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: A few questions.

#5 Post by MaydohMaydoh »

Also it should be "Character" with a capital C when defining characters.

Code: Select all

define I = Character(“Ino”)

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: A few questions.

#6 Post by Imperf3kt »

The definitions look indented as well. Make sure they're at the very top of your script with no spaces before them.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Mammon
Miko-Class Veteran
Posts: 712
Joined: Sat Nov 07, 2015 3:09 pm
Completed: Pervert&Yandere, Stalker&Yandere
Projects: Roses Of The Thorn Prince
Contact:

Re: A few questions.

#7 Post by Mammon »

I see you've written:
"Usami" "Um…! Nothing, I just… saw a spider, yeah, a spider! It scared me that’s all!"

while according to your define names it should be:
U "Um…! Nothing, I just… saw a spider, yeah, a spider! It scared me that’s all!"
ImageImageImage

Want some CC sprites?

Appleworks
Newbie
Posts: 4
Joined: Mon Jul 16, 2018 9:11 pm
Contact:

Re: A few questions.

#8 Post by Appleworks »

Alright, thank you everyone, the script is working well now, I appreciate the help. Have a good day.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]