Full Version : Adding together equipped properties?
xmlspawner >>Scripting Support >>Adding together equipped properties?
<< Prev | Next >>
Lord Hog Fred- 06-30-2008
I'm trying to write a method that will look at all the equipment being worn by a char and add together all the artifact rarity properties on that character.
I'm pretty sure I could do it with checking each individual layer (eventually) but there must be a better way of doing it surely?
Thanks ,
Rocko- 07-02-2008
Iterate through the "Items" member of a mobile, then (may or may not need to) double check if it's rootparent is the mobile himself, then check artifact rarity, then add them up.