Full Version : ADD multiples of one item
xmlspawner >>Q&A >>ADD multiples of one item


<< Prev | Next >>

Old Dog- 01-21-2007
I created a container and want to place 20 bagofreagents to a container.

This is my entry so far

FillableMetalChest/ADD/<bagofreagents/ADD/<spellbook/content/18446744073709551615>>

This adds one bag of reagents with a full spell book in the container.

How can I add 20 of these with out doing this line 20 times?

I am sure this is real simple but it has me stumped for some time now.

ArteGordon- 01-21-2007
you cant do it in one line. Do it like this

subgroup 1: FillableMetalChest
subgroup 1: SETONSPAWN,1/ADD/<bagofreagents/ADD/<spellbook/content/18446744073709551615>>



and then set the maxcount for the second entry to 20 and the Per field for that entry to 20 as well.
That way, when subgroup 1 spawns, it will first spawn the chest, and then the second entry will be spawned 20 times, which will put 20 of those bags into the chest.
Aso make sure that you have the maxcount for the whole spawner set to at least 21 (one for the chest, 20 for the bags).

Old Dog- 01-21-2007
Thanks Artie

This works great once I Put the 20 in the "per" field.