Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

If and endiff error

so i'm trying this out for the first time, and i want it to be so that every time the player dies, jew god takes 25 schmeckles from the player. If the player can't afford it, instead of displaying "jew god gives you a second chance", i want it to say "You are short on schmeckles, jew god has denied your second chance. GAME OVER" The issue is, it tells me "else" and "endiff" aren't paired with if. Here is the page:

<<if $schmeckles is 0>>\
You are short on schmeckles, jew god has denied your second chance. GAME OVER
<<endif>>
<<else>>
Jew god accepts your offering op
<<endif>>\

also i use SugarCube 1.0.35 for compatibility sake, if that has anything to do with it i'm willing to change a few things.

Comments

  • edited February 2017
    You really should be using SugarCube v2.

    Remove the first <<endif>>. Only one <<if>> to start the chain and one <<endif>> to end the chain. For example, it should be:
    <<if $schmeckles is 0>>\
    You are short on schmeckles, jew god has denied your second chance. GAME OVER
    <<else>>
    Jew god accepts your offering [[try again|op]]
    <<endif>>\
    
Sign In or Register to comment.