Search found 3 matches
- Thu May 04, 2017 7:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to update a variable
- Replies: 6
- Views: 1897
Re: How to update a variable
It depends on when and why do you need that variable. If you need it many times, I would do a function for every char variable to update that variable and the total. init python: def c1(value=1): global char1, total char1 += value total = char1 + char2 + char3 def c2(value=1): global char2, total c...
- Wed May 03, 2017 7:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to update a variable
- Replies: 6
- Views: 1897
Re: How to update a variable
Thanks, that solves the biggest problem. But still, how do I save the values char1+char2+char3 in a variable and keeping it updated as the game progresses?xavimat wrote:Create a screen with a bar and, in value, put char1+char2+char3
- Wed May 03, 2017 6:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to update a variable
- Replies: 6
- Views: 1897
How to update a variable
So I have a point system where each character has a certain amount of points. And I want the total amount (char1 + char2 + char3...) of points to be displayed in the UI bar. Is there some special label or something that automatically executes every frame or interaction that I can use to automaticall...