This may be a major newb quest and I am sure it is. I have searched for subgroups for a long time and I can't for the life of me find any posts that actually show how to make a subgroup. All the posts I can find reference subgroups to people who must know how they work.
Example:
Subgroup 1: SETONNEARBY,4,,item,true/DELETE
Subgroup 1: SETONPARENT/locked/true/traptype/poisontrap/trappower/30/ADD,0.5/WEAPON,0,0/ADD,0.5/WEAPON,0,0/ADD,0.5/ARMOR,0,0/ADD,0.5/SCROLL,0,8/ADD,0.5/SCROLL,0,8/ADD/POTION/
Subgroup 2: SETONNEARBY,4,,item,true/DELETE
Subgroup 2: SETONPARENT/locked/true/traptype/darttrap/trappower/30/ADD,0.5/WEAPON,0,0/ADD,0.5/WEAPON,0,8/ADD,0.5/ARMOR,0,0/ADD,0.5/SCROLL,0,8/ADD,0.5/SCROLL,0,0/ADD/POTION/
Subgroup 3: SETONNEARBY,4,,item,true/DELETE
Subgroup 3: SETONPARENT/locked/true/traptype/explosiontrap/trappower/30/ADD,0.5/WEAPON,0,0/ADD,0.5/WEAPON,0,0/ADD,0.5/ARMOR,0,0/ADD,0.5/SCROLL,0,8/ADD,0.5/SCROLL,0,8/ADD/POTION/
I get the concept of subgroups I think. There's a random chance that one of the three groups will be used in the spawn? The problem is I am confused how to set up a group. None of the post I could find explains this. I looked through a lot of the faq and came up with nothing. The 4 pages on the bottom of the spawner page are not groups are they? If they are I am doing something wrong adding the script.
Btw, I am not even sure if the above spawn is the best way to do it.
Thanks in advance and if this is common sense I am sorry. I just don't see it.
Edit: Had to fix SCROLL,0,0 to SCROLL,0,8
Hi,
first of all a little explanation. A Spawner will always start with the lowest possible subgroup. After this group has been spawned and the spawners timer runs out and the monsters it has spawned (if any) are dead it will advance to the next higher subgroup and spawn that one. If you want to switch Subgroups manually you may use keywords like
IF or
GOTO.
You can easily set up a subgroup within your XML-Spawner. One of the lower arrows will extend your spawners interface with a table. Go the the column that labels "SUB" and enter your numbers here. These numbers will be your subgroup numbers.
Take a look at the "Tutorials" forum. There you could have found a lot of images showing you how to use subgroups like this one: