Howdy, Stranger!

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

[Harlowe] Variable as Image?

edited June 2015 in Help! with 2.0
In Harlowe, how does one set a variable to be an image?

I tried these three ways:

(set: $chestImage to <img src="https://imageshack.com/a/img661/2436/5F8ewL.png">;)

(set: $chestImage to "<img src="https://imageshack.com/a/img661/2436/5F8ewL.png">";)

(set: $chestImage to "https://imageshack.com/a/img661/2436/5F8ewL.png";)

Thanks!

Comments

  • edited June 2015
    I don't believe you can set a $variable to an actual DOM element, but I could be wrong.

    I would just do the following:
    (set: $chestImage to '<img src="images/smilyface.png">')
    
    $chestImage
    
  • Ah, yes. That worked!

    Thanks!
Sign In or Register to comment.