User Tools

Site Tools


cerea1:builders:ztk_init_store

ztk_init_store.nss

Usage

This script is used in the generic dialog script ztk_merch. For more information how to use that see the documentation of ztk_merch.

What it does

This function will do following things:

  1. Set the custom tokens 3820-3822 needed by dialog. text_greetings, text_open_shop, and text_no_shopping
  2. See if the shop is already created and if so, exit. shop_tag
  3. Create shop, and set the shop parameters shop_resref, shop_gold, shop_max_buy_price, shop_identify_cost.
  4. Copy some variables from shopkeeper to created shop. fill_time
  5. Copy item* variables from the shopkeeper to the created shop. item*, and item*prob
  6. Set the Store0 variable to have the tag of shop (ztk_merch uses _gen_openstore0).
cerea1/builders/ztk_init_store.txt · Last modified: 2015/05/03 12:46 by 127.0.0.1