Search found 735 matches

by Andredron
Wed Jun 05, 2024 1:54 am
Forum: Ren'Py Cookbook
Topic: Dnd calculator on renpy
Replies: 0
Views: 897

Dnd calculator on renpy

mCRljtxRPmU - The video has a buggy version, already fixed. default roll_history = [] default dice_type = 6 default dice_count = 1 default modifier = 0 default result = 0 init python: import json import random # Function for rolling dice def roll_dice(dice_type, dice_count, modifier): # access resu...
by Andredron
Thu May 30, 2024 12:08 pm
Forum: Ren'Py Cookbook
Topic: button "Continue game"
Replies: 12
Views: 13122

Re: button "Continue game"

Use [`action Continue()`](https://www.renpy.org/doc/html/screen_actions.html#Continue) added since version 8.1.1 Something like this: screen navigation(): vbox: if main_menu: if renpy.newest_slot != None: textbutton _("Continue") action Continue() else: textbutton _("New game") a...
by Andredron
Mon May 27, 2024 7:49 am
Forum: Ren'Py Cookbook
Topic: Automatic text translator for games on the RenPy.
Replies: 3
Views: 3107

Re: Automatic text translator for games on the RenPy.

https://github.com/anonymousException/renpy-translator

A translator for renpy based on google | youdao | deepl | open-ai | offline-ai tranlation supports extract untranslated words and translate.
by Andredron
Mon May 27, 2024 7:38 am
Forum: Ren'Py Cookbook
Topic: Renpy Runtime Editor
Replies: 0
Views: 467

Renpy Runtime Editor

https://github.com/anonymousException/renpy-runtime-editor A runtime editor for renpy. Target: Support edit the conversation during runtime Features: Completely free and open-source Support both build game and un-build game launched by renpy-sdk Completely offline Video - https://github.com/anonymou...
by Andredron
Mon May 27, 2024 7:16 am
Forum: Ren'Py Cookbook
Topic: ChatGPT(Lama) + Renpy
Replies: 1
Views: 5758

Re: ChatGPT(Lama) + Renpy

https://github.com/Calandiel/llama-renpy An example of utilizing large language models (LLMs) from within the Ren'Py engine To use this script, you must first run a llama.cpp server: https://github.com/ggerganov/llama.cpp In a real project, the server and model binaries should be shipped with the ga...
by Andredron
Mon May 27, 2024 1:44 am
Forum: Ren'Py Questions and Announcements
Topic: How can I make hover textbutton stay hovered until another textbutton is hovered over?
Replies: 6
Views: 389

Re: How can I make hover textbutton stay hovered until another textbutton is hovered over?

Code: Select all

screen hover_button():
    zorder 10

    imagebutton:
        idle "button_idle.png"
        hover "button_hover.png"
        selected_idle "button_selected.png"
        action Jump("label_name")

label start:
    show screen hover_button
by Andredron
Thu May 23, 2024 2:19 am
Forum: Ren'Py Cookbook
Topic: 83 mini game Renpy
Replies: 74
Views: 204025

Re: 83 mini game Renpy

pkRbnUvoGQc init python: import random import os import json # Initialize the game with players, dice sides, rounds, dice count, bonus sides, and bonus scores class DiceGame: def __init__(self, players, sides=6, rounds=1, dice_count=1, bonus_sides=[], bonus_scores={}): self.players = players self.s...
by Andredron
Wed May 22, 2024 4:22 am
Forum: Ren'Py Cookbook
Topic: little-used history chips
Replies: 5
Views: 2492

Re: little-used history chips

https://devilspider.itch.io/history-search-tool This tool adds support for searching through contents of the history screen. The tool adds a button which invokes a pop-up, allowing the end user to type in their search prompt. Simple regex patterns are also possible. The tool then filters out the his...
by Andredron
Sun May 19, 2024 11:38 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Making Multiple Player Profiles Work
Replies: 25
Views: 1751

Re: Making Multiple Player Profiles Work

Awesome! This could be a recipe for the cookbook if you don't mind sharing your code. Yeah, good call! I've made a few more quality-of-life changes to the system in the past few days, so once I feel satisfied that there isn't anything else I can think of to iron out, I'll put together a post. :) 👍👍👍
by Andredron
Sat May 11, 2024 5:06 am
Forum: Ren'Py Questions and Announcements
Topic: the number of dice and the modifier do not change the value
Replies: 3
Views: 301

Re: the number of dice and the modifier do not change the value

Thanks a lot, changed both in action and def, didn't help. init python: import json import random # Dictionary for storing the results of rolls roll_history = {} # Function for rolling dice def roll_dice(dice_type, dice_count, modifier): result = random.randint(dice_count, dice_type * dice_count) + ...
by Andredron
Sat May 11, 2024 2:24 am
Forum: Ren'Py Questions and Announcements
Topic: the number of dice and the modifier do not change the value
Replies: 3
Views: 301

the number of dice and the modifier do not change the value

I am trying to create a dice roll calculator for renpy but I encountered an error that the number of dice does not change and the modifier does not change either init python: import json import random # Dictionary for storing the results of rolls roll_history = {} # Function for rolling dice def rol...