▲ 1 r/RenPy

Two expressions in a row error

I'm getting the error
File "game/script.rpy", line 77: ATL statement contains two expressions in a row; is one of them misspelled property? If not, separate them with pass.

add "character" →align (0.5, 0.0)

Does anyone know how to fix it? I am not really a programmer and was following a tutorial. The error refers to the first line in "scene character_customization:" but it might be elsewhere as it usually is...

init python:
    def customize_character(type, direction):
        global skin_color
        global hair_color
        global eye_color
        global shirt_color


        if direction == "right":
            if type == "skin":
                if skin_colors.index(skin_color) < len(skin_colors) - 1:
                    skin_color = skin_colors[skin_colors.index(skin_color) + 1]
                else:
                    skin_color = skin_colors[0]
            if type == "hair":
                if hair_colors.index(hair_color) < len(hair_colors) - 1:
                    hair_color = hair_colors[hair_colors.index(hair_color) + 1]
                else:
                    hair_color = hair_colors[0]
            if type == "eyes":
                if eye_colors.index(eye_color) < len(eye_colors) - 1:
                    eye_color = eye_colors[eye_colors.index(eye_color) + 1]
                else:
                    eye_color = eye_colors[0]
            if type == "shirt":
                if shirt_colors.index(shirt_color) < len(shirt_colors) - 1:
                    shirt_color = shirt_colors[shirt_colors.index(shirt_color) + 1]
                else:
                    shirt_color = shirt_colors[0]
        elif direction == "left":
            if type == "skin":
                if skin_colors.index(skin_color) > 0:
                    skin_color = skin_colors[skin_colors.index(skin_color) - 1]
                else:
                    skin_color = skin_colors[-1]
            if type == "hair":
                if hair_colors.index(hair_color) > 0:
                    hair_color = hair_colors[hair_colors.index(hair_color) - 1]
                else:
                    hair_color = hair_colors[-1]
            if type == "eyes":
                if eye_colors.index(eye_color) > 0:
                    eye_color = eye_colors[eye_colors.index(eye_color) - 1]
                else:
                    eye_color = eye_colors[-1]
            if type == "shirt":
                if shirt_colors.index(shirt_color) > 0:
                    shirt_color = shirt_colors[shirt_colors.index(shirt_color) - 1]
                else:
                    shirt_color = shirt_colors[-1]


        renpy.retain_after_load()
           


image character = Composite(
    (600, 600),
    (0, 0), "Charactercustomizer/hair-long-[hair_color]-back.png",
    (0, 0), "Charactercustomizer/body-skin-[skin_color].png",
    (0, 0), "Charactercustomizer/eyecolor-[eye_color].png",
    (0, 0), "Charactercustomizer/shirt-[shirt_color].png",
    (0, 0), "Charactercustomizer/hair-long-[hair_color]-front.png"
)


transform half_size:
    zoom 0.5


transform character_transform:
    align(0.0, 0.7)


transform arrows:
    anchor(0.5, 0.5)
    on hover:
        zoom 1.05
    on idle: 
        zoom 1.0


scene character_customization:
    add "character" align (0.5, 0.0)
    #hair
    imagebutton:
        idle "UI/arrow-right.png" 
        align(0.7, 0.3) 
        action Function(customize_character, type = "hair", direction = "right") 
        at arrows
    imagebutton:
        idle "UI/arrow-left.png" 
        align(0.3, 0.3) 
        action Function(customize_character, type = "hair", direction = "left") 
        at arrows
    #skin
    imagebutton:
        idle "UI/arrow-right.png" 
        align(0.7, 0.4) 
        action Function(customize_character, type = "skin", direction = "right") 
        at arrows
    imagebutton:
        idle "UI/arrow-left.png" 
        align(0.3, 0.4) 
        action Function(customize_character, type = "skin", direction = "left") 
        at arrows
    #eyes
    imagebutton: 
        idle "UI/arrow-right.png" 
        align(0.7, 0.5) 
        action Function(customize_character, type = "eyes", direction = "right") 
        at arrows
    imagebutton:
        idle "UI/arrow-left.png" 
        align(0.3, 0.5) 
        action Function(customize_character, type = "eyes", direction = "left") 
        at arrows
    #shirt
    imagebutton:
        idle "UI/arrow-right.png" 
        align(0.7, 0.6) 
        action Function(customize_character, type = "shirt", direction = "right") 
        at arrows
    imagebutton:
        idle "UI/arrow-left.png" 
        align(0.3, 0.6) 
        action Function(customize_character, type = "shirt", direction = "left") 
        at arrows



label scene_1: 
    scene background
    show character at character_transform
    c "This is a custom character."


screen start_screen:
    image "Backgrounds/background.png"
    imagebutton:
        idle "UI/start-button-idle.png" 
        hover "UI/start-button-hover.png" 
        align(0.5, 0.9) 
        action Jump("scene_1")
    hbox:
        align(0.5, 0.1)
        text "Character name:" size 18 color "#000000" yalign 0.5 outlines[(absolute(2), "#ffffff", 0, 0)]
        frame:
            background "#ffffff" 
            yalign 0.5
            input value VariableInputValue("character_name") minwidth 150 length 10


    use character_customization


define character_name = ""
define c = character(name = "character_name", dynamic = True)
    


label start:
    $skin_colors = ["light", "medium", "dark"]
    $hair_colors = ["blonde", "brown", "black"]
    $eye_colors = ["brown", "blue", "green"]
    $shirt_colors = ["blue", "green", "pink"]


    $skin_color = skin_colors[0]
    $hair_color = hair_colors[0]
    $eye_color = eye_colors[0]
    $shirt_color = shirt_colors[0]
    
    call screen start_screen
    return
reddit.com
u/Lei_Line_Life — 11 hours ago

Can't get a relationship due to being enby or asexual?

I am non-binary, asexual and feel romantic attraction towards masculine-presenting people (achillean). I don't think I'm wrong to assume some people might have liked me throughout my 21 years due to some hints I've picked up, even after I begun presenting androgenously (I know people who don't know me can't judge my agab easily since I've been called both he and she), but I still have no dating experience and no one has ever confessed they liked me (romantically).

I don't know if it's because I'm open about my asexuality and that means that even if they do like me, they refrain from telling me, because they know it won't work in the long run. (Or they assume I'm aromantic too that could also be the case). Or if it's because of the social repricussions of being assumed they are gay/bi when people might interpret me as a guy while I'm being with them. 😞

Edit: this is a RANT btw, I’m not looking for advice on how to improve my lovelife. I already know what’s wrong with me 🙏

reddit.com
u/Lei_Line_Life — 29 days ago

Small funny idea I had a while ago: Main character is reincarnated as a background asset in a shared world basically including the daughter-father trope, a regressed villainess that is the Duke’s sister, and a reincarnated villainess who charms the Duke of the north. (Everyone thinks their charm changed the other characters fate lol)

u/Lei_Line_Life — 2 months ago