Hey i'm wondering how i would go about making a script to spawn in mobs in zones, in much higher numbers. I was able to add Raider NPCs to the game, using the Basic NPC mod (big thanks to Kallvin, the author of Basic NPC ) as an example of how to do so, after a good deal of trail and error i was able to add in two classes of NPC raiders. However, using a script setup like what Kallvin has done, i am only able to get the raiders to spawn in, very spread apart and in few numbers.
Here's the script called to spawn the raider mobs
namespace AtomicTorch.CBND.CoreMod.Zones
{
using System;
using AtomicTorch.CBND.CoreMod.Characters.Mobs;
using AtomicTorch.CBND.CoreMod.Triggers;
public class SpawnMobsHuman_00 : ProtoZoneSpawnScript
{
protected override void PrepareZoneSpawnScript(Triggers triggers, SpawnList spawnList)
{
triggers
.Add(GetTrigger<TriggerWorldInit>())
.Add(GetTrigger<TriggerTimeInterval>().Configure(TimeSpan.FromMinutes(10)));
spawnList.CreatePreset(interval: 30, padding: 0.5, useSectorDensity: false)
.Add<MobMaleRaider_01>()
.Add<MobMaleRaider_02>()
.SetCustomPaddingWithSelf(35);
}
}
}
And here's how it's being called
.Add(GetScript<SpawnMobsHuman_00>().Configure(densityMultiplier: 10.10));
I've tried adjusting densityMultiplier up to as high as 100 ( it was initially at 0.10) and it doesn't seem to be having any effect....
Here's the script called to spawn the raider mobs
namespace AtomicTorch.CBND.CoreMod.Zones
{
using System;
using AtomicTorch.CBND.CoreMod.Characters.Mobs;
using AtomicTorch.CBND.CoreMod.Triggers;
public class SpawnMobsHuman_00 : ProtoZoneSpawnScript
{
protected override void PrepareZoneSpawnScript(Triggers triggers, SpawnList spawnList)
{
triggers
.Add(GetTrigger<TriggerWorldInit>())
.Add(GetTrigger<TriggerTimeInterval>().Configure(TimeSpan.FromMinutes(10)));
spawnList.CreatePreset(interval: 30, padding: 0.5, useSectorDensity: false)
.Add<MobMaleRaider_01>()
.Add<MobMaleRaider_02>()
.SetCustomPaddingWithSelf(35);
}
}
}
And here's how it's being called
.Add(GetScript<SpawnMobsHuman_00>().Configure(densityMultiplier: 10.10));
I've tried adjusting densityMultiplier up to as high as 100 ( it was initially at 0.10) and it doesn't seem to be having any effect....