what i am now trying to use link replace for does not seem to work.
<<linkreplace "bag">><<include [[bag]]>><</linkreplace>>
which points to the passage [[bag]]. this is what passage [[bag]] looks like,
you pickup the old worn bag
<<set $bag to true>>
it shows the text but does not run the code inside the passage. then i tried running the code inside of link replace such as this
<<linkreplace "bag">><<set $bag to true>> you picked up the bag<</linkreplace>>
also did not work.
the varible is set to [] in the story init as shown
<<set $Bag= []>>
the varible bag is used as if statment to show if a link is show in the StoryMenu
<<if $bag is true>>[[Inventory]]<<else>><<endif>>
when i set it outside of the linkreplace the code works.