This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

This is a long one, but I want my esc script to easily switch out dialog paths with globals

You know in a standard esc script you'd use > [globalname] to seprate the story if something else was done(or needed to be done.) and ? to ask multiple questions.

Well I have a problem My esc script requires me to branch questions. Like for instance

?
- "How do I shut down the super helpful friendly assistant computer?"
    say player "Jessy: How do I shut down the super helpful friendly assistant computer"
    > [travis_teleporter_trust]
    - "How can I get you to trust me with the teleporter (After interacting with an active teleporter)"
        say player "Jessy: How can I get you to trust me with the teleporter?

See here I want to ask a question, but the other one I don't want to show Unless the teleporter has been activated. How can I do that? The only work around I have for this is to reverse the ? and > [] around, and add a question for each branch.

like so...

> [!travis_teleporter_trust]
        ?
            - "How do I shut down the super helpful friendly assistant computer?"
                say player "Jessy: How do I shut down the super helpful friendly assistant computer"
    > [travis_teleporter_trust]
        ?
            - "How do I shut down the super helpful friendly assistant computer?"
                say player "Jessy: How do I shut down the super helpful friendly assistant computer"
            - "How can I get you to trust me with the teleporter (After interacting with an active teleporter)"
                say player "Jessy: How can I get you to trust me with the teleporter?

however this cluttered, takes up a lot of room, and is a hassle for more than one global. So How do I switch out dialog paths with globals easily.

in Engine by (275 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.