Mercurial > fife-parpg
view demos/rpg/maps/quests.xml @ 546:8fee2d2286e9
Rewrote the object serializing routines to use a "template" idea for loading an object from disk. This allows for multiple objects to load the same base object template but be unique on the scene AND have different values. Useful for say more than one gold stack on the ground with different gold values. TODO: fix the "spawn" console command.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 03 Jun 2010 21:35:06 +0000 |
parents | |
children | 3b933753cba8 |
line wrap: on
line source
<?xml version='1.0' encoding='UTF-8'?> <Settings> <Module name="Quiller"> <Setting name="questlist" type="list"> test_quest1 ; test_quest2 </Setting> <Setting name="test_quest1" type="dict"> type : RETURN_ITEM ; name : Test quest ; desc : This is the first quest you will get </Setting> <Setting name="test_quest2" type="dict"> type : RETURN_ITEM ; name : Second quest ; desc : This is the second quest you will get ; items : GoldStack ; value : 5000 </Setting> </Module> <Module name="test_quest1_items"> <Setting name="itemlist" type="list"> gold1 </Setting> <Setting name="gold1" type="dict"> name : GOLD_COINS ; value : 5000 </Setting> </Module> <Module name="test_quest2_items"> <Setting name="itemlist" type="list"> gold1 </Setting> <Setting name="gold1" type="dict"> name : GOLD_COINS ; value : 5000 </Setting> </Module> </Settings>