Search found 91 matches
- Thu May 24, 2018 8:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: What is the easiest way or the best way to make an inventory?
- Replies: 6
- Views: 1135
Re: What is the easiest way or the best way to make an inventory?
I did checked your tutorial, it is good, i do know though how classes,methods and lists work, i just have trouble on how to actually make that in a visual mannerso i can display it for the player.
- Thu May 24, 2018 7:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: What is the easiest way or the best way to make an inventory?
- Replies: 6
- Views: 1135
Re: What is the easiest way or the best way to make an inventory?
Maybe I should continue my cookbook tutorial and actually do the example how to make an actual screen for the inventory. This has been asked a few times now. Super-simple inventory: Make a list in python (using "$ inventory = []" or without "$" if inside a python block) and add ...
- Thu May 24, 2018 4:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: What is the easiest way or the best way to make an inventory?
- Replies: 6
- Views: 1135
What is the easiest way or the best way to make an inventory?
Like the tittle says I want to make an inventory, i kinda think of an array but i'm kinda lost on how to link it with a visual interface.
- Mon May 21, 2018 7:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
I just surrendered and made a label for it, is the most logical answer to be honest and now that i tested it is what i wanted: label time_increase: python: Time.one_hour_advance() "[Time.hour]" "[Time.hourText]" "[Time.day]" "[Time.dayText]" call screen kitche...
- Mon May 21, 2018 7:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
I checked the way you suggested and it is actually working but i need to stay in the game after increasing the time and not just going to the main menu.
- Mon May 21, 2018 6:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
Well if it doesn't do anything else after calling the screen - then it'll return to the main menu after... You need to add something like a narration line to stop the game from ending: label start: "[Time.time]" # or whatever the attribute is to get the current time call screen menu "...
- Mon May 21, 2018 6:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
- Mon May 21, 2018 6:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
Having the code like this now just jumps to the main menu when i press the Advance time button: screen menu: vbox: xalign 1.0 yalign 0.5 textbutton "Home entrance" action Jump("home1") textbutton "Testing Classes" action Jump("testing") vbox: xalign 0.0 yalign...
- Mon May 21, 2018 6:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
False alarm i was so stupid... i was calling the other thing myself, i deleted it and now it is not jumping to that label... i had a call to a screen and i wasn't even aware of it hahaha.
Still my function does not increase the time i'll do more checking.
Still my function does not increase the time i'll do more checking.
- Mon May 21, 2018 5:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
I just want to increase the time and not jump to another label or anything or do anything at all, is that even possible?
- Mon May 21, 2018 5:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
I tried using the code line but for some weird reason the game is not doing whatever the class method is supposed to do but instead jumps to another label even though i never indicated to do that in the code.
- Sat May 12, 2018 8:45 am
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Re: Making a button that calls a method of a class?
Checking you answer later, from a first quick glance it seems it is really what i wanted, i'll try to implement this later, thank you.
- Fri May 11, 2018 10:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making a button that calls a method of a class?
- Replies: 14
- Views: 2339
Making a button that calls a method of a class?
I made a class called Time that has a method that advances the time, but i don't know how to make a button that just does the method instead of having to create a label and then actually call the method to advance time. I just want to click the button and the method is executed... but unfortunatelly...
- Fri May 11, 2018 10:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the name of a character from a class?
- Replies: 10
- Views: 2142
Re: How to get the name of a character from a class?
Thanks for your help guys.
- Fri May 11, 2018 6:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get the name of a character from a class?
- Replies: 10
- Views: 2142
Re: How to get the name of a character from a class?
It's basically Renpy reading your string / text first, looking for any variables that needs to be substituted inside: https://www.renpy.org/doc/html/text.html#interpolating-data So "[char2nm]" means when Renpy tries to display it, it'll check what the variable char2nm contains, and displa...