Hide and unhide text based on condition

Hi, I'm generally new to the whole squiffy thing. I'm making a murder mystery esc story but told through three different characters, what I'm trying to figure out is how to remove a character and specific page kinks using the if command or some other way

Currently one character has the option to kill another character on two seperate occasions. What I want to figure out is how to detect if a character is dead and hide the option and parts of the story going forwards.


Set a flag for when the character is killed, then check for that flag later on.


Bob's tie really offends you.

[[Kill Bob?]](Next section,killBob=true)
[[Let Bob live?]](Next section,killBob=false)

[[Next section]]:

{if killBob=true:
You do the deed. There's red all over the floor.
}
{else:
You force down your homicidal revulsion for the tie. Bob offers you a cup of coffee.
}

{if killBob=true:[[Get a mop]](Mop the floor)}
{else:
[[Accept the coffee]](Take coffee)
[[Decline the coffee]](Decline coffee)
}
[[Leave Bob's office]](Leave office)```

You can then continue to check your killBob flag throughout your game to check if the player chose to off him or not.

Thanks a lot for information, that's might help me! One of the essential tools for academic writing is a plagiarism checker. Papers Owl offers a plagiarism checker papersowl that can help ensure your work is original and free from plagiarism, giving you peace of mind.


Full respect to fvu109. Keep in mind that the English word, "true", is not the same as a setting a value as true.

Bob's tie really offends you.

[[Kill Bob?]](Next section, killBob) <!---This gives "killBob" a true/false value of true.--->
[[Let Bob live?]](Next section, not killBob)<!---This gives "killBob" a true/false value of false.--->

[[Next section]]:

{if killBob:
You do the deed. There's red all over the floor.
}
{else:
You force down your homicidal revulsion for the tie. Bob offers you a cup of coffee.
}

{if killBob:
[[Get a mop]](Mop the floor)}
{else:
[[Accept the coffee]](Take coffee)
[[Decline the coffee]](Decline coffee)
}
[[Leave Bob's office]](Leave office)


<!---You can then continue to check your killBob flag throughout your game to check if the player chose to off him or not.--->

This topic is now closed. Topics are closed after 180 days of inactivity.

Support

Forums