Search found 179 matches

by johandark
Mon Jan 09, 2017 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ConditionSwitch "pl.dp >= num" is completely IGNORED
Replies: 6
Views: 787

[SOLVED]ConditionSwitch "pl.dp >= num" is completely IGNORED

I defined several Point levels to activate a Conditional. If it´s high, it´s gonna be RED, if it´s Medium, it´s gonna be Blue and if it´s Low, it´s gonna be Yellow. I´ve got points done this way: init python: class PointLocker(object): def __init__(self): self.dp = 0 self.np = 0 self.mp = 0 if type ...
by johandark
Mon Jan 09, 2017 12:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ConditionSwitch "else" and "None" are posible?
Replies: 6
Views: 725

Re: ConditionSwitch "else" and "None" are posible?

I´ll try to take a look on this web, it looks really interesting! Thanks.

---

Thanks for your help all of you! I´m very noob on programming but I´m growing on my knowledge thanks to you!

;)
by johandark
Mon Jan 09, 2017 8:00 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ConditionSwitch "else" and "None" are posible?
Replies: 6
Views: 725

Re: ConditionSwitch "else" and "None" are posible?

"True", Null(). This code means if condition reached here, it shows Null displayable. Though I don't think conditionswitch in ATL works, because ATL only evaluates values when it's showing or replacing. Ok... The thing is this works PERFECTLY. I understand Null() Completely. But I would a...
by johandark
Sun Jan 08, 2017 8:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ConditionSwitch "else" and "None" are posible?
Replies: 6
Views: 725

[SOLVED]ConditionSwitch "else" and "None" are posible?

Let´s imagine I have this code: $ blue = True $ red = True transform positionA(): xpos 0.5 ypos 0.5 linear 2.0 xpos 0.0 ypos 0.0 transform positionB(): xpos -0.5 ypos -0.5 linear 2.0 xpos 0.0 ypos 0.0 contains: #d_legr Only visible if there´s blue. ConditionSwitch(points_high and blue, At("ball...
by johandark
Sat Jan 07, 2017 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

Re: [SOLVED]2 Conditionals in same ConditionSwitch

Ocelot wrote:
fire[/code]Make proper boolean expression:

Code: Select all

points_high and watch and fire
So "and" can be used several times...

Code: Select all

points_high and watch and not fire
that "not fire" would work as fire == False ?

Sorry for muy ignorance, and thanks for your patience ^^
by johandark
Sat Jan 07, 2017 3:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

Re: 2 Conditionals in same ConditionSwitch

ConditionSwitch("points_high, watch, and fire", At("ball02", position_002), #It continues... That works prefectly, I tried to add a third conditional and it works with "," if the last word is predecessed by a "and". Thank you very much for your fast answers! ;)
by johandark
Sat Jan 07, 2017 2:43 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

Re: 2 Conditionals in same ConditionSwitch

Read documentation more carefully: condition in CS is supposed to be a string containing condition code, which will be evaluated later. I do really try to read the documentation... but honestly, most of the time is like reading Chinese... I hardly understand a single thing, specially with an advanc...
by johandark
Sat Jan 07, 2017 2:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

Re: 2 Conditionals in same ConditionSwitch

Alex wrote:Try

Code: Select all

ConditionSwitch("points_high and jump", At("ball02", position_002), #It continues...
(see the quotes and comma after them)

Ok, Actually that works! My last question is... what to do if I want jump == False?

Thanks! ;)
by johandark
Sat Jan 07, 2017 2:23 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

Re: 2 Conditionals in same ConditionSwitch

Because the Conditional jump is $ jump = True Oh if that's the case. It's because you're using Ren instead of Py in a Py command. You'd use renpy.jump() Since that's the way Ren weaves with Py ... hummm well, the truth is that the word is not "Jump" is more like "aftermorning04_Mast0...
by johandark
Sat Jan 07, 2017 2:16 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

Re: 2 Conditionals in same ConditionSwitch

Try: "points_high and jump" contains: ConditionSwitch(points_high and "jump == True" At("ball02", position_002), #It continues... If I use the "and" apart that is painted in another color in Editra (wich usually means there´s some problem xD.... It appears th...
by johandark
Sat Jan 07, 2017 1:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 Conditionals in same ConditionSwitch
Replies: 15
Views: 1485

[SOLVED]2 Conditionals in same ConditionSwitch

Is it posible to have 2 conditionals in a same Condition Switch? contains: ConditionSwitch(points_high, "jump == True" At("ball02", position_002), #It continues... I´ve tried to use the "jump == True", but it doesn´t work... I don´t know if it has to be separate by a co...
by johandark
Thu Jan 05, 2017 4:48 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 different animations simultaneously
Replies: 2
Views: 394

Re: 2 different animations simultaneously

Divona wrote:Use parallel instead of block?
... Hell yes!! I didn´t saw that in Docs when I was reading the block statement... ^^

Thanks!

And great game by the way! ;)
by johandark
Wed Jan 04, 2017 6:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]2 different animations simultaneously
Replies: 2
Views: 394

[SOLVED]2 different animations simultaneously

Let´s say I have an image with different "contains" with different balls moving around, and one of the is this one: contains: "ball 03" xanchor -0.07 yanchor -0.245 rotate 0 alpha 0.0 xpos 0.0 ypos 0.0 rotate 0 zoom 1.0 pause 8.5 block: #Wich one makes visible or invisible the ob...
by johandark
Wed Jan 04, 2017 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ATL BLOCK animation is posible with CONDITIONAL?
Replies: 15
Views: 3335

Re: ATL BLOCK animation is posible with CONDITIONAL?

Imperf3kt wrote:Kwargs, as far as I understand, meank "KeyWordARGument"
Someone more experienced than myself, feel free to correct me if I am mistaken.
It makes sense... Thanks! ;)
xela wrote:Loose the square brackets...
Finally!!! THANK YOU VERY MUCH for your patience and help ^^
by johandark
Wed Jan 04, 2017 7:57 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ATL BLOCK animation is posible with CONDITIONAL?
Replies: 15
Views: 3335

Re: ATL BLOCK animation is posible with CONDITIONAL?

"17 < pl.dp < 22" Perfect! That resolves one of my biggest doubts ever since I´m doing my game. xD ConditionSwitch("pl.dp >= 22", Transform("aftermorning04_bg_fittingroom_mast_dass_18_d_pantsloss_wet 02", rotate=0, alpha=1)) should work. It works perfectly!... I just f...