Search found 16 matches
- Wed Feb 22, 2023 9:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Changing a bar scroll value inside a label
- Replies: 0
- Views: 681
Changing a bar scroll value inside a label
Hi. I have a viewport and I want that his vbar remains always at the bottom, if it is at the bottom, and remains where it is when it's not at the bottom. This, obviously while what I have in the viewport change. Here's my code so far: #This is the viewport. screen images_screen: side "c r"...
- Mon Dec 12, 2022 1:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Auto Updating Variables
- Replies: 2
- Views: 340
- Sun Dec 11, 2022 11:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: Auto Updating Variables
- Replies: 2
- Views: 340
Auto Updating Variables
Hi everyone. I know that what I'm about to ask is probably quite simple for who know how to program. But I do not, so I have no clue. I have a simple time system that is a numeric variable ("daytime") from 0 to 3 updated manually when needed (0 = morning, 1 = afternoon, 2 = evening, 3 = ni...
- Sun Sep 18, 2022 3:15 pm
- Forum: Ren'Py Cookbook
- Topic: The Best Inventory I Know So Far
- Replies: 0
- Views: 3256
The Best Inventory I Know So Far
First of all, sorry for any error. English is not my first language. The code I will show and explain you is not created by me. I only completed and improved it. The creator of this inventory (Milkymalk) explained it here ( https://lemmasoft.renai.us/forums/viewtopic.php?t=44730 ) and I will also co...
- Thu Sep 08, 2022 6:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: Integers with VariableInputValue in Screens
- Replies: 3
- Views: 476
- Wed Sep 07, 2022 11:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: Integers with VariableInputValue in Screens
- Replies: 3
- Views: 476
Integers with VariableInputValue in Screens
Hi everyone. I'm trying to get the age of a character modified by the user with an input in a screen. Here's the code: screen E_age: input default "[Eage]": pixel_width(500) value VariableInputValue("Eage") I want that the variable Eage to change according to what the user type. ...
- Tue Aug 02, 2022 5:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]AttributeError:'StoreModule' object has no attribute
- Replies: 3
- Views: 8668
Re: [SOLVED]AttributeError:'StoreModule' object has no attribute
I had the same problem, but the reason is slightly different. I explain it for anyone who comes over this conversation looking for a solution. Basically I had created an inventory, created the game and made some saves. After that, I decided to rework the inventory from scratch. From that moment on, ...
- Sun Jul 03, 2022 5:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Show a screen in/on another one
- Replies: 3
- Views: 373
Show a screen in/on another one
Here's my riddle: I want to show one screen in/on another one without have to repeat all the code of one of the two. I explain better: i am making a freeroam and I want that the player can move either with a minimap (screen 1) that remains the same or clicking on the doors or waythrough and, obvious...
- Thu Dec 31, 2020 11:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: A problem with the time system
- Replies: 2
- Views: 370
- Thu Dec 31, 2020 8:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: A problem with the time system
- Replies: 2
- Views: 370
A problem with the time system
Hello everyone. I'm trying to make a screen that show the current day and daytime and, when the player clicks it, jump to the next part of the day. Here's the code: screen time(): imagebutton yalign 0.0: idle "gui/time_gui.png" action [If(daytime >= 3, true=(SetVariable("daytime"...
- Mon Dec 21, 2020 4:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a class
- Replies: 1
- Views: 339
Help with a class
Hi everyone, this is my code. class Item: def __init__(self, name, cost, count): self.name = name self.cost = cost def pcount (self, number): self.count += number def mcount (self, number): self.count -= number I want that item.pcount increase "count" of one given item. But I know almost n...
- Fri Dec 18, 2020 5:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: NameError: name "inventory" is not defined
- Replies: 4
- Views: 435
Re: NameError: name "inventory" is not defined
Try to start game from the beginning (don't use previously made saves). Also, try to declare the 'inventory' like default inventory = Inventory() # The game starts here. label start: #settingupitems $ money = inventory.money Thank you. Now everything work just fine. It was the old save the problem.
- Fri Dec 18, 2020 3:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: NameError: name "inventory" is not defined
- Replies: 4
- Views: 435
Re: NameError: name "inventory" is not defined
The issue is that Ren'Py executes your code line by line in order. So, in this part you must declare 'inventory' before using it for declaring 'money' variable. Should be # The game starts here. label start: $ inventory = Inventory() #settingupitems $ money = inventory.money Thank for the support. ...
- Fri Dec 18, 2020 7:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: NameError: name "inventory" is not defined
- Replies: 4
- Views: 435
NameError: name "inventory" is not defined
Hi everyone. I'm making a fantasy themed visual novel and I wanna implement an inventory system. I used the second example of this tutorial: https://www.renpy.org/wiki/renpy/doc/cookbook/Inventory_and_Money_System and as long as I only pasted, copied and modified the code, everything worked. But, wh...
- Thu Sep 10, 2020 5:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can't Change Text Color Of The Choices
- Replies: 2
- Views: 359
Re: Can't Change Text Color Of The Choices
define gui.choice_button_text_idle_color = "#cccccc" determines the idle color of the choice button, its basically set to #ccc which is almost white. try setting it to other color. this might also help you in customizing the gui, refer to this guide https://www.renpy.org/doc/html/gui.html...