Search found 13 matches

by HiddenLife
Sun Sep 18, 2022 3:15 pm
Forum: Ren'Py Cookbook
Topic: The Best Inventory I Know So Far
Replies: 0
Views: 579

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...
by HiddenLife
Thu Sep 08, 2022 6:31 am
Forum: Ren'Py Questions and Announcements
Topic: Integers with VariableInputValue in Screens
Replies: 3
Views: 278

Re: Integers with VariableInputValue in Screens

Ocelot wrote:
Wed Sep 07, 2022 12:41 pm
There are two possibilities:
2) Create your own InputValue subclass and do conversion on the fly.
I have absolutely NO idea how to do that.
by HiddenLife
Wed Sep 07, 2022 11:20 am
Forum: Ren'Py Questions and Announcements
Topic: Integers with VariableInputValue in Screens
Replies: 3
Views: 278

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. I know this code wou...
by HiddenLife
Tue Aug 02, 2022 5:46 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError:'StoreModule' object has no attribute
Replies: 3
Views: 5870

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, ...
by HiddenLife
Sun Jul 03, 2022 5:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Show a screen in/on another one
Replies: 3
Views: 215

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...
by HiddenLife
Thu Dec 31, 2020 11:01 am
Forum: Ren'Py Questions and Announcements
Topic: A problem with the time system
Replies: 2
Views: 281

Re: A problem with the time system

Shie wrote:
Thu Dec 31, 2020 9:30 am
if day <= 0 text morning

Probably you wanted
if daytime <= 0 text morning?
Okay. I'm a complete idiot. Thank you.
by HiddenLife
Thu Dec 31, 2020 8:36 am
Forum: Ren'Py Questions and Announcements
Topic: A problem with the time system
Replies: 2
Views: 281

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", 0), If(day >= 6, t...
by HiddenLife
Mon Dec 21, 2020 4:06 am
Forum: Ren'Py Questions and Announcements
Topic: Help with a class
Replies: 1
Views: 278

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 nothing abo...
by HiddenLife
Fri Dec 18, 2020 5:39 pm
Forum: Ren'Py Questions and Announcements
Topic: NameError: name "inventory" is not defined
Replies: 4
Views: 333

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.
by HiddenLife
Fri Dec 18, 2020 3:13 pm
Forum: Ren'Py Questions and Announcements
Topic: NameError: name "inventory" is not defined
Replies: 4
Views: 333

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. ...
by HiddenLife
Fri Dec 18, 2020 7:49 am
Forum: Ren'Py Questions and Announcements
Topic: NameError: name "inventory" is not defined
Replies: 4
Views: 333

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...
by HiddenLife
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: 300

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 After cha...
by HiddenLife
Wed Sep 09, 2020 8:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't Change Text Color Of The Choices
Replies: 2
Views: 300

Can't Change Text Color Of The Choices

Hello everyone. I was trying for the first time to make my own visual novel, but I have a very simple problem and I can't figure out how to solve it. The problem is that in the choice button, the text is white. White Text 1.png When I hover the cursor on the button, the text is visible because the b...