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