User Tools

Site Tools


custom_macro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
custom_macro [2014/09/20 21:20]
127.0.0.1 external edit
custom_macro [2017/10/10 00:39] (current)
Line 1: Line 1:
 +<- [[script|Adding New Behaviors]] --------- [[twine_reference|Reference Home]]->
 +
 ===== Custom Macros ===== ===== Custom Macros =====
  
-It's possible to write your own macros for use in your stories. Doing so will require knowledge of both Javadcript ​and the Twine engine.+It's possible to write your own macros for use in your stories. Doing so will require knowledge of both JavaScript ​and the Twine engine.
  
 Here's an example passage that creates a macro named ''<<​hello>>''​ that, when invoked in another passage, displays an alert that greets the reader. Here's an example passage that creates a macro named ''<<​hello>>''​ that, when invoked in another passage, displays an alert that greets the reader.
Line 20: Line 22:
  
 If you're curious how a built-in macro works, browsing the [[https://​github.com/​tweecode/​twine|source code repository]] may be helpful, too. If you're curious how a built-in macro works, browsing the [[https://​github.com/​tweecode/​twine|source code repository]] may be helpful, too.
 +
 +<- [[script|Adding New Behaviors]] --------- [[twine_reference|Reference Home]]->
custom_macro.1411248011.txt.gz ยท Last modified: 2017/10/10 00:37 (external edit)