- Apr 13, 2021
- 1,826
- 1,481
I am wondering if there is a more elegant solution to have a code somewhere else, perhaps another file, where it just checks if a condition is met.
It seems silly to have to add that code ever time an instance is present like a situation or a question.
In my case, i want to show several different images that are layered above the render.
So i have something like this.
So essentially it will check if value 10 is reached and put an image on top of the other and disappears after 5 seconds.
But i am wondering if i can just put that routine in a file and forget about it. Is that possible?
No? Shit.
Because i need to add more conditions and then the code really looks like something.
I think i would like to have it more organized in a way but i am not sure if RenPy allows that.
Does this make sense?
It seems silly to have to add that code ever time an instance is present like a situation or a question.
In my case, i want to show several different images that are layered above the render.
So i have something like this.
Code:
label dontcare:
show scene12 with dissolve
a "I got to have it. From your uncle to me? Give it to me."
$ gullible +=1
$ bimbo +=1
if bimbo ==10:
show bimbo with dissolve
$ renpy.pause (5)
if gullible ==10:
show journeytodumb with dissolve
$ renpy.pause (5)
if sex ==10:
show experience with dissolve
$ renpry.pause (5)
But i am wondering if i can just put that routine in a file and forget about it. Is that possible?
No? Shit.
Because i need to add more conditions and then the code really looks like something.
I think i would like to have it more organized in a way but i am not sure if RenPy allows that.
Does this make sense?