Search found 5 matches

by Pankrazius
Tue Nov 25, 2014 2:20 pm
Forum: Ren'Py Questions and Announcements
Topic: How to use show/scene-statement with variables
Replies: 1
Views: 345

How to use show/scene-statement with variables

Hi, trying to safe code and work i try to use the same label multiple times. So i use one label as game main-screen with multiple backrounds/characters shown as needed. My first attempt was to build up a class containing strings and lists to use in the label # Classes init python: class Scene: "...
by Pankrazius
Wed Oct 29, 2014 9:16 am
Forum: Ren'Py Cookbook
Topic: Diceroll on table using a 2D-Array
Replies: 0
Views: 2292

Diceroll on table using a 2D-Array

This code is used within my training project. It's a try to implement my P&P-gamingrules (Regelwerck/Ruleworx) used in my P&P-Project "Torwelten". So there may be easier ways to accomplish the same task (determining damage and other effects within the game). But this is how the rul...
by Pankrazius
Sun Oct 26, 2014 11:13 am
Forum: Ren'Py Questions and Announcements
Topic: Randomizer don't work properly.
Replies: 1
Views: 571

Randomizer don't work properly.

Tried to use the randomizer (renpy.random.randint). Inside a label it just works fine, returns randomized results and so on. But turning the label into a defined function (putting it in an python-block, using def instead of label) seams to kill the randomizer, returning the same result over and over...
by Pankrazius
Wed Oct 22, 2014 10:00 am
Forum: Ren'Py Questions and Announcements
Topic: Store Object Error / Instance-Variables / using SetVariable
Replies: 3
Views: 2308

Re: Store Object Error / Instance-Variables / using SetVaria

Woah. Its working.

Thank you so much ;) Especeally so fast.

Really cool.

But why do you need SetField instead of SetVariable?
I am just asking to understand how things work and maybe to avoid further mistakes.
by Pankrazius
Wed Oct 22, 2014 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: Store Object Error / Instance-Variables / using SetVariable
Replies: 3
Views: 2308

Store Object Error / Instance-Variables / using SetVariable

Hi all, i'am new to renpy and to programming at all. I tried to find an answer of my own. But wether the existing Forum-Posts nor the IRC-Community could help. So i hope for help here. My Problem: Whenever i try to use SetVariable (screenlanguage) to alter an instance-variable (instance.variable) i ...