Stendhal/Creature Organization/Examples: Difference between revisions

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


* human
* human
** <creature>giant</creature>, <creature>elder giant</creature>, <creature>master giant</creature> & <creature>black giant</creature>
** <creature>giant</creature>, <creature>elder giant</creature>, <creature>master giant</creature>
** <creature>black giant</creature> (alternative subclass "dark")


* ice
* ice

Revision as of 16:22, 4 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: Reduce number of creature categories

animal.xml

human.xml

hybrid.xml

mythical

undead.xml

Option 2: Create more creature categories

angel.xml

animal.xml

aruthon.xml (optionally merged into misc.xml

beholder.xml

No changes

demon.xml

dragon.xml

dwarf.xml

elemental.xml

elf.xml

gargoyle.xml

Optionally leave as is or merge with golem.xml

giant

  • ice

gnome.xml

No changes

goblin.xml

No changes

golem.xml

human.xml

  • chaos

Optionally merge chaos green dragonrider & chaos red dragonrider

  • madaram

Optionallay move kasarkutominubat to giant.xml

hybrid.xml

misc.xml

mythical.xml

  • ratfolk

ratman ratwoman archrat

ogre.xml

oni.xml

No changes

orc.xml

slime.xml

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

Comments can be used in place of the "subclass" tag:

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