Howdy, Stranger!

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

Pretty basic question about printing specific text

So what I want to do is print a specific passage if and only if the player visited the first of two previous screens and otherwise a different passage would print.

I'm trying to figure out how to do that but I've been foiled at every turn. I've been trying to use the <if visited ("thingy")> function, but I'm starting to suspect that only has to do with numerical values?

Help, please!

Comments

  • You need to state which Story Format you are using when you ask a question, as answers can be different for each one. Based on your example I am going to assume you are using SugarCube 1.0.34

    There are two errors in your example:
    1. You are using single < and > signs instead of double << and >>
    2. You have a space character between the word visited and the open parenthesis (

    The visited() function includes examples of how it is used. The following example shows how to use the function to do what you want, it consists of four Passages:

    1. Start
    Select one of the following options:
    
    [[Option 1]]
    [[Option 2]]
    
    2. Option 1
    Thank you for selecting Option 1
    
    [[Results]]
    
    3. Option 2
    Thank you for selecting Option 2
    
    [[Results]]
    
    4. Results
    You selected Option <<if visited("Option 1")>>1<<else>>2<</if>>
    
Sign In or Register to comment.