To keep from derailing my
last thread, I decided to split the conversation here.
Unfortunatley, the only resource I found for creating macros in Twine was this:
http://eturnerx.blogspot.com/2012/12/how-to-create-custom-macros-in-twine.htmlAs the author states, it was not intended for JavaScript beginners.
In addition to seeking general advice, I have three questions:
1. If a person wants to create a JavaScript macro for use in Twine, how does one set the name of the macro for use in Twine?
2. How does one use Twine variables in a JavaScript Macro?
3. How does one set Twine variable values in a Macro for use in Twine?
Comments
By the way, SugarCube has the <<widget>> macro to simplify the generation of custom macros. You can find an exanple in the second code fragment in this post.
That's all three questions answered!
Thanks again!