[SOLVED] NVL error (I'm not sure how to be more precise)

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
User avatar
IchihashiMaiden
Newbie
Posts: 15
Joined: Fri Dec 08, 2017 2:00 am
Projects: Be A Good Boy (Otome) ; Iliad (VN)
itch: IchihashiMaiden
Contact:

[SOLVED] NVL error (I'm not sure how to be more precise)

#1 Post by IchihashiMaiden »

I'm attempting to put a disclaimer at the start of my VN, explaining that it is not only linear, but also contains some extremely brutal content (because it's a recreation of the Iliad).

Well, somewhere along the way, I seem to have messed up, despite looking at the tutorial and seemingly matching the script precisely, I got this error:

Code: Select all

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


File "game/script.rpy", line 7: invalid syntax
    Character("Disclaimer", color="f5f5f5" kind→ =nvl).
                                               ^

Ren'Py Version: Ren'Py 6.99.13.2919
(Arrow added to show you what exactly it was yelling at me about.)

Well, what I have in script.rpy is this:

Code: Select all

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

define e = Character("Eileen")
define nvle = Character("Disclaimer", color="f5f5f5" kind=nvl).
define A1 = Character("Agamemnon", color="9F111B")
define A2 = Character("Achilles", color="045991")
define dA1 = Character("Apollo", color="ffe766")
define dZ1 = Character("Zeus", color="e6c200")
define dH1 = Character("Hera", color="948532")

# The game starts here.

label start:

    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene bg room

    # This shows a character sprite. A placeholder is used, but you can
    # replace it by adding a file named "eileen happy.png" to the images
    # directory.

    show eileen happy

    # These display lines of dialogue.

    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
    
    nvle "This visual novel is a recreation of the Iliad made for edutainment purposes. 
         The version you are currently playing is the non-interactive, linear version of this story.
         In creating this visual novel, we strive to offer the most accurate recreation possible,
         in a way that is enjoyable and easy to understand for all members of our potential audience."
    
    nvl clear
    
    nvle "Please be aware that the following story may not be suitable for children. Nothing was taken
         out if the Iliad contained it. This means what you are about to read includes examples of
         racism, sexism, slavery, murder, and aggressive (but clean) language."
    
    A1 "eff this i'm out"

    # This ends the game.
I'm leaving the default stuff in there temporarily, I plan to delete it later. Same with the A1 line, it was basically acting as a bookend so I could be sure I hadn't broken something.

Originally, I was going to put "dis" instead of "nvle", but it wasn't working with that either, so I took a guess that maybe that was the issue. Apparently it doesn't matter what I nickname it, it doesn't work either way.
Last edited by IchihashiMaiden on Fri Dec 08, 2017 5:18 pm, edited 1 time in total.
I have no idea what I'm doing.
(Character in icon belongs to nomnomnami on itch.io)

User avatar
IchihashiMaiden
Newbie
Posts: 15
Joined: Fri Dec 08, 2017 2:00 am
Projects: Be A Good Boy (Otome) ; Iliad (VN)
itch: IchihashiMaiden
Contact:

Re: NVL error (I'm not sure how to be more precise)

#2 Post by IchihashiMaiden »

nvm, I got it to work. Apparently I was missing "(_".
I have no idea what I'm doing.
(Character in icon belongs to nomnomnami on itch.io)

Post Reply

Who is online

Users browsing this forum: Google [Bot]