Bshop: Difference between revisions
imported>BravelyPeculiar No edit summary |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
<onlyinclude> | <onlyinclude> | ||
{{Parameter archive infobox|param_type=bshop|version=0|type=xml}} | {{Parameter archive infobox|param_type=bshop|version=0|type=xml}} | ||
''' | '''ShopData''' (''bshop'') configures what items can be sold by NPCs, stock numbers and prices. | ||
</onlyinclude> | </onlyinclude> | ||
== Parameter objects == | |||
=== Header === | ==Parameter objects== | ||
{|class="wikitable" | ===Header=== | ||
! Key !! Type !! Description | {| class="wikitable" | ||
!Key!!Type!!Description | |||
|- | |- | ||
| TableNum || int || Number of tables | |TableNum||int||Number of tables | ||
|- | |- | ||
| {{AampIndexedParam|key=Table%02d|start_idx=1}} || str64 || Name of the shop table | |{{AampIndexedParam|key=Table%02d|start_idx=1}}||str64||Name of the shop table | ||
|} | |} | ||
=== {{Placeholder AAMP param name|name=[TableName]}} === | ==={{Placeholder AAMP param name|name=[TableName]}} === | ||
{|class="wikitable" | {| class="wikitable" | ||
! Key !! Type !! Description | !Key!!Type!!Description | ||
|- | |- | ||
| ColumnNum || int || Number of items | |ColumnNum||int||Number of items | ||
|- | |- | ||
| {{AampIndexedParam|key=ItemSort%03d|start_idx=1}} || int || Sort value | |{{AampIndexedParam|key=ItemSort%03d|start_idx=1}}||int||Sort value | ||
|- | |- | ||
| {{AampIndexedParam|key=ItemName%03d|start_idx=1}} || str64 || Item actor name | |{{AampIndexedParam|key=ItemName%03d|start_idx=1}}||str64||Item actor name | ||
|- | |- | ||
| {{AampIndexedParam|key=ItemNum%03d|start_idx=1}} || int || Maximum stock | |{{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=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 | |{{AampIndexedParam|key=ItemLookGetFlg%03d|start_idx=1}}||bool||Whether to use IsGet Flag for Shop Table Visibility | ||
This allows the item to be skipped when generating the shop table if the actor's IsGet flag is false | |||
|- | |- | ||
| {{AampIndexedParam|key=ItemAmount%03d|start_idx=1}} || int || {{check}} | |{{AampIndexedParam|key=ItemAmount%03d|start_idx=1}}||int||{{check}} | ||
|} | |} | ||
== Example == | ==Example== | ||
[[File:NpcShop.jpg|500px|right|Example]] | [[File:NpcShop.jpg|500px|right|Example]] | ||
'''Npc_Road_010. | '''Npc_Road_010.bshop''' | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
!io | !io | ||
| Line 107: | Line 111: | ||
[[Category:File extensions]] | [[Category:File extensions]] | ||
[[Category:File extensions (AAMP)]] | [[Category:File extensions (AAMP)]] | ||
[[Category:Actor | [[Category:Actor parameter files]] | ||