Search found 284 matches
- Fri Nov 17, 2017 9:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: Has anyone developed, or know of, a weather engine for Ren'Py?
- Replies: 6
- Views: 997
Re: Has anyone developed, or know of, a weather engine for Ren'Py?
I did look into this some time ago since I wanted to have a weather system simmilar to the one found in Persona 4, where daily activities are affected by weather. While I didn't find anything regarding specifically the weather, if you're going to use months and days to control the flow of time in yo...
- Thu Nov 16, 2017 4:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: one character with multiple poses and clothes to wear
- Replies: 4
- Views: 617
Re: one character with multiple poses and clothes to wear
It would be better if you formatted your code by putting it between [code] and [/code] mantaining identation so it's easier to read. Anyway the problem seems to be that you're not changing the value in the script. One thing to note is that kim_cloth_code variable should be defined using default inst...
- Thu Nov 16, 2017 1:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: one character with multiple poses and clothes to wear
- Replies: 4
- Views: 617
- Thu Nov 16, 2017 1:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Platform specific build settings
- Replies: 2
- Views: 433
Re: Platform specific build settings
There are Platform detection functions to check what platform is currently being used.
Also you might want to look into Screen Variants.
Also you might want to look into Screen Variants.
- Thu Nov 16, 2017 12:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] renpy.notify() not working inside called function?
- Replies: 4
- Views: 960
Re: renpy.notify() not working inside called function?
I just tested your code and it seems to work fine, shows the notify screen with textmessage and pauses for 5 seconds (or until I click). So the problem doesn't seem to be in this code. Have you modified your notify screen?Or perhaps are you showing another image or screen above the area where the no...
- Thu Nov 16, 2017 9:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing disabled menu item
- Replies: 1
- Views: 294
Re: Showing disabled menu item
This post might be of help:
viewtopic.php?f=8&t=46294
viewtopic.php?f=8&t=46294
- Thu Nov 16, 2017 9:45 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Bug] python function as imagebutton action, firing multiple times
- Replies: 4
- Views: 1306
Re: [Bug] python function as imagebutton action, firing multiple times
This happened to me before, and I think it's because functions from screens need to be called using Function screen action. So something like this:
Code: Select all
imagebutton auto "my_button_%s.jpg" action Function(fMoveTo, "home yourbedroom")
- Mon Nov 13, 2017 10:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: Self-Balancing Stats Method isn't working :(
- Replies: 3
- Views: 437
Re: Self-Balancing Stats Method isn't working :(
I think it's because the result of this line:
Is being returned as an interger, instead of as 0.x float.
So maybe change self.up and self.down, into floats (e.g. 1.0) so the division result is more accurate.
Code: Select all
self.average = (self.up / (self.up + self.down))
So maybe change self.up and self.down, into floats (e.g. 1.0) so the division result is more accurate.
- Tue Nov 07, 2017 5:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: menu problem and point system problem
- Replies: 6
- Views: 603
Re: menu problem and point system problem
This is only a guess but I think it's because the empty space before the filename, unless the image file in your project is really called that way, judging from the other image names, instead of: ground " computerclass1r-ground.jpg" It should be: ground "computerclass1r-ground.jpg"
- Mon Nov 06, 2017 5:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Characters as objects and names
- Replies: 7
- Views: 3396
Re: Characters as objects and names
Your code seems okay, so I'm guessing the issue is the init python block, you need to define it like this: init -1 python: class NPC(object): # the rest of the code python block is used for writing and running code directly inside screens or in the script, while init python is typically used for cod...
- Mon Nov 06, 2017 3:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Characters as objects and names
- Replies: 7
- Views: 3396
Re: Characters as objects and names
Since I don't want to mess with built-in Character object, the way I've been doing this is by having two objects for each character, one is the Character object that Ren'Py comes with, wich I use only for dialogue related stuff, and a different Player object, created by myself, were I store pretty m...
- Mon Nov 06, 2017 2:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: SetScreenVariable not setting screen variable
- Replies: 2
- Views: 339
Re: SetScreenVariable not setting screen variable
I think the problem is that you're not declaring the variable with default statement. screen stats(char = None): #What you pass here is an argument to the screen, it doesn't count as a screen variable default selected_character = char #Here you declare the screen variable, and set it to the argument...
- Fri Nov 03, 2017 8:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] How to show alignment points after choices ?
- Replies: 8
- Views: 638
Re: How to show alignment points after choices ?
To initialize variables, you have to put them outside of a label, before label start is fine, and with default statement. Like this: default love_points = 0 screen test_screen(): vbox: if love_points >= 0: text "love points " + str(love_points) color "#00FF00" #Green (the really basic one) else: tex...
- Thu Nov 02, 2017 10:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Variables Referenced Before Assignment?
- Replies: 7
- Views: 812
Re: Variables Referenced Before Assignment?
This whole expression: all(Koinu_Happy == x for x in (Koinu_Love, Koinu_Excited, Koinu_Brave)) Means something like: "Check If Koinu_Happy is equal to x, and for each of the values in tuple (Koinu_Love, Koinu_Excited, Koinu_Brave), check if they are equal to x, if they are, then Koinu_Happy and all ...
- Wed Nov 01, 2017 2:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Variables Referenced Before Assignment?
- Replies: 7
- Views: 812
Re: Variables Referenced Before Assignment?
Ah, I'm late, I came up with a way to use all() function so you just had to adjust your code a little instead of having to struggle with all those ands, I don't know if you'll be able to use it for this case but here it goes: if all(Koinu_Happy == x for x in (Koinu_Love, Koinu_Excited, Koinu_Brave))...