User Tools

Site Tools


macro

Differences

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

Link to this comparison view

macro [2013/12/11 03:55]
l
macro [2017/10/09 20:39]
Line 1: Line 1:
-A **macro** is a piece of code that is inserted into [[passage]] text. Macros are used to accomplish many effects, such as altering the game's state, displaying different text depending on the game's state, and altering the manner in which text is displayed. 
- 
-===== List of built-in macros===== 
- 
-The following macros *control variables and text* in the story, or use them to alter the displayed passage text: 
-  * <<​[[if]]>>​ / <<​else>>​ / <<​endif>>​ 
-  * <<​[[set]]>>​ 
-  * <<​[[remember]]>>​ 
- 
-The following macros *display special text*, such as the contents of variables, or the text of another passage. They can provide powerful means of expression in a story. 
-  * <<​[[print]]>>​ 
-  * <<​[[display]]>>​ 
- 
-The following macro creates a special kind of link: 
-  * <<​[[choice]]>>​ 
- 
-The following macro controls how its contained text is displayed, and can be useful when combined with other macros: 
-  * <<​[[nobr]]>>​ 
-  
-The following macros are not as useful as they were in previous versions of Twine, but remain for backwards-compatibility:​ 
-  * <<​[[silently]]>>​ (now supplanted by the <<​[[nobr]]>>​ macro and the "​nobr"​ passage tag.) 
-  * <<​[[back]]>>​ / <<​[[return]]>>​ (now supplanted by the [[previous]]() function.) 
  
macro.txt ยท Last modified: 2017/10/09 20:39 (external edit)