Twine Version: 2.3.14
Story Format: SugarCube 2
Been trying to get this to work for AGES. I have made a combat system that pulls different enemies from a passage. (sets different combat variables etc). I have used the below to change the display name based on a variable (this works), I also want to be able to change the image based on a variable as well.
I define the character like so (Have tried loads of different ways to call the image.
<<character 'enemy' '$enemyname' '[img["images/enemies" + "$enemypic" + .jpg]]'>>
Then I load it in a passage like so:
<<set $enemyname = "angry man">> <<set $enemypic = "angryman">>
I have used every different method I can think of, but am running into a real roadblock. Any ideas?