Why are some scenes playing while others don't?

Some of the scenes of my game are able to play while others just refuse to be activated and it’ll simply take me to the play again scene.

*choice
    #Kick some gravel at the perfect time to trip up Takeda.
        *if var5 < 50
          
          *goto awareness_fail
      
       
         *finish
       
       *elseif var5 > 50
            
            *goto awareness_pass
        
        *finish

This one above works while the one below doesn’t.

*choice
    #Kick some gravel at the perfect time to trip up Takeda.
        *if var5 < 50
          
          *goto awareness_fail
      
       
        *finish
       
       *elseif var5 > 50
            
            *goto awareness_pass
        
        *finish

Let me know if I need to post more of my code. Because I’m honestly confused.

Did you intend to post the same code twice? These look like identical snippets.

The identing looks off to me in this code block. Also, an *if/*elseif needs an *else. You can’t end with an *elseif. If you only have two forks, use *if/*else

Doublealso, those *finish commands aren’t doing anything. Falling the test goes to *label awareness_fail; passing the test goes to *label awareness_pass.

By the way, you may need to account for the situation in which var5 = 50.

Try this:

*choice
    #Kick some gravel at the perfect time to trip up Takeda.
        *if var5 < 50
          
          *goto awareness_fail
       
        *else
            
          *goto awareness_pass
4 Likes

The role of the *finish command is not analogous to the closing brackets of an if clause in another programming language. As @Gower said, no command past *goto will execute. The wiki article on *finish explains it pretty concisely.

2 Likes