- Sep 30, 2018
- 102
- 70
Hi guys,
have a normal default variable in renpy.
So the goal is to call a function but i would not assign the function to the variable, i would work with my "renpy" variable in the function and better, i would like to call another function from first function without passing parameter and work again in these on the "renpy" variable; Is it possible ?
have a normal default variable in renpy.
So the goal is to call a function but i would not assign the function to the variable, i would work with my "renpy" variable in the function and better, i would like to call another function from first function without passing parameter and work again in these on the "renpy" variable; Is it possible ?
Python:
default globalVariable = ""
.../...
init python:
def firstFunction():
globalVariable = "Something"
if globalVariable == "Something" :
return secondFunction()
.../...
#Another file
init python:
def secondFunction():
if globalVariable == "Something" :
globalVariable = "SomethingElse"
return True
.../...
#somewhere in renpy
if firstFunction():
display globalVariable
Last edited: