+1 vote
by (8.9k points)

This is probably a really stupid question, but...how do I pass a variable to another page?

I want to <<set $armour to "leather">> and go to passage [[inventory]] in one click.

I cannot work out how to do it.  :-D

1 Answer

+1 vote
by (63.1k points)
selected by
 
Best answer

You can use a setter link

[[inventory][$armour to 'leather']]

Or a <<link>> macro. 

<<link [[inventory]]>>
    <<set $armour to 'leather'>>
<</link>>

EDIT: FYI, passing has a specific meaning in programming and this isn't it. Not a huge deal, just want to alleviate potential future confusion. 

by (8.9k points)
Thank you very much.  :-)
...