Search found 722 matches

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

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

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

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

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

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

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

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

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

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.
by Andredron
Fri Apr 19, 2024 7:22 am
Forum: Ren'Py Questions and Announcements
Topic: Type out predetermined word when player types?
Replies: 4
Views: 883

Re: Type out predetermined word when player types?

Awesome! Been looking for something like this to create a screen by hacker man type, http://tentaculus.ru/hackerman/
by Andredron
Tue Apr 16, 2024 2:01 am
Forum: Ren'Py Cookbook
Topic: Randomness in renpy or Random number generators
Replies: 0
Views: 595

Randomness in renpy or Random number generators

if you've rollbacked this code and click it through once again then you should get the same result. That's how renpy.random works. If you need different values after rollback, try to use random.randint(1, 5) instead. https://www.renpy.org/doc/html/other.html#renpy-random # return a random float betw...
by Andredron
Thu Apr 11, 2024 3:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with a "connect the dots" mini game?
Replies: 3
Views: 1773

Re: Help with a "connect the dots" mini game?

Hey there everyone! I wanted to try and create some kind of "connect the dots" minigame in my VN but I have no idea what I should be trying to do to make it happen. The game must be able to register if the user hit all the correct points Something like if the user can connect point A to p...
by Andredron
Thu Apr 11, 2024 3:10 pm
Forum: Ren'Py Questions and Announcements
Topic: How to Update Outdated Shake Effect
Replies: 1
Views: 237

Re: How to Update Outdated Shake Effect

transform shake2(rate=0.090): linear rate xoffset 2 yoffset 0 linear rate xoffset -2.8 yoffset 2 linear rate xoffset 2.8 yoffset 0 linear rate xoffset -2 yoffset 2 linear rate xoffset +0 yoffset +0 repeat transform shake3(rate=0.090): linear rate xoffset 2 linear rate xoffset -2.8 linear rate xoffs...