Search found 7 matches

by qcastro
Wed Apr 06, 2016 10:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with ConditionSwitch in image side
Replies: 4
Views: 378

Re: Problem with ConditionSwitch in image side

korova wrote:Can you post the error message and the new code ?
Sorry,

I found my silly mistake: I forgot to end the quote in 'branca'. But now it's done.
Thanks for your attention
by qcastro
Wed Apr 06, 2016 5:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with ConditionSwitch in image side
Replies: 4
Views: 378

Re: Problem with ConditionSwitch in image side

korova wrote:Your image and the variable of your condition have the same name.
Korova,

I changed the variable, but the error continue.
by qcastro
Wed Apr 06, 2016 3:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with ConditionSwitch in image side
Replies: 4
Views: 378

Problem with ConditionSwitch in image side

I am trying to change de image side according to the case, but I cannot figure out what is going wrong: The idea is: init: # Condition Switch for FAIXA side image image aluno = ConditionSwitch( "faixa == 'branca", "image-side/faixa-branca.png", "faixa == 'ponta amarela'", "image-side/faixa-ponta-ama...
by qcastro
Mon Apr 04, 2016 8:55 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with if statement and variables
Replies: 6
Views: 568

Re: Problem with if statement and variables

You're setting point to 0, and the lowest check you do is to make sure it's above 0. So either raise point to 1, or change the logic. eg. if point >= 0 and point <=10: Also, you should change $ cor = none to either $ cor = 'none' or $ cor = None Looking at your code, I'm guessing you want the first...
by qcastro
Mon Apr 04, 2016 8:48 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with if statement and variables
Replies: 6
Views: 568

Re: Problem with if statement and variables

If you follow the code through logically step by step, you will see what the problem is. Let's look at your code line by line (I'm adding numbers so that we can talk line by line...but these numbers shouldn't be in the actual code). ... Thanks! This is what I intend to do, but I didn't remember the...
by qcastro
Sun Apr 03, 2016 5:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with if statement and variables
Replies: 6
Views: 568

Re: Problem with if statement and variables

Donmai wrote:
qcastro wrote:What goes wrong with this code?
If you don't show it using CODE tags, to preserve your indentation, it's very difficult to tell.
Sorry, I corrected the indentation. But what is wrong?
by qcastro
Sun Apr 03, 2016 5:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with if statement and variables
Replies: 6
Views: 568

Problem with if statement and variables

What goes wrong with this code? Please, I'm trying to figure out, but it seems impossible: label start: $ point = 0 $ cor = none scene bg sala de prova if point > 0 and point <=10: $ cor = "white" elif point > 10 and point <=20: $ cor = "green" elif point > 20 and point <=30: $ cor = "blue" $ point ...