Skip to content

Commit

Permalink
Upgraded Foundry VTT export to use new ID and PARENT_ID keys (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
crnormand authored Jan 29, 2021
1 parent 1baf5a2 commit 60310ed
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Library/Output Templates/Foundry VTT.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="iso-8859-1"?>
@ENHANCED_KEY_PARSING
<root release="Foundry" version="1">
<root release="Foundry" version="GCS-2">
<character>
<name type="string">@NAME</name>
<portrait>@PORTRAIT</portrait>
<abilities>
<skilllist>@SKILLS_LOOP_START
<id-@ID>
Expand All @@ -13,6 +14,8 @@
<points type="number">@POINTS</points>
<notes type="string">@DESCRIPTION_NOTES</notes>
<pageref>@REF</pageref>
<uuid>@ID</uuid>
<parentuuid>@PARENT_ID</parentuuid>
</id-@ID>@SKILLS_LOOP_END
</skilllist>

Expand All @@ -31,6 +34,8 @@
<difficulty type="string">@DIFFICULTY</difficulty>
<notes type="string">@DESCRIPTION_NOTES</notes>
<pageref type="string">@REF</pageref>
<uuid>@ID</uuid>
<parentuuid>@PARENT_ID</parentuuid>
</id-@ID>@SPELLS_LOOP_END
</spelllist>

Expand Down Expand Up @@ -130,6 +135,7 @@
</rangedcombatlist>

<protectionlist>
<bodyplan type="string">@BODY_TYPE</bodyplan>
@HIT_LOCATION_LOOP_START
<id-@ID>
<location type="string">@WHERE</location>
Expand Down Expand Up @@ -183,6 +189,8 @@
<notes type="string">@DESCRIPTION_NOTES</notes>
<pageref>@REF</pageref>
<type>@TYPE</type>
<uuid>@ID</uuid>
<parentuuid>@PARENT_ID</parentuuid>
</id-@ID>@ADVANTAGES_LOOP_END
</adslist>

Expand All @@ -198,13 +206,14 @@
<costsum type="string">@COST_SUMMARY</costsum>
<weight type="number">@WEIGHT_RAW</weight>
<weightsum type="number">@WEIGHT_SUMMARY</weightsum>
<location type="string">@LOCATION</location>
<carried type="number">@CARRIED_STATUS</carried>
<tl type="string">@TL</tl>
<lc type="string">@LEGALITY_CLASS</lc>
<type type="string">@CATEGORIES</type>
<notes type="string">@DESCRIPTION_NOTES</notes>
<pageref type="string">@REF</pageref>
<uuid>@ID</uuid>
<parentuuid>@PARENT_ID</parentuuid>
</id-@ID>@EQUIPMENT_LOOP_END @CONTINUE_ID @OTHER_EQUIPMENT_LOOP_START
<id-@ID>
<name type="string">@DESCRIPTION_PRIMARY</name>
Expand All @@ -214,13 +223,14 @@
<costsum type="string">@COST_SUMMARY</costsum>
<weight type="number">@WEIGHT_RAW</weight>
<weightsum type="number">@WEIGHT_SUMMARY</weightsum>
<location type="string">@LOCATION</location>
<carried type="number">@CARRIED_STATUS</carried>
<tl type="string">@TL</tl>
<lc type="string">@LEGALITY_CLASS</lc>
<type type="string">@CATEGORIES</type>
<notes type="string">@DESCRIPTION_NOTES</notes>
<pageref type="string">@REF</pageref>
<uuid>@ID</uuid>
<parentuuid>@PARENT_ID</parentuuid>
</id-@ID>@OTHER_EQUIPMENT_LOOP_END

</inventorylist>
Expand All @@ -240,7 +250,10 @@
<notelist>@NOTES_LOOP_START
<id-@ID>
<name type="string">@NOTE</name>
</id-@ID>@NOTES_LOOP_END
<pageref type="string">@REF</pageref>
<uuid>@ID</uuid>
<parentuuid>@PARENT_ID</parentuuid>
</id-@ID>@NOTES_LOOP_END
</notelist>

<reactions>@REACTION_LOOP_START
Expand Down

0 comments on commit 60310ed

Please sign in to comment.