cool guards, having trouble including them into xml spawner, im sure its just my syntax, tried adding just guard, says invalid, tried adding guard cavalry, says invalid...can spawn em by add cmd though....
 
The problem is how xmlspawner spawns an npc. It doesn't allow spawns that require additional input like "[add guard pikeman". What you can do to spawn one of these guards in xmlspawner is to write a new class for the guard type you want. Here's a fast example:

Code:
  public class PikemanGuard : Guard
  {
	[Constructable]
	public PikemanGuard() : base(GuardType.Pikeman, AIType.AI_Melee)
	{
	}
  }

The xmlspawner should spawn "pikemanguard" just fine. If anyone else knows of another method let me know.
 
I think for xml spawners I use the following syntax, but it's been a few months so I'm not sure..

Code:
guard, medic/ai_type/ai_healer

Archers, Medics, and Wizards will not spawn with proper AI on XML spawners unless you do as Vii posted or use the above syntax.
 
Last edited:
Back