Search found 9 matches

by HansBr
Mon Mar 19, 2018 1:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Translation question
Replies: 5
Views: 2206

Re: Translation question

Thank you.
renpy.substitute() was exactly the function I was looking for.
by HansBr
Mon Mar 19, 2018 11:06 am
Forum: Ren'Py Questions and Announcements
Topic: Translation question
Replies: 5
Views: 2206

Re: Translation question

Me again. It does not work for more complex translations. a = someFunction(__("german {0} german {1} german").format(subst1, subst2)) still always substitutes the German parts. Double underscores do not help. !t gives the following error: ValueError: Unlnown conversion specifier t the exac...
by HansBr
Mon Mar 19, 2018 7:14 am
Forum: Ren'Py Questions and Announcements
Topic: Translation question
Replies: 5
Views: 2206

Re: Translation question

Found it. I need to add !t to insert. It is [insert!t].
Sorry for not searching enough before asking.
by HansBr
Mon Mar 19, 2018 6:55 am
Forum: Ren'Py Questions and Announcements
Topic: Translation question
Replies: 5
Views: 2206

Translation question

Hello, I write my game in German, because it is easier for me to translate than to be creative in a foreign language. For the most part translation works well. Now I got a little problem. I have some passages where text needs to be inserted in an other string. Something like this: $ insert = getText...
by HansBr
Mon Mar 12, 2018 5:13 am
Forum: General Discussion
Topic: Opinion about multiple endings
Replies: 2
Views: 807

Opinion about multiple endings

Hello there, a Youtube video by Adam Koebel (Somewhat famous as a online roleplay game master) got me thinking about the "multiple ending" aspect of games. https://youtu.be/lBx_D0yozrc His opinion is not mine, luckily different persons are allowed to have different opinions. The little gam...
by HansBr
Tue Mar 06, 2018 7:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Unable to raise stats or substract energy
Replies: 17
Views: 1795

Re: Unable to raise stats or substract energy

In your initial code snipped it seems to me you check the energy at the beginning of your code, then never again. Try checking before you change, as Imperf3kt told, or if you want to check less often at an appropriate more central place. For example at the beginning or end of your park_activities bl...
by HansBr
Tue Mar 06, 2018 6:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Unable to raise stats or substract energy
Replies: 17
Views: 1795

Re: Unable to raise stats or substract energy

How do you determine that these variables do not change? Do you have them displayed anywhere?
Maybe it's just the display code that is constant.
Or do you check them in any other way?
by HansBr
Tue Mar 06, 2018 6:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Unable to raise stats or substract energy
Replies: 17
Views: 1795

Re: Unable to raise stats or substract energy

Is player_energy still a string?
You can examine your variables before you make a menu choice with <shift>-D
Should be a number, not a string like "Energy".
by HansBr
Tue Mar 06, 2018 6:06 pm
Forum: Welcome!
Topic: Guestbook
Replies: 5532
Views: 2775895

Re: Guestbook

Hello everyone, in an attempt to learn Python, I decided to make a little game with it and found in Ren'Py the tool to do so. I found this forum because I had some question about both, but so far I found all answers without even asking. Thanks everyone for that. So now back to the fun of learning a ...