Full Version : Access equipped items
xmlspawner >>XMLSpawner - How do I? >>Access equipped items
<< Prev | Next >>
Oni-jar- 08-29-2010
Hello all,
I've made a xml "doppleganger" ability which turns your appearance into the appearance of a TrigMob.
The first step is complete, which is to copy basic appearance (hue, name, etc) and even hair and beard are copiable since you can access their properties through the mob's properties.
However, I cannot seem to overcome the challenge of copying props from the rest of the equipped items by layers: i.e. get ItemID and Hue from TrigMob's layer X equipped item and set them on my own layer X equipped item.
I have tried messing with TRIGGERONCARRIED, but it seems it can't test props (otherwise I'd just "*,*,EQUIPPED,Layer=X") but even if this worked I still couldn't access its properties. I have tried to mess with "GETONCARRIED,*,*,Layer=X & EQUIPPED,ItemID" but I don't think it works the way I want it to, and the test to recognize if the item is equipped or not wouldn't work. There is also no item prop that says if it is equipped or not.
Is it possible to do what I want with xml? Or have I reached a dead end here?
I am hopeful since if you ]viewequip on a mob, it shows all equipped items, so I guess there must be a way to access them through the TrigMob, I just don't know which.
Thanks in advance.