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.
######################script.rpy
voice "voice/03.ogg"
sh "放置のほうがムナシイだろ?"
scene c5
show c5_morg3
show c5_1_4
with dissolve
au "どうしてオマエはそんなに醒めてんの?!"
scene c5
show c5_1_3
show c5_morg2
with dissolve
###################resurse.rpy
init:
image c5_morg2:
"c5_1_3"
choice:
4.5
choice:
3.5
choice:
1.5
"c5_1_1"
.25
repeat
image c5_morg3:
"c5_1"
choice:
4.5
choice:
3.5
choice:
1.5
"c5_1_1"
.25
repeat
the code works, but the trouble is that the code becomes huge. I wanted to make a function of this type
init python:
def morg(image1,image2):
image1
choice:
4.5
choice:
3.5
choice:
1.5
image2
.25
repeat
#############script.rpy
voice "voice/03.ogg"
sh "放置のほうがムナシイだろ?"
scene c5
$ morg("c5_1_3","c5_1_1")
with dissolve
au "どうしてオマエはそんなに醒めてんの?!"
scene c5
show c5_1_3
$ morg("c5_1","c5_1_1")
with dissolve
But I don't remember renpy written images argument...Help PL