QUOTE |
- added spawner triggering on skill use. By setting the SkillTrigger property to a string of the form "skillname[+/-][,minval,maxval]" the spawner can trigger when the named skill is used and optionally when the skill value falls within the specified range and is either successful (+) or unsuccessful (-). If +/- is omitted then it will trigger on either success or failure - simply using the skill is enough. For example, specifying a SkillTrigger string of "Hiding" would trigger the spawner whenever the hiding skill was used within the specified ProximityRange of the spawner, regardless of skill level or whether or not it was successful. Using "Hiding,+" would trigger whenever the skill was successfully used. "Hiding,50,100" whenever the skill was used and the user had a skill level between 50 and 100 (inclusive). "Hiding,-,50,100" whenever the skill failed and the user had a skill level between 50 and 100. Note, the skill names are case sensitive. Several examples of skill triggering are given in xmlextras (skilltrigger1-4.xml). Skilltrigger3.xml gives an example of how to spawn mobs or give special drops on mining based on skill level. Skilltrigger4.xml demonstrates triggering on failed hiding. Skilltrigger1 and 2 trigger on musicianship. (Thanks to MarkC777 and Nix4 for the suggestion). - added the property keyword "TRIGSKILL,name|value|base|cap" that returns information on the triggered skill for use in property testing and property value assignment. See examples of this in the skilltrigger xml files. |
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 |