A Proposal for a Shadowrun XML Standard

asset

root/rpgcharacter/bio/assets/asset
Back

Namespace:
Filename:

Content: name (type: string) , type (type: assettype) , variation (type: string) ?, quantity (type: float) ?, unitvalue (type: float) ?, level (type: int) ?, note (type: string) *, appdata (type: customdata) *

Description: The asset tag describes one of the character's financial assets such as coins, cash, gems, stock, real estate, etc.

Sample tag settings:

Situation type variation  quantity   unitvalue 
A campaign uses silver peices as the standard monetary unit. A character has 85 silver peices. Cash sp 85 1
A campaign uses silver peices as the standard monetary unit. A gold peice in this campaign is worth 10 silver peices. A character has 50 gold peices. Cash gp 50 10
A campaign uses silver peices as the standard monetary unit. A character has two rubies worth 2500sp each. Gem ruby 2 2500
A campaign uses the dollar as the standard monetary unit. A character owns 100 shares of Tyrell Industries, which currently sell at $35.50 a share. Stock Tyrell Industries 100 35.5
A campaign uses the pound as the standard monetary unit. A character owns a house worth £450,000. Real Estate House 1 450000
A campaign uses the nuyen as the standard monetary unit. A character has purchased six months of a middle class lifestyle for 1000¥ a month. Lifestyle Middle 6 1000
A campaign uses the dollar as the standard monetary unit. A character owes John Doe $1,000. Loan John Doe 1 -1000
A campaign uses the dollar as the standard monetary unit. John Doe owes character $1,000. Loan John Doe 1 1000

Code Fragment

<xs:complexType name="asset">
  <xs:sequence>
    <xs:element type="xs:string" name="name"/>
    <xs:element type="assettype" name="type"/>
    <xs:element type="xs:string" name="variation" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:float" name="quantity" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:float" name="unitvalue" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:int" name="level" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:string" name="note" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element type="customdata" name="appdata" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
</xs:complexType>