Howdy, Stranger!

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

Some way to write [img[$var]] ?

Hi!

I would like to pass a variable to a [img[image]], like so:

[img[$image]]

But this doesn't seem to work. Am I missing something?


Thanks for any help!


Comments

  • I ran into a similar problem trying to pass variables into setter links. Try:
    <<print "[img[" + $image + "]]">>
    Too lazy too toss some images in my current story and test, but it seems like it'd work....
  • Yeah, that works. Thank you!!
  • uno wrote:

    Hi!

    I would like to pass a variable to a [img[image]], like so:

    [img[$image]]

    But this doesn't seem to work. Am I missing something?


    Thanks for any help!

    JSYK you will be able to do this in Twine 1.4.2.
Sign In or Register to comment.