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.
-
khezo
- Newbie
- Posts: 3
- Joined: Sun Oct 30, 2022 7:00 am
-
Contact:
#1
Post
by khezo » Mon Oct 31, 2022 2:08 pm
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)
Last edited by
khezo on Mon Oct 31, 2022 2:55 pm, edited 1 time in total.
-
Ocelot
- Eileen-Class Veteran
- Posts: 1882
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#2
Post
by Ocelot » Mon Oct 31, 2022 2:35 pm
sakura_eyes = a → store.sakura_eyes = a
The rest should be changed similarly.
< < insert Rick Cook quote here > >
Users browsing this forum: Bing [Bot]