I searched and didn't find this answer. If I overlooked it and am reposting I apologize.
My question is, is it possible to alter a spawned creatures skills through the spawner? Something maybe similar to setallskills, or even single skills.
thx
yes, you can access the skills property on the mob and set what you like. For example
orc/skills.archery.base/100/skills.wrestling.base/100
to set wrestling and archery to 100
QUOTE (ArteGordon @ Jan 16 2006, 09:19 PM) |
orc/skills.archery.base/100/skills.wrestling.base/100 |
ahhhh I was soo close! I always try at least 10 diff ways of doing something before I ask, and I almost had this one lol
ty sir
note, the reference to
skills.archery.base
is just the way that you would normally refer to that property on the mob. It is not a special xmlspawner syntax. So if you wanted to see that property on a mob you would do
[get skills.archery.base
or you could set it with
[set skills.archery.base 100
That should have been obvious to me. thanks for pointing it out however. Is there a way to do all skills at once, sort of like the [setallskills command?
Something like EverySkill.Base ? (< I've tried that and others with no luck)
no. If you want to do that, then just add this code to your BaseCreature class
CODE |
public int SetAllSkills { set { for (int i = 0; i < Skills.Length; i++) Skills[i].Base = value; } }
|
and then you can set the new SetAllSkills property to whatever you want, like
orc/setallskills/100