Search found 30 matches
- Wed Nov 22, 2023 1:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can Python search all say statements between two labels?
- Replies: 2
- Views: 4866
Re: Can Python search all say statements between two labels?
Actually that's an interesting idea - also the "Extract Dialogue" function has quite a few options so perhaps the tab delimited spreadsheet may give me the data I need. In any case, I suspect preparing a separate file and loading it into a variable using renpy.file() may be the way to go. ...
- Tue Nov 21, 2023 3:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can Python search all say statements between two labels?
- Replies: 2
- Views: 4866
Can Python search all say statements between two labels?
I'm working on a scene viewer that would, among other things, be able to list scenes that contain a word or phrase. The idea is that every scene would start with a label; then if I could use python to search for the term between that label and the next, if the term appears, python would return that ...
- Wed May 18, 2022 9:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How can I force an animated background and sprite to show at the same time.
- Replies: 2
- Views: 421
Re: How can I force an animated background and sprite to show at the same time.
Thanks Alex - that is exactly what I needed.
- Mon May 16, 2022 9:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How can I force an animated background and sprite to show at the same time.
- Replies: 2
- Views: 421
[SOLVED] How can I force an animated background and sprite to show at the same time.
I have an animated background of a landscape, and several sprites (also animated) of 2 characters sitting in the cab of a truck. Here is some of the code for the images: image ch01_truck_bg_trog = Movie(play="videos/ch01_truck_bg_trog_01.webm", loop=True, start_image="videos/ch01_truc...
- Sat Dec 18, 2021 11:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to make a master volume slider? [SOLVED]
- Replies: 8
- Views: 2935
Re: How to make a master volume slider? [SOLVED]
Yes I have been trying to find a way to assign these values during init without success. Best idea I've come up with so far is to write an alternative play function that includes a call to setVolumes. I'm guessing, since renpy.music.set_volume seems to have no equivalent screen or standard renpy fun...
- Thu Dec 16, 2021 11:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to make a master volume slider? [SOLVED]
- Replies: 8
- Views: 2935
Re: How to make a master volume slider? [SOLVED]
For anyone else coming to this thread late, there is a much easier way to do this, via a rather arcane function: renpy.music.set_volume (volume, delay=0, channel=u'music') link , which "Sets the volume of this channel, as a fraction of the volume of the mixer controlling the channel." Ther...
- Tue Dec 07, 2021 10:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I set custom outlines for my custom hyperlink styles
- Replies: 0
- Views: 665
How can I set custom outlines for my custom hyperlink styles
I have two custom hyperlink styles - hyper_st and hyper_vic, showing green and red text respectively. style hyper_st is hyperlink_text: color '#0f0' style hyper_vic is hyperlink_text: color '#f00' What I'd like to do is add a different coloured outline to each style, so that hyper_st is green with a...
- Thu Nov 25, 2021 11:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How can I set styles for different hyperlink handlers?
- Replies: 2
- Views: 504
Re: How can I set styles for different hyperlink handlers?
Thanks Ocelot - that worked perfectly!
- Wed Nov 24, 2021 3:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How can I set styles for different hyperlink handlers?
- Replies: 2
- Views: 504
[SOLVED] How can I set styles for different hyperlink handlers?
I have 2 different hyperlink handlers, each of which causes the hyperlink to open a different dictionary (I mean a language dictionary - not python) at the relevant entry. def strine_hander(value): value = value.strip() global st_index global st_list for x in st_list: if value == x: st_index = st_li...
- Mon Sep 13, 2021 11:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I set a transition with renpy.hide_screen?
- Replies: 2
- Views: 446
Re: How can I set a transition with renpy.hide_screen?
Thanks Remix. However, that gave the error:
"Exception: Cannot start an interaction in the middle of an interaction, without creating a new context."
I tried inserting: "renpy.restart_interaction()" before or after these 2 lines but that didn't seem to help either.
"Exception: Cannot start an interaction in the middle of an interaction, without creating a new context."
I tried inserting: "renpy.restart_interaction()" before or after these 2 lines but that didn't seem to help either.
- Mon Sep 13, 2021 4:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I set a transition with renpy.hide_screen?
- Replies: 2
- Views: 446
How can I set a transition with renpy.hide_screen?
This should be easy but I couldn't find it in the documentation.
With either the hide screen statement or the Hide action, you can set a transition. However, I can't find an equivalent for renpy.hide_screen
As always, any suggestions or information would be most appreciated.
With either the hide screen statement or the Hide action, you can set a transition. However, I can't find an equivalent for renpy.hide_screen
As always, any suggestions or information would be most appreciated.
- Sun Sep 12, 2021 2:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]How can I save global variables without advancing the main script?
- Replies: 2
- Views: 416
Re: How can I save global variables without advancing the main scrip?
Thank you Alex!
That's exactly what I was looking for.
That's exactly what I was looking for.
- Sat Sep 11, 2021 8:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]How can I save global variables without advancing the main script?
- Replies: 2
- Views: 416
[SOLVED]How can I save global variables without advancing the main script?
I have several global boolean variables that are set to true if the player correctly answers questions that are asked and answered in a screen. The variables are global, rather than screen variables because checking the answers is quite complex so needs to be handled by python functions. The problem...
- Tue Sep 07, 2021 8:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I make a screen modal on the fly?
- Replies: 6
- Views: 631
Re: How can I make a screen modal on the fly?
Thanks Imperf3kt - Yes, I suspect that part of my problem is that I'm doing almost everything from Python rather than Renpy. I notice, for example, that the traceback I get when trying to use a kwarg includes: File "game/screens.rpy", line 134: a non-constant keyword argument like 'modal m...
- Tue Sep 07, 2021 2:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I make a screen modal on the fly?
- Replies: 6
- Views: 631
Re: How can I make a screen modal on the fly?
Thanks for the suggestions Imperf3kt. When I try using a keyword argument, I get the "NameError: name 'm' is not defined" traceback. I hadn't thought of using call, and it seems promising. However, when I tried: renpy.call_screen("g01_tasks", tasks_size=g01_tasks_zoom, tasks_vis=...