Redefining character attributes via an if statement...
Posted: Tue Oct 06, 2015 1:17 am
This is such a specific question, but I want to redefine a character to have an added suffix to all their blocks of dialogue if they're named a certain thing. So as it stands, their code looks like this:
I don't wanna say what I'm actually doing with this, so for example, let's just say that if the character is named "Cat" they end all their sentences with "MEOW".
By the way, my name input code is this:
So I want to do an "if" statement along the lines of:
Obviously that's not the proper code, but hopefully that conveys what I'm trying to accomplish. So, how can I re-redefine a defined character with an if statement? I HOPE THAT MAKES ANY SENSE...
Code: Select all
define m = DynamicCharacter("jun", color="#8FAB67", font = "fontarialrounded.ttf" , show_two_window=True, what_prefix='"', what_suffix='"', ctc="ctc_animation", show_side_image=Image("jun_side.png", xalign=1.0, yalign=1.0), window_right_padding=220)
By the way, my name input code is this:
Code: Select all
$ jun = renpy.input("Please type your name and hit enter, or just hit enter to go with the default name.", length=11)Code: Select all
if jun = Cat:
what_suffix='MEOW'