Search found 91 matches

by Zherot
Fri May 11, 2018 5:44 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get the name of a character from a class?
Replies: 10
Views: 2210

Re: How to get the name of a character from a class?

I don't think you want to define m anyway, as it will cause problems down the line when you save and load the game. Characters are usually immutable, so in reality it will help with savegame bloat. BUt you are correct. default is "init-after-start" when define works at init time. Do you w...
by Zherot
Fri May 11, 2018 12:01 am
Forum: Ren'Py Questions and Announcements
Topic: How to get the name of a character from a class?
Replies: 10
Views: 2210

Re: How to get the name of a character from a class?

Sorry for not answering anything yet but i have been bussy with other stuff, i will check your answers as soon as i can.
by Zherot
Sat May 05, 2018 12:16 am
Forum: Ren'Py Questions and Announcements
Topic: How to get the name of a character from a class?
Replies: 10
Views: 2210

Re: How to get the name of a character from a class?

I just wanted to stablish names for characters since the object creation,to make the process easier or more "efficient", is that really a bad thing that can cause problems with saves?
by Zherot
Fri May 04, 2018 6:26 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get the name of a character from a class?
Replies: 10
Views: 2210

How to get the name of a character from a class?

I want to define my characters as classes and set the name directly when i create an instance of that character class, but i have trouble getting the name from that instance and then passing it to the method that creates characters in renpy: default MC = Characters("Jhon") default char2nm=...
by Zherot
Tue Sep 12, 2017 5:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Display stats or information on a screen?
Replies: 17
Views: 2518

Re: Display stats or information on a screen?

JayBlue wrote: Mon Sep 11, 2017 7:40 am Yeah, pretty much. ... And no one will ever know :)

This method is probably the best if you want to make very artisticly detailed frames.
Yep, i thought about that, time to fool some people then... :lol:
by Zherot
Sat Sep 09, 2017 10:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Display stats or information on a screen?
Replies: 17
Views: 2518

Re: Display stats or information on a screen?

So it would be like making the image a "fake" frame and just display the data over it?
by Zherot
Fri Sep 08, 2017 2:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Display stats or information on a screen?
Replies: 17
Views: 2518

Re: Display stats or information on a screen?

Ok not quoting you because it would be a long ass quote hahaha. I know how to use imagebuttons and yeah i learned from that link and other help i received here on the forums, what i really wanted to know is if there is a way to make a "cuztom frame", in the example of the frame you gave me...
by Zherot
Fri Sep 08, 2017 2:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with some values(stats) resetting to default value (0) after closing Renpy
Replies: 7
Views: 2535

Re: Problem with some values(stats) resetting to default value (0) after closing Renpy

I heard. I grew up in Earthquake country so I've been really worried when I heard about it. Are you okay? Yeah, fortunately the eathquake was an oscillatory one and it didn't lasted that much, but seriously it was really bad, and on top of that those lights in the sky made everything worse, like we...
by Zherot
Fri Sep 08, 2017 2:47 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with some values(stats) resetting to default value (0) after closing Renpy
Replies: 7
Views: 2535

Re: Problem with some values(stats) resetting to default value (0) after closing Renpy

init python: class Items(object): def __init__(self, name, price, count=0): self.name = name self.price = price self.count = count default dagger = Items("Dagger", 25, 1) default boots = Items("Boots", 15, 1) Think about it this way. When you create that Item class...you aren't ...
by Zherot
Fri Sep 08, 2017 12:45 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with some values(stats) resetting to default value (0) after closing Renpy
Replies: 7
Views: 2535

Re: Problem with some values(stats) resetting to default value (0) after closing Renpy

PyTom clarified this in a post that I was following. Use default for things that change. So all those variables...including (and this is the new thing I learned!) persistent variables. Use define for things that won't change during the game, characters (for example) don't change after creation, so ...
by Zherot
Thu Sep 07, 2017 10:59 pm
Forum: Ren'Py Questions and Announcements
Topic: define vs. $ (declaring variables)
Replies: 19
Views: 17399

Re: define vs. $ (declaring variables)

Just had a problem with saving variables thanks to this.

viewtopic.php?f=8&t=45685&p=464508#p464508
by Zherot
Thu Sep 07, 2017 10:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with some values(stats) resetting to default value (0) after closing Renpy
Replies: 7
Views: 2535

Re: Problem with some values(stats) resetting to default value (0) after closing Renpy

O my fucking god... Jesus fucking Christ... lol This topic helped me with this: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=42245 trooper6 response... seriously, default and define are actually different and that is why define doesn't do to manipulate variables. trooper6 you are a sain...
by Zherot
Thu Sep 07, 2017 10:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with some values(stats) resetting to default value (0) after closing Renpy
Replies: 7
Views: 2535

Problem with some values(stats) resetting to default value (0) after closing Renpy

I have this stats that are inside a class, so i created 1 object of this class and i am pretending to display this values on a screen/frame, it works but the problem i have now is that if i save and load the data is still there, but the moment i close renpy and then start again the game and load eve...
by Zherot
Thu Sep 07, 2017 9:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Display stats or information on a screen?
Replies: 17
Views: 2518

Re: Display stats or information on a screen?

Oh, and you can hide and show the menu whenever you want by doing this. Add 'define statscreen = True' and change the variable in the 'label start:' to experiment with it. #Changed changed variables to define due to trooper6's advise define MC_name = "Joe" define MC_HP = 100 define MC_max...
by Zherot
Tue Sep 05, 2017 9:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Display stats or information on a screen?
Replies: 17
Views: 2518

Re: Display stats or information on a screen?

That is incorrect. When you show a screen, it opens the screen but it doesn't pause the game. Show screen does not create a new context. So you can show, for example, a screen that has time or some data showing that you want to show for a while and keep going on with your game. (There are ways to m...