Search found 786 matches

by kivik
Wed Aug 10, 2016 3:56 pm
Forum: Ren'Py Questions and Announcements
Topic: add variable every minute [SOLVED]
Replies: 7
Views: 1018

Re: add variable every minute

I think timer is the way to do it:

https://www.renpy.org/doc/html/screens.html#timer

I think the code may look something like this:

Code: Select all

timer 60.0 repeat action SetVariable('money', money + income)
by kivik
Mon Aug 08, 2016 5:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Object / variable references in python [SOLVED]
Replies: 2
Views: 274

Re: Object / variable references in python

I finally solved this by re-reading the saving and loading aspect of Ren'py. My items and rooms are all classes, but what happened was I was creating some of the objects in init blocks (I missed one of them) and some in labels - so when loading / restarting the game, the variables were messed up and...
by kivik
Mon Aug 08, 2016 2:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Object / variable references in python [SOLVED]
Replies: 2
Views: 274

Object / variable references in python [SOLVED]

I'm having a bit of trouble understanding python / Ren'py and it's causing problems when loading, saving or restarting the game: So I've got a load of rooms as objects, and in said rooms are items (also objects) that I can store. Pretty straight forward so far.. Now I want to move the player around ...
by kivik
Mon Aug 08, 2016 1:15 pm
Forum: Ren'Py Cookbook
Topic: Another dynamic gallery cookbook
Replies: 3
Views: 4359

Another dynamic gallery cookbook

So here's another take on the Ren'py gallery cookbook. I've seen leon's Instant CG and BG gallery but figured I needed something a bit different, and wanted to take this opportunity to learn a bit more Python. After making it and comparing the code, it looks like the core logic is the same (means I'...
by kivik
Sat Jun 25, 2016 10:03 am
Forum: Ren'Py Questions and Announcements
Topic: Side panel with dynamic player portrait [solved]
Replies: 2
Views: 426

Re: Side panel with dynamic player portrait

I had another look at the ConditionSwitch and realised that it would work on my player_portrait variable. I was under the misconception that it wouldn't return what I need for the image inside the window.

Now I can just change the variable to see different stats.
by kivik
Fri Jun 24, 2016 6:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Side panel with dynamic player portrait [solved]
Replies: 2
Views: 426

Side panel with dynamic player portrait [solved]

Hi there, I'm just starting out with Ren'py and trying to build a game with a permanent side panel that includes player stats, as well as the player portrait. As the player progresses through the game, they will acquire new appearances based on two or three variables, and I would like to show the ap...