ActorParam/ShopData: Difference between revisions

Redirected page to bshop
imported>Leoetlino
imported>Leoetlino
(Redirected page to bshop)
 
Line 1: Line 1:
<onlyinclude>
#REDIRECT [[bshop]]
{{Parameter archive infobox|param_type=bshop|version=0|type=xml}}
'''ShopData''' configures 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>
 
<references/>
[[Category:Content (BotW)]]
[[Category:Internals]]
Anonymous user