Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Harlowe] Doing a loop with Javascript?

$
0
0
There are a number of questions asking how to do a for loop in Harlowe, since no macro is provided for that: this, and this, and also this bug report. Some workarounds that are proposed include using the (live:) macro or embedding (display:) within itself. I have used extensively the (live:) trick and I know its issues (mainly, that the content under the macro gets printed before the loop has finished running).

But I didn't have this idea until today: is there any way to directly use Javascript loops within Harlowe?

Please forgive that I don't provide any experiment or test, but I can't speak Javascript (and I tried to learn, believe me). But if this can be done it could be a major improvement for the game I'm writing (I need use (live:) loops all over the place). Thanks!

Viewing all articles
Browse latest Browse all 1844

Trending Articles