massivedanger / protagonist

A Twine story format with power!
ISC License
33 stars 5 forks source link

Run Embedded JS in Execution-Time #12

Open skewbed opened 8 years ago

skewbed commented 8 years ago

I am having a problem with the following code of this type:

<%= random(['thing 1', 'thing 2', 'thing 3']) %>

[[This Passage]]

It will always give the same result.

I believe this is because the code is evaluated at compile-time.

I have been really liking this format, but this might make it unusable.

Thank You!