Search found 18 matches

by Shiron
Wed Apr 15, 2020 12:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to save values?
Replies: 7
Views: 800

Re: How to save values?

Okay, thank you.
by Shiron
Tue Apr 14, 2020 4:48 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to save values?
Replies: 7
Views: 800

Re: How to save values?

I quess I’ve got the idea.

But just for the future facilitation, can I declare all the used variables of the game in one file, while the script and functions in different files? Do I have to give it the lowest init offset?
by Shiron
Mon Apr 13, 2020 5:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to save values?
Replies: 7
Views: 800

Re: How to save values?

So if I understand it correctly, if I rename all "set.xxxx" variables to "set_xxxx" it should work?

I can’t really use that "define" command, because all the variables are distributed through the script (they’re part of quite extensive interactive settings).
by Shiron
Mon Apr 13, 2020 11:15 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to save values?
Replies: 7
Views: 800

[Solved] How to save values?

Hi, please don’t think I’m troll just for asking this, but I thought I’ve solved it already. For more than a year I’m occasionally working on a game, which is using A LOT of variables. I remeber reading this tutorial at the beginning of the scripting... https://www.renpy.org/wiki/renpy/doc/tutorials...
by Shiron
Fri Nov 23, 2018 9:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Logic functions
Replies: 9
Views: 990

Re: Logic functions

Nah, I just find out that I actually CAN use brackets in statements, if I omit to specify their state by '=='. (It's basicaly a form of method mikolajspy mentioned.)

I don't even know why I thought I can't... Whatever, thanks for help, everyone. :)
by Shiron
Fri Nov 23, 2018 5:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Logic functions
Replies: 9
Views: 990

Re: Logic functions

Thank you for the answers! :) It's definitely true that I'm just beginner with Python and I need to learn it more, but I just had no idea where to find what I'm currently interested in. That's why I've asked here. I'm going to read more about that any() , all() , map() , reduce() and filter() functi...
by Shiron
Fri Nov 23, 2018 7:35 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Logic functions
Replies: 9
Views: 990

Re: Logic functions

I don't know if it is clear from the discussion, but this problem is still not solved yet.

Is there nobody who knows how to imput more complex logic functions into code?
by Shiron
Thu Nov 22, 2018 4:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Logic functions
Replies: 9
Views: 990

Re: Logic functions

mikolajspy: Thank you, that worked. :) By the way, both of my "examples" actually do the same. XD

Chekhov: I don't know, like (not(A and notB)) and (not(B and notA)) or any logic function using even more booleans. You can't use them without brackets anymore. :/
by Shiron
Thu Nov 22, 2018 10:03 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Logic functions
Replies: 9
Views: 990

[Solved] Logic functions

Hi, I've tried to find anything about it with google, but nothing relevant has showen up. :( How can I do logic functions with renpy? Let's say I would want to write something like this: if (option1 OR option2 OR option3) == True: jump LabelA else: jump LabelB (option1, option2 and option3 are boole...
by Shiron
Sun Nov 18, 2018 7:34 pm
Forum: Development of Ren'Py
Topic: Ren'Py Gripes
Replies: 556
Views: 594487

Re: Ren'Py Gripes

I have mention it here – viewtopic.php?f=32&t=52551 , but if you put too much choices into the choice screen, it overflows. My current solution is this: screen choice(items): style_prefix "choice" viewport id "choices": draggable True mousewheel "change" area (234, ...
by Shiron
Fri Nov 16, 2018 10:17 am
Forum: Development of Ren'Py
Topic: Too much choices
Replies: 8
Views: 1455

Re: Too much choices

Sorry for the late reply. As I can see, my problem wasn't fully solved yet, but I can see a path now, so I'll find my way out eventually. I'm sorry for thinking this was a bug, however, I still do think that if the engine just ignores my lines, even without crashing, it's still an issue. Nevertheles...
by Shiron
Thu Nov 15, 2018 2:47 pm
Forum: Development of Ren'Py
Topic: Too much choices
Replies: 8
Views: 1455

Re: Too much choices

Hmm... Removing the style prefix causes a complete loss of button images and text aligns, while the whole frame stays stuck to the top left corner. It still doesn't react to relative settings while correctly follows the absolute. :/ Then to customize the choice-style... It should be somewhere in the...
by Shiron
Thu Nov 15, 2018 1:44 pm
Forum: Development of Ren'Py
Topic: Too much choices
Replies: 8
Views: 1455

Re: Too much choices

Well, if you consider it a bug only when the game crashes, then this is definitely not a bug. :) However, exchanging this default part of the screens.rpy file: screen choice(items): style_prefix "choice" vbox: for i in items: textbutton i.caption action i.action with someting like this: sc...
by Shiron
Wed Nov 14, 2018 3:00 pm
Forum: Development of Ren'Py
Topic: Too much choices
Replies: 8
Views: 1455

Re: Too much choices

OK, thank you, I'll try it. :)

However, it changes noting about that "bug" part. I'm gonna use the way around, but for the development sake, this should be solved in the engine, too
by Shiron
Wed Nov 14, 2018 10:37 am
Forum: Development of Ren'Py
Topic: Too much choices
Replies: 8
Views: 1455

Too much choices

Hi, I'm sure someone must have noticed this already, so I don't know why it still isn't fixed, but the engine bugs when you apply too much choices with the "menu" command. I just put there 31 choices thinking it shows just part of them, while the others will be available with scrolling, bu...