User Tools

Site Tools


example_files

Differences

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

Link to this comparison view

Next revision
Previous revision
example_files [2014/01/11 23:16]
l created
example_files [2017/10/09 20:39] (current)
Line 9: Line 9:
 http://​l.j-factor.com/​twine/​examples/​Visited.tws http://​l.j-factor.com/​twine/​examples/​Visited.tws
  
-This file demonstrates how, by using the [[function|visited() function]] inside the [[if|<<​if>>​ macro]], the player'​s state can be tracked without using any variable. A "​no-variable"​ Twine game can, for simple games, be easier and more fluent to write, due to not requiring the use of [[<<​set>>​]].+This file demonstrates how, by using the [[function|visited() function]] inside the [[if|<<​if>>​ macro]], the player'​s state can be tracked without using any [[variable]]s. A "​no-variable"​ Twine game can, for simple games, be easier and more fluent to write, due to not requiring the use of [[<<​set>>​]].
  
 ====Passage Macros==== ====Passage Macros====
  
-http://​l.j-factor.com/​twine/​examples/​PassageMacro.tws+http://​l.j-factor.com/​twine/​examples/​PassageMacros.tws
  
 This file shows how, by using the [[<<​display>>​]] macro'​s shorthand, the [[function|parameter() function]], and, optionally, the [[tag|nobr tag]], you can write passages and invoke them as if they themselves were macros. The example code shows a basic use-case: creating a macro that varies the player'​s pronouns depending on their initial choice. This file shows how, by using the [[<<​display>>​]] macro'​s shorthand, the [[function|parameter() function]], and, optionally, the [[tag|nobr tag]], you can write passages and invoke them as if they themselves were macros. The example code shows a basic use-case: creating a macro that varies the player'​s pronouns depending on their initial choice.
Line 45: Line 45:
 http://​l.j-factor.com/​twine/​examples/​StoryMenu.tws http://​l.j-factor.com/​twine/​examples/​StoryMenu.tws
  
-This file simply ​serves as an example of imported [[image]]sand the way in which they can be used both in [[passage]]s and in [[stylesheet]]s. +This file serves as an example of using macros inside the StoryMenudemonstrating that it automatically updates whenever ​the player changes passages.
example_files.1389500202.txt.gz · Last modified: 2017/10/09 20:37 (external edit)