Full Version : spawning items that require multiple entry's...
xmlspawner >>Q&A >>spawning items that require multiple entry's...
<< Prev | Next >>
godfood- 04-10-2006
I'm trying to add a warningitem to one of my monsters as special loot,

QUOTE
[add warningitem "itemid" "range" "warning"

This works in game,

QUOTE
ADD/warningitem xxxx xx xxxxxxxxxxx ADD/<warningitem xxxx xx xxxxxxxxxx>

Neither of these work, I'm not sure what else to try. there were a couple of otehr things i had in mind for loot which had the same type string.
Is this possible?
ArteGordon- 04-10-2006
if you have an item that takes arguments for its constructor as in
[add warningitem "itemid" "range" "warning"
then when you add it in a spawn entry, you would separate those arguments with commas instead of spaces, like
orc/ADD/warningitem,xxxx,xx,xxxxxxxxxxx
You could put it between the grouping brackets '<>' like
orc/ADD/<warningitem,xxxx,xx,xxxxxxxxxxx>
but it is not necessary since you arent setting any properties on it.
If you were just spawning it instead of adding to something else that you are spawning, it would be the same thing. The spawn entry would look like
warningitem,xxxx,xx,xxxxxxxxxxx
godfood- 04-10-2006
But if I needed to make it movable i would do
/ADD/<warningitem,xxxx,xx,xxxxxxxxx/movable/true>
Right?
*EDIT* I tried that and it worked beautifully.
ArteGordon- 04-10-2006
right.