Store¶
-
class
pynwn.Store(resource, instance=False)¶ -
black_market¶ Black market flag.
-
comment¶ Comment.
-
get_description(lang=None)¶ Localized unidentified description.
-
get_description_id(lang=None)¶ Localized identified description.
-
get_name(lang=None)¶ Localized name.
-
gold¶ Gold.
-
items¶ Items in inventory.
Returns: a two dimensional array with the format: [<store page>][<RepositoryItem objects>]
-
mark_down¶ Mark down.
-
mark_down_bm¶ Blackmarket mark down.
-
mark_up¶ Mark up.
-
palette_id¶ Resref.
-
price_id¶ Price to identify item.
-
price_max_buy¶ Maximum buy price.
-
resref¶ Resref.
-
scripts¶ Scripts. Responds to script events:
- Event.OPEN
- Event.CLOSE
-
set_description(lang=None, string=None)¶ Localized unidentified description.
-
set_description_id(lang=None, string=None)¶ Localized identified description.
-
set_name(lang=None, string=None)¶ Localized name.
-
stage()¶
-
tag¶ Tag.
-
vars¶ Variable table
-
will_not_buy¶ Will not buy list.
Returns: List of baseitem IDs that store will not buy.
-
will_only_buy¶ Will only buy list.
Returns: List of baseitem IDs that store will only buy.
-
-
class
pynwn.StoreInstance(gff, parent_obj)¶ A store instance is one placed in an area in the toolset. As such it’s values are derived from its parent GFF structure.
-
items¶ Items in inventory.
Returns: a two dimensional array with the format: [<store page>][<ItemInstance objects>]
-
stage()¶ Stages changes to parent GFF structure.
-