End of line excepted[Solved :D]

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
PeachStar1
Newbie
Posts: 6
Joined: Mon Apr 12, 2021 8:18 am
itch: PeachStarStudios
Contact:

End of line excepted[Solved :D]

#1 Post by PeachStar1 »

So, I'm using a layered image and I use this code

Code: Select all

layeredimage Doll:
    group head:
        if race == 1:
            "head1"
            pos(100,100)
        if race == 2:
            "head2"
            pos(100,100)
        if race == 3:
            "head3"
            pos(100,100)
and I got this

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: end of line expected.
    if race == 1:
    ^

Ren'Py Version: Ren'Py 7.4.0.1167
Mon May 17 13:41:03 2021


Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]