Bshop: Difference between revisions
Jump to navigation
Jump to search
imported>Leoetlino No edit summary |
imported>BravelyPeculiar No edit summary |
||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
<onlyinclude>'''bshop''' files | <onlyinclude> | ||
{{Parameter archive infobox|param_type=bshop|version=0|type=xml}} | |||
'''.bshop''' files in [[Content/Actor|Actor]]/ShopData configure what items can be sold by NPCs, stock numbers and prices. | |||
</onlyinclude> | |||
== Parameter objects == | |||
=== Header === | |||
{|class="wikitable" | |||
! Key !! Type !! Description | |||
|- | |||
| TableNum || int || Number of tables | |||
|- | |||
| {{AampIndexedParam|key=Table%02d|start_idx=1}} || str64 || Name of the shop table | |||
|} | |||
=== {{Placeholder AAMP param name|name=[TableName]}} === | |||
{|class="wikitable" | |||
! Key !! Type !! Description | |||
|- | |||
| ColumnNum || int || Number of items | |||
|- | |||
| {{AampIndexedParam|key=ItemSort%03d|start_idx=1}} || int || Sort value | |||
|- | |||
| {{AampIndexedParam|key=ItemName%03d|start_idx=1}} || str64 || Item actor name | |||
|- | |||
| {{AampIndexedParam|key=ItemNum%03d|start_idx=1}} || int || Maximum stock | |||
|- | |||
| {{AampIndexedParam|key=ItemAdjustPrice%03d|start_idx=1}} || int || Value to add or subtract to the item buying price | |||
|- | |||
| {{AampIndexedParam|key=ItemLookGetFlg%03d|start_idx=1}} || bool || Whether the player sees a Get demo after buying {{check}} | |||
|- | |||
| {{AampIndexedParam|key=ItemAmount%03d|start_idx=1}} || int || {{check}} | |||
|} | |||
== Example == | |||
[[File:NpcShop.jpg|500px|right|Example]] | |||
'''Npc_Road_010.bdrop''' | |||
<syntaxhighlight lang="yaml"> | |||
!io | |||
version: 0 | |||
type: xml | |||
param_root: !list | |||
objects: | |||
Header: !obj {TableNum: 2, Table01: !str64 Normal, Table02: !str64 Rain} | |||
Normal: !obj | |||
ColumnNum: 4 | |||
ItemSort001: 0 | |||
ItemName001: !str64 Item_Material_07 | |||
ItemNum001: 10 | |||
ItemAdjustPrice001: 2 | |||
ItemLookGetFlg001: false | |||
ItemAmount001: 0 | |||
ItemSort002: 1 | |||
ItemName002: !str64 Item_Material_03 | |||
ItemNum002: 5 | |||
ItemAdjustPrice002: 2 | |||
ItemLookGetFlg002: false | |||
ItemAmount002: 0 | |||
ItemSort003: 3 | |||
ItemName003: !str64 Item_Material_06 | |||
ItemNum003: 5 | |||
ItemAdjustPrice003: 2 | |||
ItemLookGetFlg003: false | |||
ItemAmount003: 0 | |||
ItemSort004: 5 | |||
ItemName004: !str64 Item_Material_04 | |||
ItemNum004: 5 | |||
ItemAdjustPrice004: 1 | |||
ItemLookGetFlg004: false | |||
ItemAmount004: 0 | |||
Rain: !obj | |||
ColumnNum: 5 | |||
ItemSort001: 0 | |||
ItemName001: !str64 Item_Material_07 | |||
ItemNum001: 10 | |||
ItemAdjustPrice001: 0 | |||
ItemLookGetFlg001: false | |||
ItemAmount001: 0 | |||
ItemSort002: 1 | |||
ItemName002: !str64 Item_Material_03 | |||
ItemNum002: 5 | |||
ItemAdjustPrice002: 0 | |||
ItemLookGetFlg002: false | |||
ItemAmount002: 0 | |||
ItemSort003: 2 | |||
ItemName003: !str64 Item_Material_05 | |||
ItemNum003: 10 | |||
ItemAdjustPrice003: 0 | |||
ItemLookGetFlg003: false | |||
ItemAmount003: 0 | |||
ItemSort004: 3 | |||
ItemName004: !str64 Item_Material_01 | |||
ItemNum004: 5 | |||
ItemAdjustPrice004: 0 | |||
ItemLookGetFlg004: false | |||
ItemAmount004: 0 | |||
ItemSort005: 4 | |||
ItemName005: !str64 Item_Material_02 | |||
ItemNum005: 5 | |||
ItemAdjustPrice005: 0 | |||
ItemLookGetFlg005: false | |||
ItemAmount005: 0 | |||
lists: {} | |||
</syntaxhighlight> | |||
[[Category:File extensions]] | [[Category:File extensions]] | ||
[[Category:File extensions (AAMP)]] | [[Category:File extensions (AAMP)]] |
Revision as of 17:19, 18 September 2018
Format | AAMP |
---|---|
Version | 0 |
Type | xml |
This article is about the structure in general. For actual values, check the GameROM or the pseudo-source. |
.bshop files in Actor/ShopData configure what items can be sold by NPCs, stock numbers and prices.
Parameter objects
Header
Key | Type | Description |
---|---|---|
TableNum | int | Number of tables |
Table%02d | str64 | Name of the shop table |
[TableName]
Key | Type | Description |
---|---|---|
ColumnNum | int | Number of items |
ItemSort%03d | int | Sort value |
ItemName%03d | str64 | Item actor name |
ItemNum%03d | int | Maximum stock |
ItemAdjustPrice%03d | int | Value to add or subtract to the item buying price |
ItemLookGetFlg%03d | bool | Whether the player sees a Get demo after buying [check] |
ItemAmount%03d | int | [check] |
Example
Npc_Road_010.bdrop
!io
version: 0
type: xml
param_root: !list
objects:
Header: !obj {TableNum: 2, Table01: !str64 Normal, Table02: !str64 Rain}
Normal: !obj
ColumnNum: 4
ItemSort001: 0
ItemName001: !str64 Item_Material_07
ItemNum001: 10
ItemAdjustPrice001: 2
ItemLookGetFlg001: false
ItemAmount001: 0
ItemSort002: 1
ItemName002: !str64 Item_Material_03
ItemNum002: 5
ItemAdjustPrice002: 2
ItemLookGetFlg002: false
ItemAmount002: 0
ItemSort003: 3
ItemName003: !str64 Item_Material_06
ItemNum003: 5
ItemAdjustPrice003: 2
ItemLookGetFlg003: false
ItemAmount003: 0
ItemSort004: 5
ItemName004: !str64 Item_Material_04
ItemNum004: 5
ItemAdjustPrice004: 1
ItemLookGetFlg004: false
ItemAmount004: 0
Rain: !obj
ColumnNum: 5
ItemSort001: 0
ItemName001: !str64 Item_Material_07
ItemNum001: 10
ItemAdjustPrice001: 0
ItemLookGetFlg001: false
ItemAmount001: 0
ItemSort002: 1
ItemName002: !str64 Item_Material_03
ItemNum002: 5
ItemAdjustPrice002: 0
ItemLookGetFlg002: false
ItemAmount002: 0
ItemSort003: 2
ItemName003: !str64 Item_Material_05
ItemNum003: 10
ItemAdjustPrice003: 0
ItemLookGetFlg003: false
ItemAmount003: 0
ItemSort004: 3
ItemName004: !str64 Item_Material_01
ItemNum004: 5
ItemAdjustPrice004: 0
ItemLookGetFlg004: false
ItemAmount004: 0
ItemSort005: 4
ItemName005: !str64 Item_Material_02
ItemNum005: 5
ItemAdjustPrice005: 0
ItemLookGetFlg005: false
ItemAmount005: 0
lists: {}