Page 1 of 1

Function problem

Posted: Mon Oct 31, 2022 2:08 pm
by khezo
HI!
I can't make a function that changes some variables when called in label
Tried to do different things
But it's not working

Code: Select all


init python:

    def sakura_mood(a, b, c, d):
        sakura_eyes = a
        sakura_eyebrows = b
        sakura_pupils = c
        sakura_mouth = d
        
 label start:
	"..."
	$sakura_mood(1, 2, 4, 1)

Re: Function problem

Posted: Mon Oct 31, 2022 2:35 pm
by Ocelot
sakura_eyes = astore.sakura_eyes = a
The rest should be changed similarly.