wesnoth-wiki-changes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-wiki-changes] RandomTraitUnit


From: wiki
Subject: [Wesnoth-wiki-changes] RandomTraitUnit
Date: Tue, 16 Nov 2004 19:54 +0100

UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
IP: 216.20.1.218
URI: http://wesnoth.slack.it/?RandomTraitUnit
 - - - - -
Index: RandomTraitUnit
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/RandomTraitUnit,v
retrieving revision 1.2
diff -u -r1.2 RandomTraitUnit
--- RandomTraitUnit     16 Nov 2004 18:45:42 -0000      1.2
+++ RandomTraitUnit     16 Nov 2004 18:54:19 -0000
@@ -112,6 +112,21 @@
  {TRAIT_IF 9 loyal,intelligent ({LOYAL}) ({INTELLIGENT}) ({STATS})}
  {TRAIT_IF 10 quick,intelligent ({QUICK}) ({INTELLIGENT}) ({STATS})}
  #enddef
+Warning: In multiplayer, as of 0.8.7, you must use PseudoRandom, not {RANDOM}:
+ #define RANDOM_TRAIT_UNIT STATS
+ {PSEUDORANDOM 10}
+ {TRAIT_IF 0 quick,resilient ({QUICK}) ({RESILIENT}) ({STATS})}
+ {TRAIT_IF 1 strong,resilient ({STRONG}) ({RESILIENT}) ({STATS})}
+ {TRAIT_IF 2 loyal,resilient ({LOYAL}) ({RESILIENT}) ({STATS})}
+ {TRAIT_IF 3 intelligent,resilient ({INTELLIGENT}) ({RESILIENT}) ({STATS})}
+ {TRAIT_IF 4 strong,quick ({STRONG}) ({QUICK}) ({STATS})}
+ {TRAIT_IF 5 strong,intelligent ({STRONG}) ({INTELLIGENT}) ({STATS})}
+ {TRAIT_IF 6 loyal,strong ({LOYAL}) ({STRONG}) ({STATS})}
+ {TRAIT_IF 7 loyal,quick ({LOYAL}) ({QUICK}) ({STATS})}
+ {TRAIT_IF 8 loyal,intelligent ({LOYAL}) ({INTELLIGENT}) ({STATS})}
+ {TRAIT_IF 9 quick,intelligent ({QUICK}) ({INTELLIGENT}) ({STATS})}
+ #enddef
+
 
 How to do have random unit names:
 
@@ -130,6 +145,7 @@
  random= _ "Names,Go,Here,In,A,List,Like,This"
  [/set_variable]
  #enddef
+(I don't think there's a practical way to use PseudoRandom for this)
 
 
 ||See Also||






reply via email to

[Prev in Thread] Current Thread [Next in Thread]