Full Version : Help with making this spawner only do...
xmlspawner >>Q&A >>Help with making this spawner only do...


<< Prev | Next >>

Greystar- 03-30-2006
CODE

<Spawns>
 <Points>
   <Name>Spawner</Name>
   <UniqueId>ab8561c7-f6da-4d8e-b6b0-3420a9100f74</UniqueId>
   <Map>Trammel</Map>
   <X>2940</X>
   <Y>753</Y>
   <Width>0</Width>
   <Height>0</Height>
   <CentreX>2940</CentreX>
   <CentreY>753</CentreY>
   <CentreZ>3</CentreZ>
   <Range>10</Range>
   <MaxCount>2</MaxCount>
   <MinDelay>120</MinDelay>
   <MaxDelay>540</MaxDelay>
   <DelayInSec>False</DelayInSec>
   <Duration>0</Duration>
   <DespawnTime>0</DespawnTime>
   <ProximityRange>-1</ProximityRange>
   <ProximityTriggerSound>500</ProximityTriggerSound>
   <TriggerProbability>1</TriggerProbability>
   <InContainer>False</InContainer>
   <MinRefractory>0</MinRefractory>
   <MaxRefractory>0</MaxRefractory>
   <TODStart>0</TODStart>
   <TODEnd>0</TODEnd>
   <TODMode>0</TODMode>
   <KillReset>1</KillReset>
   <ExternalTriggering>False</ExternalTriggering>
   <SequentialSpawning>-1</SequentialSpawning>
   <AllowGhostTriggering>False</AllowGhostTriggering>
   <SpawnOnTrigger>False</SpawnOnTrigger>
   <SmartSpawning>False</SmartSpawning>
   <Team>0</Team>
   <Amount>1</Amount>
   <IsGroup>False</IsGroup>
   <IsRunning>True</IsRunning>
   <IsHomeRangeRelative>False</IsHomeRangeRelative>
   <Objects2>EvoDragon/METAL/false/SETCOLOR/0/DCYCLES/0/SPAWNED/true:MX=1:SB=0:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1:OBJ=EvoDragonEgg:MX=1:SB=0:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1:OBJ=EvoDragon/METAL/true/SETCOLOR/0/DCYCLES/0/SPAWNED/true:MX=1:SB=0:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1</Objects2>
 </Points>
</Spawns>


as you can see from the above code this is a spawner I have set up... now the problem i'm having is getting Only One of the dragons to spawn at any given time... the problem with these dragons is they are designed to kill each other and I want ONE of the two dragons to spawn and an Egg not 2 dragons and no egg... the egg always needs to spawn but only one dragon.

ArteGordon- 03-31-2006
whenever you want two things to always spawn together (like your dragon and egg) you can put them into the same subgroup. All the spawns in a subgroup are spawned together and in the order in which they are listed in the subgroup.

So to get the different dragon/egg combos, simply have two subgroups, each with a different dragon/egg combo. On spawning, it will randomly pick one of the subgroups, and spawn the dragon and egg for that subgroup.
With the Max count of the spawner set to 2, you will only have 2 spawns at any time and so it will be one of your combo pairs.
Here is an example

QUOTE

<Spawns>
  <Points>
    <Name>SubgroupSpawner</Name>
    <UniqueId>6c07e32c-5c6b-4814-bb14-74467fb777d0</UniqueId>
    <Map>Felucca</Map>
    <X>5433</X>
    <Y>1147</Y>
    <Width>10</Width>
    <Height>10</Height>
    <CentreX>5438</CentreX>
    <CentreY>1152</CentreY>
    <CentreZ>0</CentreZ>
    <Range>5</Range>
    <MaxCount>2</MaxCount>
    <MinDelay>5</MinDelay>
    <MaxDelay>10</MaxDelay>
    <DelayInSec>False</DelayInSec>
    <Duration>0</Duration>
    <DespawnTime>0</DespawnTime>
    <ProximityRange>-1</ProximityRange>
    <ProximityTriggerSound>500</ProximityTriggerSound>
    <TriggerProbability>1</TriggerProbability>
    <InContainer>False</InContainer>
    <MinRefractory>0</MinRefractory>
    <MaxRefractory>0</MaxRefractory>
    <TODStart>0</TODStart>
    <TODEnd>0</TODEnd>
    <TODMode>0</TODMode>
    <KillReset>1</KillReset>
    <ExternalTriggering>False</ExternalTriggering>
    <SequentialSpawning>-1</SequentialSpawning>
    <AllowGhostTriggering>False</AllowGhostTriggering>
    <SpawnOnTrigger>False</SpawnOnTrigger>
    <SmartSpawning>False</SmartSpawning>
    <Team>0</Team>
    <Amount>1</Amount>
    <IsGroup>False</IsGroup>
    <IsRunning>True</IsRunning>
    <IsHomeRangeRelative>True</IsHomeRangeRelative>
    <Objects2>orc/hue/50:MX=1:SB=1:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1:OBJ=axe/hue/50:MX=1:SB=1:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1:OBJ=orc/hue/100:MX=1:SB=2:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1:OBJ=axe/hue/100:MX=1:SB=2:RT=0:TO=0:KL=0:RK=0:CA=1:DN=-1:DX=-1:SP=1:PR=-1</Objects2>
  </Points>
</Spawns>


The only thing to watch out for is that you cannot have separate entries with exactly the same string, so if you try to have

EvoDragonEgg

in both subgroups, it wont work. The workaround is easy, you can use a separator char like this to distinguish them

EvoDragonEgg/


Greystar- 03-31-2006
Okay ill look into trying subgroups...