Skip to content

Choice Object does not work right after a jump #24

@Hyuchia

Description

@Hyuchia

When having something like this, the choice dialog at the Yes label is not shown but the dialog inside it is.

var script = {

    // The game starts here.

    "Start": [      

        {

            "Choice": {

                "Dialog": "h Have you already read some documentation?",

                "Yes": {

                    "Text": "Yes",

                    "Do": "jump Yes"

                },

                "No": {

                    "Text": "No",

                    "Do": "jump No"

                }

            }

        }

    ],

 

    "Yes": [{

            "Choice": {

                "Dialog": "h show dialog",

                "Yes": {

                    "Text": "Yes",

                    "Do": "jump Yes"

                },

                "No": {

                    "Text": "No",

                    "Do": "jump No"

                }

            }

        },

        "h That's awesome!",

        "h Then you are ready to go ahead and create an amazing Game!",

        "h I can't wait to see what story you'll tell!",

        "end"

    ],

 

    "No": [

 

        "h You can do it now.",

 

        "display message Help",

 

        "h Go ahead and create an amazing Game!",

        "h I can't wait to see what story you'll tell!",

        "end"

    ]

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions