Search found 727 matches

by Andredron
Thu May 23, 2024 2:19 am
Forum: Ren'Py Cookbook
Topic: 83 mini game Renpy
Replies: 74
Views: 183004

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: 2234

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: 1319

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: 247

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: 247

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...
by Andredron
Sun May 05, 2024 4:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Eyes following the mouse cursor in the main menu.
Replies: 8
Views: 886

Re: Eyes following the mouse cursor in the main menu.

Ai code . init python: eye_angle = 0 screen Eyes(): add "eyes.png" # Replace "eyes.png" with the name of your eye sprite timer 0.1 repeat True action Jump("update_eye_angle") label update_eye_angle: python: mouse_x, mouse_y = renpy.get_mouse_pos() eye_x, eye_y = # Eye c...
by Andredron
Sun May 05, 2024 9:50 am
Forum: Ren'Py Questions and Announcements
Topic: I can't get the path to the folder right
Replies: 0
Views: 213

I can't get the path to the folder right

I prescribe for the cookbook of this forum recipe for creating a race and character by the rules of dnd. and encountered a problem when I kind of prescribed in the code to take a file from the race or class folder, but instead it complains constantly that in the folder game, does not see the file, w...
by Andredron
Tue Apr 30, 2024 6:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Minigame domino eror
Replies: 2
Views: 295

Re: Minigame domino eror

NlQxkFu_wKQ init python: import random ###This code defines a class Domino, representing a single domino tile. It has an initializer (__init__) that sets the values of value1 and value2 for a domino tile. The __str__ method returns a string representation of the domino tile. The valid_move method c...
by Andredron
Tue Apr 30, 2024 7:43 am
Forum: Ren'Py Questions and Announcements
Topic: Minigame domino eror
Replies: 2
Views: 295

Re: Minigame domino eror

init python: import random class Domino: def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 def __str__(self): return f"[{self.value1}|{self.value2}]" dominoes = [Domino(0, 0), Domino(0, 1), Domino(0, 2), Domino(0, 3), Domino(0, 4), Domino(0, 5), Domino(0, 6), D...
by Andredron
Mon Apr 29, 2024 4:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Minigame domino eror
Replies: 2
Views: 295

Minigame domino eror

Hi everyone, I need your help. I'm doing code minigame dominoes, before I wrote the code, the screen displayed what dominoes at the player and the computer, worked without problems, tried to add conditions, consider the rules of the real game, like too the screen started. I wrote more improvements a...
by Andredron
Wed Apr 24, 2024 2:09 am
Forum: Ren'Py Cookbook
Topic: Animated application icon
Replies: 0
Views: 1011

Animated application icon

https://boosty.to/7dots/posts/242cd9cb-8e41-4428-ad8d-b49e5dd5b1b4 https://images.boosty.to/image/b3a12770-c82c-4bb7-88e0-e784146c8759?change_time=1700936473&mw=545 set_icon.rpy ## HOW TO USE: # set static icon (only works with files) # $ set_icon(filename) # return the default icon # $ set_icon...
by Andredron
Fri Apr 19, 2024 8:24 am
Forum: Ren'Py Questions and Announcements
Topic: Implementing TTS in Android (for self voicing)
Replies: 3
Views: 700

Re: Implementing TTS in Android (for self voicing)

Good afternoon, has there been any progress since the fast? I'm curious to know the result.