Search found 295 matches

by Onishion
Wed Apr 13, 2016 5:11 am
Forum: Ren'Py Questions and Announcements
Topic: Call statement & arguement question[SOLVED]
Replies: 8
Views: 1472

Re: Call statement question

Can you call the result of a variable? I'm not sure. If not, then the only solution I could offer would be to call a long chain of if statements, if the variable is X, call Y, etc.
by Onishion
Tue Apr 12, 2016 4:56 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to use a variable when "show" ing something?
Replies: 10
Views: 685

Re: Is it possible to use a variable when "show" ing somethi

You should be able to just type "show ImageA at postion" No brackets needed.
by Onishion
Sat Apr 09, 2016 8:33 am
Forum: Ren'Py Questions and Announcements
Topic: Default not working correctly?
Replies: 20
Views: 1596

Re: Default not working correctly?

Hmm, I might try to figure something out, I'm just not exactly sure where to start. I mean, the problem is with older saves of my game not loading up in the latest version with the variables it should. I mean they define all right for people loading a new game, so they're obviously getting read and ...
by Onishion
Sat Apr 09, 2016 7:24 am
Forum: Ren'Py Questions and Announcements
Topic: Default not working correctly?
Replies: 20
Views: 1596

Re: Default not working correctly?

Ok, I tracked down an older save file, and it does cause hellacious issues. Default doesn't seem to be working as it's meant to, it's not initializing variables that were created after the save file was formed. The save file does really weird stuff too, like it shows up and works fine for a bit, but...
by Onishion
Sat Apr 09, 2016 6:52 am
Forum: Ren'Py Questions and Announcements
Topic: Default not working correctly?
Replies: 20
Views: 1596

Re: Default not working correctly?

Hmm. Very interesting. So I would need to add one of those for any variable that's been added to the game since earlier versions, but that might be worth it. It would only need to load once each time a save is loaded, at least. I could also combine that with my existing version-checking element to s...
by Onishion
Fri Apr 08, 2016 11:24 pm
Forum: Ren'Py Questions and Announcements
Topic: how to add more the one script?
Replies: 4
Views: 326

Re: how to add more the one script?

Is it in the game folder, next to script.rpy? What is the file name? You don't need to call or reference the file directly or anything like that, but you will need to call/jump to labels within that new file, depending on what's in there.
by Onishion
Fri Apr 08, 2016 11:10 pm
Forum: Ren'Py Questions and Announcements
Topic: how to add more the one script?
Replies: 4
Views: 326

Re: how to add more the one script?

It's automatic. You can make as many or as few scripts as you like, and so long as they are all in the base "game" directory, they get included into the final game as if they were a single file.
by Onishion
Fri Apr 08, 2016 10:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Default not working correctly?
Replies: 20
Views: 1596

Re: Default not working correctly?

Interesting, would it be too much trouble to walk me through how that works? Is "after_load" a special label that plays after a save is loaded up, or would I have to put it someplace specific? Is globals().keys() all the "know" variables? And would I need to make a unique if stat...
by Onishion
Fri Apr 08, 2016 6:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Default not working correctly?
Replies: 20
Views: 1596

Re: Default not working correctly?

Yeah, I'm not really sure what's causing it, and I'm getting the reports in second hand. All the variables in question are initialized using a long init -1: block, default Variable = "whatever", and in most cases this seems to work fine, if it didn't then the game would be completely unpla...
by Onishion
Thu Apr 07, 2016 11:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Expected Statement Problem
Replies: 5
Views: 1575

Re: Expected Statement Problem

I think you'd want it like this: grid 3 1: style_group "prefs" xfill True # The left column. vbox: frame: style_group "pref" has vbox label _("Display") textbutton _("Window") action Preference("display", "window") textbutton _("Fullsc...
by Onishion
Thu Apr 07, 2016 5:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Default not working correctly?
Replies: 20
Views: 1596

Default not working correctly?

I've been getting feedback on an issue and I'm not sure what's causing it. My understanding is that when you use "default Variable", then it will initialize that variable even in old saved games, and it almost has to work that way usually or most of my game updates would end up super buggy...
by Onishion
Thu Apr 07, 2016 4:28 am
Forum: Ren'Py Questions and Announcements
Topic: Inserting multiple names into dialogue [SOLVED]
Replies: 4
Views: 444

Re: Inserting multiple names into dialogue

So if the character's names could be "Larry, Curly, or Moe" and someone is addressing Moe, you want the dialog to say "So how are you doing, Moe?" while if they are addressing Larry, it says "How are you doing, Larry?" Well the way I'd do it, maybe not the best way, wou...
by Onishion
Wed Apr 06, 2016 5:28 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to use a variable when "show" ing something?
Replies: 10
Views: 685

Re: Is it possible to use a variable when "show" ing somethi

Yup, and if you have that many images, you might want to consider layering multiple images, like faces/hair/clothing over a body to reduce redundancy, up to you though.
by Onishion
Tue Apr 05, 2016 8:47 am
Forum: Ren'Py Questions and Announcements
Topic: Question regarding If Elif Else And
Replies: 2
Views: 414

Re: Question regarding If Elif Else And

Yeah, the thing to always remember about if-flow is that whenever it finds something is "True," it gives up entirely, (unless there is an "and" in there that makes it False). So basically you want to line things up in such a way that it will check the most likely thing first, and...
by Onishion
Tue Apr 05, 2016 3:29 am
Forum: Ren'Py Questions and Announcements
Topic: Questions regarding Coding
Replies: 7
Views: 707

Re: Questions regarding Coding

As you state above, the (completely unnecessary in this use case) ideal is to not execute code you don't need to, which is why I tried to set it up in such a way that you'd only assign $result once and random would only be called once. You're right, I think I had a mental blindspot in this where wh...