Stendhal/Creature Organization/Examples

From Arianne
Revision as of 18:49, 4 May 2013 by imported>AntumDeluge (animal.xml)
Jump to navigation Jump to search

These changes should be able to be made without affecting the game. But the logic tilesets for Tiled should eventually be reworked. Creature classes only appear to affect class definition on the website.

Option 1: Very generalized categories

animal.xml

human.xml

hybrid.xml

dragon.xml

undead.xml

Option 2: More distinction between classes

(***) Unsure about these options

angel.xml

animal.xml

beast.xml ***

demon.xml

dragon.xml

dwarf.xml

elemental.xml

elf.xml

giant.xml

  • ice

gnome.xml

human.xml

humanoid.xml ***

hybrid.xml

oni.xml

orc.xml

troll.xml

  • cyclops
    • cyclops (optionally troll.xml or misc.xml)

undead.xml

Examples

  • A possible method of organization would be to put the creatures in a file with a corresponding class name, and use a subclass tag to segregate different creatures within their class.

Example: undead.xml

<creatures>

  <subclass value="skeleton">
    
    <creature name="skeleton">
    </creature>
    
    <creature name="warrior skeleton">
    </creature>
  
  </subclass>
  
  <subclass value="zombie">
  
    <creature name="zombie">
    </creature>
    
    <creature name="rotten zombie">
    </creature>
    
  </subclass>
  
</creatures>

In the above example creatures skeleton & warrior skeleton would be of class undead and subclass skeleton while zombie & rotten zombie would be class undead and subclass zombie.

If subclass tags not possible comments can be used in place of them in the traditional method:

<creatures>

  <!-- START: skeleton -->
    
  <creature name="skeleton">
  </creature>
  
  <creature name="warrior skeleton">
  </creature>

  <!-- END: skeleton -->
  
  <!-- START: zombie -->
  
  <creature name="zombie">
  </creature>
  
  <creature name="rotten zombie">
  </creature>
  
  <!-- END: zombie -->
  
</creatures>