[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-wiki-changes] BuildingScenariosSamples
From: |
wiki |
Subject: |
[Wesnoth-wiki-changes] BuildingScenariosSamples |
Date: |
Sat, 11 Sep 2004 00:23 +0200 |
UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040528
Debian/1.6-7
IP: 64.81.113.168
URI: http://wesnoth.slack.it/?BuildingScenariosSamples
- - - - -
Index: BuildingScenariosSamples
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/BuildingScenariosSamples,v
retrieving revision 1.7
diff -u -r1.7 BuildingScenariosSamples
--- BuildingScenariosSamples 10 Sep 2004 22:20:01 -0000 1.7
+++ BuildingScenariosSamples 10 Sep 2004 22:23:04 -0000
@@ -1,4 +1,7 @@
-EXAMPLE: to flash the screen red for a moment, we might go,
+This page contains basic examples of WML.
+For more examples, you can look at the data of Wesnoth using a text editor.
+
+to flash the screen red for a moment, we might go,
[colour_adjust]
red=200
@@ -10,8 +13,6 @@
red=0
[/colour_adjust]
-EXAMPLES:
-
A unit remarking what a tough fight it was when they kill an Ogre:
[event]
@@ -69,8 +70,6 @@
[/message]
[/event]
-EXAMPLE:
-
Suppose you want to make it so that if a certain character, we will call him
Fred the Peasant, survives in a certain
scenario, he will leave,
but return in a later scenario. We can do this in the first scenario:
@@ -134,8 +133,6 @@
If the variable 'fred_is_alive' equals 'yes' then this will create a unit,
Fred, a Peasant, at (8,1), and he will give a
greeting message. Otherwise, Konrad will lament Fred being dead.
-EXAMPLE:
-
Suppose the player has just come across some undead, you might like to find if
the player has a unit that would truly
hate the undead, and if so, and get it to say something:
@@ -148,7 +145,7 @@
message= _ "The foul hordes of the undead approach, this battle will surely
be tough!"
[/message]
- EXAMPLE:
+
[teleport]
[filter]
name=Garcimore
@@ -157,6 +154,9 @@
y=20
[/teleport]
+||See Also||
+* BuildingScenarios
+* UsefulWMLFragments