For the flags to work correctly you will also need to add the following:

In game.cs:

After the following:

       exec("./player.cs");
       exec("./chimneyfire.cs");
       exec("./aiPlayer.cs");
       
Add:



In player.cs:
		
		exec("./flag.cs");

At the top of the Armor::onDisabled function add:

   if ( %obj.getMountedImage($FlagSlot) != 0) {
   	newflag(%obj.getMountedImage($FlagSlot).item,%obj);
   	%obj.unmountImage($FlagSlot);
   	}
   	

Once you have done that start up your Realm Wars open the mission you wish to add
a map to.  Go into the editer and select the Editor Creator.  Pick a flag from the
list and add it to your map.  Save, close the game and restart.   	