Howdy, Stranger!

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

Variable as Passage Link?

edited February 2014 in Help! with 1.x
Here's a basic newbie question I've not yet figured out how to answer, but feel like I should have already know. How does one set a variable to contain a passage link?

Something like this:

<<set $foo = [[passage]]>>

I'd like to use it in an object, kinda like this:

<<set $foo = {
passage: [[link]]
}>>

I'm sure the answer is a total facepalm, but for some reason (read: I'm stupid), I can't figure out the syntax.  :-[

Thanks!


PS: I forgot to mention I tried this:

<<set $foo = link>>
<<print tale.get($foo).text>>

And

<<set $foo = "link">>
<<print tale.get($foo).text>>

And

<<set $foo = [[link]]>>
<<print tale.get($foo).text>>

To no avail.

Comments

  • <<set $next = "ENDTooLong">>
    [[In the morning...|$next]]
    Try this.
  • Well, I can do that, but I was hoping to avoid the extra passages that will create. Like 100 or so. :(
  • I'm confused as to how nomdepony's answer differs from what you're looking for -- how would it require extra passages?
Sign In or Register to comment.