From The Mana World
Revision as of 08:23, 11 March 2015 by Cassy (talk | contribs) (removing category)

Monsters.xml

We use a series of includes in order to reduce the eventual overhead on any updates to files or item data. All this data comforms to methods more detailed at Manaplus's Monsters.xml Page

Monsters.xml

 <?xml version="1.0"?>
 <monsters offset="0">
   <include name="monsters/_include.xml"/>
 </monsters>

monsters/_include.xml

 <?xml version="1.0"?>
 <monsters offset="0">
   <include name="monsters/monster1002_Maggot.xml"/>
   <include name="monsters/monster1003_Scorpion.xml"/>
   <include name="monsters/monster1004_RedScorpion.xml"/>
   <include name="monsters/monster1005_GreenSlime.xml"/>
   <include name="monsters/monster1006_GiantMaggot.xml"/>
   <include name="monsters/monster1007_YellowSlime.xml"/>
   <include name="monsters/monster1008_RedSlime.xml"/>
   <include name="monsters/monster1009_BlackScorpion.xml"/>
   <include name="monsters/monster1010_Snake.xml"/>
   <include name="monsters/monster1011_FireGoblin.xml"/>
   <include name="monsters/monster1012_Spider.xml"/>
   ...
   <include name="monsters/monster1124_Wight.xml"/>
   <include name="monsters/monster1125_ManaGhost.xml"/>
   <include name="monsters/monster1126_PsiBrain.xml"/>
   <include name="monsters/monster1127_GeneralKrukun.xml"/>
   <include name="monsters/monster1128_GeneralRazha.xml"/>
   <include name="monsters/monster1129_GeneralTerogan.xml"/>
   <include name="monsters/monster1130_Moonshroom.xml"/>
   <include name="monsters/monster1131_ManaBug.xml"/>
 </monsters>

monsters/monster1002_Maggot.xml

 <?xml version="1.0"?>
 <monsters offset="0">
   <monster id="1002" name="Maggot" targetCursor="small">
     <sprite>monsters/maggot.xml</sprite>
     <sound event="hit">monsters/maggot/maggot-hit1.ogg</sound>
     <sound event="hit">monsters/maggot/maggot-hit2.ogg</sound>
     <sound event="miss">monsters/maggot/maggot-miss1.ogg</sound>
     <sound event="die">monsters/maggot/maggot-dying1.ogg</sound>
   </monster>
 </monsters>