This question seems to be trivial for some, but I just couldn't get it to work properly.
So, I'm trying to optimise my calls in renpy so it doesn't require me to type in the same things over again.
I want to use renpy.say() function but I can't seem to convert it properly from:
Code: Select all
mc surprised "{cps=10}Hmm? An email?{/cps}"
Code: Select all
renpy.say(mc surprised, "{cps=10}Hmm? An email?{/cps})
It will only work if I use
Code: Select all
mc
Code: Select all
surprised
Any advise?
My overall goal is to user renpy.say in a python function w/c takes in more parameters in setting up my dialogue window, transform, and others before showing it to the user. This will save me time in writing redundant code.
Code: Select all
$ say(DIALOG_ANIM_ZOOM_CENTER, vpunch, mc surprised, "{cps=10}Hmm? An email?{/cps}")
Code: Select all
init python:
def say(anim_type, trans, who, msg):
dialogAnimationType = anim_type
renpy.with_statement(trans)
renpy.say(who, msg)