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.
name
describes the name of the asset.type
describes the type of asset.variation
describes the variation of the type of asset, if any.
For example, if the type
is "Cash", this tag might be "gp",
"dollars", "quatloos", etc.quantity
describes the amount of the asset, if any. What this number
means generally depends on the type
and variation
tags.
This might represent shares of stock, number of coins, etc. If this tag is missing,
the quanity is assumed to be one.unitvalue
describes the value of one unit of the asset, if any. What this number
means generally depends on the type
and variation
tags.
The total value of the asset is quantity
multiplied by value
.
If this tag is missing, the unit value is assumed to be one. Examine the table below
for some examples of how these tags might be set.level
describes the asset's "level", if that has any meaning
within the game system.note
a note about the asset. There can be zero or more of
these for a given asset.appdata
a section to allow an application to write customized
data about the asset. There can be zero or more of these for a given asset.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>