UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050610 Firefox/1.0.4 (Debian package 1.0.4-3) IP: 64.81.113.168 URI: http://wesnoth.slack.it/?VariablesWML - - - - - Index: VariablesWML =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/VariablesWML,v retrieving revision 1.12 diff -u -r1.12 VariablesWML --- VariablesWML 27 Mar 2005 14:02:20 -0000 1.12 +++ VariablesWML 11 Jul 2005 18:43:13 -0000 @@ -17,10 +17,13 @@ The dollar sign is used to input the value of a variable into an attribute. For example the attribute ||turns=$turns|| is a way to set the number of turns in a scenario to a particular variable. +However, not all attributes allow variables: The dollar sign can currently be used in any attribute of an action tag(see EventWML) except //value//, [set_variable] (see InternalActionsWML); a dollar sign in //value// will be interpreted as a regular character. Of course when that variable is used then the dollar sign will be interpreted normally. +It can also be used in an attribute of [scenario] (see ScenarioWML); +in this case the value will be determined at the beginning of the scenario, and then be unmodifiable. If ||//variable//=//value//|| is an attribute in [variables], then the expression ||$//variable//|| is a shortcut to //value//.
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
