Bshop: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
(Fix typo)
 
(3 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}}
'''.bshop''' files in [[Content/Actor|Actor]]/ShopData configure what items can be sold by NPCs, stock numbers and prices.
'''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 player sees a Get demo after buying {{check}}
|{{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.bdrop'''
'''Npc_Road_010.bshop'''
<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
!io
!io

Latest revision as of 00:05, 2 November 2022

bshop
Format AAMP
Version 0
Type xml
This article is about the structure in general. For actual values, check the GameROM or the pseudo-source.

ShopData (bshop) configures 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 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

ItemAmount%03d int [check]

Example

Example

Npc_Road_010.bshop

!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: {}