Howdy, Stranger!

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

I think my game hates me.

I don't know what I am doing wrong. I have four two conditions if visited things in one passage. For some reason I can't figure out for the life of me. The second set of double conditions won't work even though the conditions have been matched. The other if visiteds I have set up shows I have those conditions matched hut they're still not showing up. I've checked many times and I don't know what I'm doing wrong. Please help me.

The code looks like this.
<<if visited ( "first condition" ) and ( " second condition" )>>
<<else if visited ( "first condition" ) ( "second condition" )
More text.
And it continues two more times but once the second condition changes it stops working.


  • edited May 2015
    Your "elseif" syntax is wrong. There's no space between the two words and it needs to be enclosed before the text.


    <<elseif visited( "first condition" )>>text

    If this is SugarCube, the way you're setting up those is non-standard as well. Try:
    <<if visited("first condition, "second condition")>>
    <<elseif visited("third condition", "fourth condition")>>

  • Thank you I'm an idiot that just seems to get dumber with coding. *bows to you oh amazing person*
Sign In or Register to comment.