- Sep 30, 2018
- 102
- 70
Hey guys,
happy new years at all. But that's all, i'm not here for that, we have work, guys
My problem is certainly very simple for you. I don't understand how to call an user defined function in the following case. Read the code, problems are in the comments
What I call Function is OK, but what I call procedure is Bad ???
Thanks a lot for your feed back.
happy new years at all. But that's all, i'm not here for that, we have work, guys
My problem is certainly very simple for you. I don't understand how to call an user defined function in the following case. Read the code, problems are in the comments
What I call Function is OK, but what I call procedure is Bad ???
Python:
#GOOD
"Call User Defined Function":
# I call function because return a value
init python:
def myFunction(myParam):
return myParam * 2
$ resultFunction = myFunction(7)
"[resultFunction]"
#BAD
"Call User Defined Procedure":
# I call procedure because no value in return
# 2 problems :
# 1 - how to display what i want from the python procedure to renpy screen
# 2 - how to call my procedure without $ resultProcedure = myProcedure("My Name is Ethan")
# I tried call myProcedure("My Name is Ethan") => Not good
# I tried myProcedure("My Name is Ethan") => Not good
init python:
def myProcedure(myParam):
"[myParam]" # First problem here : don t know how to print on renpy screen
"Test" # First problem here : don t know how to print on renpy screen
return
$ resultProcedure = myProcedure("My Name is Ethan") # 2nd problem here : don t know how to call,
# dont want a variable like $ resultProcedure