Shop.yml

#=========Sections=========#
#bank - The total amount of money the shop currently has. set to -1 for infinite.
#vars - Here you can define custom variables that can be used later when defining prices
#
#items- Here you define the items in the shop. '#-#' is the id of each item.
#    half life - Every time the stock increases by this number, the prices are halved. set to 0 to disable.
#         name - This is the name of the item. This will be displayed in shop messages.
#  name-plural - This is the same as name, except plural (more than one)
#          buy - This is the price for someone to buy an item from the shop. set to -1 to disable.
#         sell - This is the amount of money players get for selling an item to the shop. set to -1 to disable.
#        stock - This is the number of items the shop has in stock. set to -1 for infinite.
#
#=========Referencing other items' prices=========#
#You can reference other items' prices with a special notation. Here are some examples:
#
#This will return 100 because 50% of 200 is 100:
#    50%200.0
#
#This will return 80 because 25% of 40 is 10, and 10 plus 70 is 80:
#    25%40 + 70
#
#This will return the sum of 'vars.random-var' and 123:
#    vars.random-var + 123
#
#This will return half the cost to buy the item 23-0:
#    50%23-0.buy
#
#Other things to know:
#  This notation is case sensitive (so 'AsDf' is not the same as 'asdf')
#  Spaces don't count as anything (so '1 + 2' is the same as '1+2')
#  You can make a value negative by putting '-100%vars.random-var'
#
#If you have any questions about how this works, please comment at:
#http://dev.bukkit.org/server-mods/finite-global-shop/

bank: 1000.00

vars:
  custom-variable: 123.45
  another-custom-variable: 3.14

items:
  1-0:
    half-life: 500
    name: Stone
    name-plural: Stone
    buy: 0.50
    sell: 0.40
    stock: 0

  3-0:
    half-life: 500
    name: Dirt
    name-plural: Dirt
    buy: 100%vars.custom-variable
    sell: 50%buy + 100%vars.another-custom-variable
    stock: 0
    
  5-1:
    half-life: 500
    name: Spruce Wood Plank
    name-plural: Spruce Wood Planks
    buy: 200%3-0.buy
    sell: 75%buy
    stock: 0

Comments

Posts Quoted:
Reply
Clear All Quotes