QUOTE |
- added the RNDLIST,int1[,int2,....] and RNDSTRLIST,val1[,val2,....] keywords that can be used to assign values or test properties against randomly selected elements of a list. The only difference between RNDLIST and RNDSTRLIST, is that RNDLIST can be used in integer value tests and the list elements must be integers while the elements of RNDSTRLIST can by any string. For example, to spawn a mob and set its hue to one of 4 random values, and name to one of 3 different strings you could use something like orc/hue/RNDLIST,100,120,300,500/name/RNDSTRLIST,Gomer,Gubgub,Glorm |
QUOTE |
The syntax for RND is /RND,min,max/ For example "ogre/hue/RND,1,500/ADD,0.1/<katana/hue/500/attributes.luck/RND,50,100>" would spawn a randomly colored ogre with a 10% chance of dropping a blue katana with random luck values between 50 and 100. |