How do I continue after an "if" isn't satisfied? (Solved)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Tahrgat
Regular
Posts: 26
Joined: Sat Jan 11, 2014 11:33 am
Projects: End of Darkness
Organization: Artistic License Studio
Location: Florida
Contact:

How do I continue after an "if" isn't satisfied? (Solved)

#1 Post by Tahrgat »

Sorry about all the questions :/. Especially because most of mine are just stupid little things I just can't quite get. So My question this time is how can I put text after "That occult book intrigues me. Maybe I should study it some more later." in the code below and still have it pop up even if the two prior "if" are not fulfilled. As it is everything I write after my previous quote will just and only show up as an extension to the "if" fulfillment and not as a continuation of the scene.

Code: Select all

label imoenfirst:

    scene woodsworkout with fade
    
    kt "It feels good to run in the serene forest and just leave my anxiety behind."
    
    kt "Sometimes I just want to keep going and outrun the darkness forever."
    
    "..."
    
if amity_first_done == True:
    
    kt "My neighbor seems unusual, but no more so then myself. I should probably see her tomorrow."
    
if study_first_done == True:
    
    kt "That occult book intrigues me. Maybe I should study it some more later."
Last edited by Tahrgat on Sat Jan 18, 2014 6:19 pm, edited 1 time in total.
It is better to be the cub of a live jackal than of a dead lion.

Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: How do I continue after an "if" that isn't satisfied?

#2 Post by Anima »

Your indention is wrong. The correct way is this:

Code: Select all

label spam:
    "Text"
    if eggs:
        "Only if eggs is True"
    "Will display even if eggs is False"
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

User avatar
Tahrgat
Regular
Posts: 26
Joined: Sat Jan 11, 2014 11:33 am
Projects: End of Darkness
Organization: Artistic License Studio
Location: Florida
Contact:

Re: How do I continue after an "if" that isn't satisfied?

#3 Post by Tahrgat »

Anima wrote:Your indention is wrong. The correct way is this:

Code: Select all

label spam:
    "Text"
    if eggs:
        "Only if eggs is True"
    "Will display even if eggs is False"
Thank you for the help Anima :) Works like a charm now.
It is better to be the cub of a live jackal than of a dead lion.

Post Reply

Who is online

Users browsing this forum: Ocelot