Search found 24 matches

by srksrk 68
Mon Jul 22, 2019 4:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Simple question about dialogue
Replies: 6
Views: 533

Re: Simple question about dialogue

Have you already found this?

https://www.renpy.org/doc/html/text.html

There are all the text tags and more explained. It is also possible to define your own tags. If you don't find what you need there, I do not know where else to look...
by srksrk 68
Mon Jul 22, 2019 11:12 am
Forum: Ren'Py Questions and Announcements
Topic: Question on redefining functions in renpy's python modules (e.g. exports.py)
Replies: 0
Views: 355

Question on redefining functions in renpy's python modules (e.g. exports.py)

Hello, since I am relatively new to python/renpy I am wondering if it is safe to modify or redefine coding in the python modules that come with renpy. For example, I want to have a custom say function which is originally defined in exports.py: init 100 python: def my_say(who, what, *args, **kwargs):...
by srksrk 68
Mon Jul 22, 2019 11:01 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Skip/ Fast-Forward not stopping at end of game as told
Replies: 6
Views: 597

Re: Skip/ Fast-Forward not stopping at end of game as told

OK with the return statements my idea is ruled out ;) If your calling instance does not accidently call both endings, there must be something else. Do you set the persistent.endings variable outside of this coding? Maybe you should add some debug output which displays the content of some variables w...
by srksrk 68
Mon Jul 22, 2019 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: Simple question about dialogue
Replies: 6
Views: 533

Re: Simple question about dialogue

Well, in your second example, sentence two clears out sencence one when displayed, and thereafter sentence three clears sentence two and so on, so you only see one sentence at a time. I do not quite know what you want to achieve. If you want to have all sentences displayed (each after a mouse click ...
by srksrk 68
Mon Jul 22, 2019 8:58 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Skip/ Fast-Forward not stopping at end of game as told
Replies: 6
Views: 597

Re: Skip/ Fast-Forward not stopping at end of game as told

Hi,

I did not look in detail, but do you not call both if branches on first ending (because neither "neutral" nor "honesty" are in persistent.endings)? Then you would append both at the same time, and the second time your game ends, both if's resolve to false.

Just an idea. I am not a renpy guru.
by srksrk 68
Sun Jul 21, 2019 3:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing text (what id "what")
Replies: 4
Views: 487

Re: Changing text (what id "what")

OK, I think I might have found a solution that works out: init 100 python: def say(who, what, *args, **kwargs): """ Copied from exports.py """ what = alter_dialog(who, what) if renpy.config.old_substitutions: # Interpolate variables. what = what % renpy.exports.tag_quoting_dict if who is None: who =...
by srksrk 68
Sat Jul 20, 2019 9:53 am
Forum: Ren'Py Questions and Announcements
Topic: Changing text (what id "what")
Replies: 4
Views: 487

Re: Changing text (what id "what")

OK, I guess it just doesn't work out that way. At the time alter_dialog is called, neither the say screen nor the who variable are set to the current value, so my intended dialog replacement does not make sense at this point. Is there a way to have the cps setting applied to text field with differen...
by srksrk 68
Sat Jul 20, 2019 8:13 am
Forum: Ren'Py Questions and Announcements
Topic: Changing text (what id "what")
Replies: 4
Views: 487

Re: Changing text (what id "what")

Hi,

thanks for those hints, already very helpful. However, _last_say_who seems to be "one behind", i.e. I only get the previous who, not the actual.

Maybe I can find a way to get it right without the "who". Still trying...
by srksrk 68
Fri Jul 19, 2019 8:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing text (what id "what")
Replies: 4
Views: 487

Changing text (what id "what")

Hello, I understand that the standard say screen needs a text field with id "what" to display the dialog: text what id "what" What I want to do is to change that dialog while the screen is being displayed. For instance, I have a alter_dialog function that converts the content of screen variable what...