Can I manually change the "_last_say_who"?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
mahoop
Regular
Posts: 46
Joined: Thu Jun 16, 2016 5:18 pm
Contact:

Can I manually change the "_last_say_who"?

#1 Post by mahoop »

The only way I can define the "_last_say_who" is when I call a text box or I can do it manually as a variable?

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Can I manually change the "_last_say_who"?

#2 Post by philat »

Well, I would assume there's no reason you can't set it manually, but it would be overwritten as soon as the next say statement. Why do you need to?

mahoop
Regular
Posts: 46
Joined: Thu Jun 16, 2016 5:18 pm
Contact:

Re: Can I manually change the "_last_say_who"?

#3 Post by mahoop »

philat wrote:Well, I would assume there's no reason you can't set it manually, but it would be overwritten as soon as the next say statement. Why do you need to?
I don't know how to do it.
My character image os based on it, so I want more ways to manipulate it.

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Can I manually change the "_last_say_who"?

#4 Post by philat »

...then don't use _last_say_who to control your character image? _last_say_who is updated by the engine on every say statement. If you want to control the image manually, use a different, non-system variable.

mahoop
Regular
Posts: 46
Joined: Thu Jun 16, 2016 5:18 pm
Contact:

Re: Can I manually change the "_last_say_who"?

#5 Post by mahoop »

philat wrote:...then don't use _last_say_who to control your character image? _last_say_who is updated by the engine on every say statement. If you want to control the image manually, use a different, non-system variable.

Due to my scheme I prefer to use it, there is a way to change it, other than automatically?

@edit
I mean, I need a way to edit it between scenes, not in image definition

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2399
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Can I manually change the "_last_say_who"?

#6 Post by Ocelot »

Did you try to assign to it?

Like _last_say_who = 'someone'?
< < insert Rick Cook quote here > >

mahoop
Regular
Posts: 46
Joined: Thu Jun 16, 2016 5:18 pm
Contact:

Re: Can I manually change the "_last_say_who"?

#7 Post by mahoop »

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 3561: expected statement.
    Like _last_say_who = 'mc'
                       ^

Ren'Py Version: Ren'Py 6.99.11.1749
that's what I got

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Can I manually change the "_last_say_who"?

#8 Post by xela »

mahoop wrote:

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 3561: expected statement.
    Like _last_say_who = 'mc'
                       ^

Ren'Py Version: Ren'Py 6.99.11.1749
that's what I got
It should be:

Code: Select all

$ _last_say_who = 'mc'
Like what we're doing? Support us at:
Image

mahoop
Regular
Posts: 46
Joined: Thu Jun 16, 2016 5:18 pm
Contact:

Re: Can I manually change the "_last_say_who"?

#9 Post by mahoop »

xela wrote: It should be:

Code: Select all

$ _last_say_who = 'mc'
Perfect! That's what I wanted!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Andredron, Bing [Bot]