LayeredImage expects a non-empty Block. [SOLVED]

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
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

LayeredImage expects a non-empty Block. [SOLVED]

#1 Post by ArizaLuca »

My code for the layeredimage in question is:

Code: Select all

layeredimage doll:

    always "doll_base"
    
    if skin == 1:
        "doll_skin_light"
    
    elif skin == 2:
        "doll_skin_asian"
    
    elif skin == 3:
        "doll_skin_tan"
    
    elif skin == 4:
        "doll_skin_dark"

    group outfit:
        attribute 1

    if hair == 1:
        "doll_hair_blonde"
        
    elif hair == 2:
        "doll_hair_red"
    
    elif hair == 3:
        "doll_hair_lightbrown"
    
    elif hair == 4:
        "doll_hair_brown"
    
    elif hair == 5:
        "doll_hair_darkbrown"
    
    elif hair == 6:
        "doll_hair_black"
    
    elif eye == 1:
        "doll_eyes_blue_normal"
    
    elif eye == 2:
        "doll_eyes_black_normal"
    
    elif eye == 3:
        "doll_eyes_brown_normal"
    
    elif eye == 4:
        "doll_eyes_gray_normal"
    
    elif eye == 5:
        "doll_eyes_green_normal"
    
    elif eye == 6:
        "doll_eyes_gold_normal"

    group eyebrows auto:
        attribute normal default

    group mouth auto:
        attribute normal default
This is how it was done in the LayeredImage tutorial (with Augustina) and... I'm really confused; what did I do wrong?

Edit: Upon looking over the code, it was a different error. My apologies.

Post Reply

Who is online

Users browsing this forum: Google [Bot], MSN [Bot]