User Tools

Site Tools


performing_many_macros_silently

Differences

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

Link to this comparison view

Next revision
Previous revision
performing_many_macros_silently [2013/11/13 05:29]
klembot created
performing_many_macros_silently [2017/10/10 00:39] (current)
Line 1: Line 1:
-===== Performing Many Macros Silently ===== +#redirect nobr
- +
-In some cases, you'll want to do several things with macros at once. For example, in this passage from the previous section: +
- +
-> All you possess is an Axe (note under Weapons on your Action Chart) and a Backpack containing 1 Meal (note under Meals on your Action Chart). +
- +
-(Joe Dever, //Flight from the Dark//) +
- +
-You'd probably want to set both the protagonist'​s weapon and number of meals. You can do this without any extraneous whitespace appearing in your story by putting all the ''<<​set>>''​ statements on the same line: +
- +
-<​code>​ +
-All you possess is an Axe and a Backpack containing 1 Meal. <<set $meals = 1>> <<set $weapon = "​axe">>​ +
-</​code>​ +
- +
-This is not particularly readable, however. The ''<<​silently>>''​ macro can help in these situations, like so: +
- +
-<​code>​ +
-All you possess is an Axe and a Backpack containing 1 Meal. <<​silently>>​ +
-<<set $meals = 1>> +
-<<set $weapon = "​axe">>​ +
-<<​endsilently>>​ +
-</​code>​ +
- +
-Everything between <<​silently>>​ and <<​endsilently>>​ is run, but nothing is displayed.+
performing_many_macros_silently.txt · Last modified: 2017/10/10 00:39 (external edit)