Hi,
I'm looking for a way to implement "semi-random" monsters without hard-coding them.
XML seems to be a good choice, so I come with such a structure:
<monsters>
<monster>
<guard1>
<stats str="8"(...)/>
<inventory>
<equip>
<pants id="GUARD_PANTS"/>
<top id="GUARD_JACKET"/>
<weapon id="GUN45"/>
</equip>
</money min="0" max="100">
<items>
<item id="MAG45" prob="0.5"/>
<choice_items>
<item id="CANDY_BAR1" prob="0.25"/>
<item id="BIER" prob="0.25"/>
</choice_items>
</items>
</inventory>
</guard1>
</monster>
</monsters>
Meaning all these guards have standard equipment, can have from 0 to 100 dollars, 50% chance having ammunitions for his .45 and 50% chance having a candy bar (25%) or a bier (25%).
This choice should be extended to all the fields that have to be randomized (stats, appearance, equipment...).
Would it be a good idea to proceed so? Could you see any limitation with these structure of data ?