Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
resources [2019/06/12 14:04]
jonwweiss
resources [2019/06/12 14:13] (current)
jonwweiss
Line 19: Line 19:
 2. <<if $liarliar is true>>​ Text here. <</​if>>​ 2. <<if $liarliar is true>>​ Text here. <</​if>>​
  
-This is a true/false test. Useful for checking if the player has done something. If you ever use one of these, you need to set it on your first passage with <<set $liarliar to false>>​. This way, if the player discovers info or talks to a person+This is a true/false test. Useful for checking if the player has done something. If you ever use one of these, you need to set it on your first passage with <<set $liarliar to false>>​. This way, if the player discovers info or talks to a person, you can change the status with <<set $liarliar to BLANK>>​ and check that status with <<if $liarliar is true/​false>>​ Text. <</​if>>​.
  
-<<​linkreplace "Text that is clickable">>​ Text that will replace it. <</​linkreplace>>​+If you want to check for BOTH true and false (have an outcome for both in a passage) you have to write it differently. <<if $liarliar is true>>​ Text. <</​if>>​ Then. <<​elseif $liarliar is false>>​ Secondary text. <</​if>>​.  
 + 
 +4. <<​linkreplace "Text that is clickable">>​ Text that will replace it. <</​linkreplace>>​
  
 Pretty simple macro. What is in the quotations is clickable, what is between the carroted boxes is the text that replaces it. You can put these inside of each other, so multiple text replaces are hidden. That would look like this: Pretty simple macro. What is in the quotations is clickable, what is between the carroted boxes is the text that replaces it. You can put these inside of each other, so multiple text replaces are hidden. That would look like this: