Stendhal/Creature Organization/Examples: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 583: Line 583:


Example: undead.xml
Example: undead.xml
<b><i><span style="color:red">This method will not be used. There is currently no use for using a subclass tag.</span></i></b>
<pre>
<pre>
<creatures>
<creatures>

Revision as of 04:08, 5 May 2013

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

gnome.xml

goblin.xml

human.xml

  • pirate (not activated)
    • pirate
    • pirate wench
    • buccaneer
    • smuggler
    • evil pirate
    • pirate leader

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 This method will not be used. There is currently no use for using a subclass tag.

<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>