[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-wiki-changes] UsefulWMLFragments
From: |
wiki |
Subject: |
[Wesnoth-wiki-changes] UsefulWMLFragments |
Date: |
Tue, 21 Sep 2004 03:58 +0200 |
UserAgent: Mozilla/4.0 (compatible; MSIE 5.22; Mac_PowerPC)
IP: 69.133.78.109
URI: http://wesnoth.slack.it/?UsefulWMLFragments
- - - - -
Index: UsefulWMLFragments
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/UsefulWMLFragments,v
retrieving revision 1.6
diff -u -r1.6 UsefulWMLFragments
--- UsefulWMLFragments 13 Sep 2004 23:06:17 -0000 1.6
+++ UsefulWMLFragments 21 Sep 2004 01:58:20 -0000
@@ -111,7 +111,8 @@
will create an Elvish
Champion with two random traits at 20,14.
-NOTE: To create a fully realistic unit, also add 'upkeep=full', and give it a
name. (Actually I know of no way to randomly generate fully realistic(to
Wesnoth)
+NOTE: To create a fully realistic unit, also add 'upkeep=full', and give it a
name. (Actually I know of no way to
+randomly generate fully realistic(to Wesnoth)
names. However you can copy names out of names.cfg into a list for {RANDOM},
and use the result as a name. -EP)
#define LOYAL
@@ -212,6 +213,24 @@
{TRAIT_IF 8 loyal,quick ({LOYAL}) ({QUICK}) ({STATS})}
{TRAIT_IF 9 loyal,intelligent ({LOYAL}) ({INTELLIGENT}) ({STATS})}
{TRAIT_IF 10 quick,intelligent ({QUICK}) ({INTELLIGENT}) ({STATS})}
+ #enddef
+
+How to do have random names (example for humans}:
+
+
+ # to be used like this:
+ # {RANDOM_NAME}
+ # [unit]
+ # description=$randomname
+ # ...
+ # [/unit]
+ # {CLEAR_VARIABLE randomname}
+
+ #define RANDOM_NAME
+ [set_variable]
+ name=randomname
+ random="NAMES GO HERE"
+ [/set_variable]
#enddef
||See Also||