Search found 417 matches
- Fri May 10, 2024 10:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to load a PyGithub library into a game?
- Replies: 1
- Views: 59
Re: Is it possible to load a PyGithub library into a game?
As the documentation says, 1) install it to game/python-packages . 2) Try that import in .py file, not .rpy 3) Try to minimize conflicts, like import github.Auth and the like instead of importing all github If nothing works, then probably that package is not compatible with Ren'Py. You might try to ...
- Thu May 09, 2024 11:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 6
- Views: 165
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
PPS. It's possible to show several messages at the same time, either as a flat list of messages, or as a queue where each message would appear and disappear by its individual timer (and perhaps each message should be either the 1st in the queue, or it should be shown at least 0.5 sec after the previ...
- Thu May 09, 2024 11:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 6
- Views: 165
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
PS. Example: label start_battle: # Initialize the battle python: en = Enemy("elf") pl = Player() label battle_show_round: call screen battle(en) if not battle_finished: # conditions like (en.hp > 0 and pl.hp > 0 and nobody_flees) jump battle_show_round label do_whatever_after_battle: #... ...
- Thu May 09, 2024 10:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 6
- Views: 165
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Adding modal doesn't help, as it's not the player progressing through, but Python progressing to the next line of the method. renpy.pause(hard=True) is already in use during all of this to keep the player from progressing the Renpy script. (I've tried modal True for both the screen and the timer, a...
- Thu May 09, 2024 10:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Map where you cannot go to the same place multiple times
- Replies: 8
- Views: 302
Re: Map where you cannot go to the same place multiple times
On script.rpy: label map: jump call_mapUI label house1_pressed: scene bg classroom "House 1 was pressed!" jump call_mapUI label house2_pressed: "House 2 was pressed!" jump call_mapUI ##below does not work, as it never exits the map loop label nextscene: scene black show mc idle ...
- Thu May 09, 2024 8:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Variable as a part of another variable's name?
- Replies: 6
- Views: 239
Re: Variable as a part of another variable's name?
You type
Code: Select all
long
- Thu May 09, 2024 8:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screeen not Refreshing after Shift + R
- Replies: 2
- Views: 73
Re: Screeen not Refreshing after Shift + R
Note that with Shift-R you "turn ON" the mode that refreshes the data every time the source files change. Hence you press Shift-R only once, and the game will be reloaded automatically each time the code changes. (Until you press Shift-R again). It means if you press Shift-R twice, you tur...
- Thu May 09, 2024 8:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Annoying script error
- Replies: 4
- Views: 256
- Sun Apr 07, 2024 9:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 241
Re: Item slot placements in inventories
I tried implementing it into my game but I got an error saying that "tooltip" is not a keyword argument or valid child of the add statement. There is official Ren'Py documentation here: https://renpy.org/doc/html/ Most problems can be solved by searching that site. About tooltip: my bad. ...
- Sun Apr 07, 2024 4:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 241
Re: Item slot placements in inventories
For every slot of the inventory, certain information should be stored: * position (x, y) of the slot, * what item is there in the slot. For example: default inventory = [ {"pos": (100, 20), "item": None}, {"pos": (100, 120), "item": None}, {"pos": (1...
- Sun Apr 07, 2024 3:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Alternative display format
- Replies: 3
- Views: 222
Re: Alternative display format
The text box could be based on NVL-mode dialog: https://renpy.org/doc/html/gui.html#nvl but instead of a large vertical wall of text, it could be a lesser scrollable box, a "viewport" with scrollbar: https://renpy.org/doc/html/gui.html#scrollbars https://renpy.org/doc/html/screens.html#vie...
- Sun Apr 07, 2024 11:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 161
Re: custom Displayable style_prefix
Is it possible to get the value from - style_prefix "navigation" ? I want to make a button like "textbutton" so that it pulls styles from the parent style_prefix. It works for standard displayables, like Button. It might be possible to employ the same mechanism here. What if we ...
- Sun Apr 07, 2024 8:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 161
Re: custom Displayable style_prefix
How to make your own custom button "textbutton" so that style_prefix "navigation" styles are applied to it ? class SmoothHover(renpy.Displayable): def __init__(self, text, action, text_colors, outline_colors, **kwargs): in the screen navigation() block: I added a button but the ...
- Sun Apr 07, 2024 8:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: [HELP] Screen menu issues
- Replies: 6
- Views: 277
Re: [HELP] Screen menu issues
I tryed, but problem still here. :< Other problems in the posted code are: (1) Wrong indentations. Each level of indentation should be 4 spaces. (2) Multiple "idle" and "hover" in the same imagemap. "idle" and "hover" are images (like backgrounds) for their i...
- Sat Apr 06, 2024 9:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Any way to access store variables from CDS function?
- Replies: 5
- Views: 197
Re: [HELP] Any way to access store variables from CDS function?
def execute_my_cds(parsed_object): getattr(store, "my_complex_system_object").do_some_complex_stuff(parsed_object) Still fails for the same reason that using "store.my_complex_system_object" fails: the CDS code runs when the "python early" block initializes it (though ...