Daedalus Dock - Modules - TypesVar Details - Proc Details

access

This vending machine supports a list of items that changes based on the user/card's access.

Vars

access_listsInternal variable to store our access list
auto_build_productsShould we auto build our product list? 0 means no

Procs

allow_purchaseCheck if the list of given access is allowed to purchase the given product
build_access_listThis is where you generate the list to store what items each access grants. Should be an assosciative list where the key is the access as a string and the value is the items typepath. You can also set it to TRUE instead of a list to allow them to purchase anything.

Var Details

access_lists

Internal variable to store our access list

auto_build_products

Should we auto build our product list? 0 means no

Proc Details

allow_purchase

Check if the list of given access is allowed to purchase the given product

build_access_list

This is where you generate the list to store what items each access grants. Should be an assosciative list where the key is the access as a string and the value is the items typepath. You can also set it to TRUE instead of a list to allow them to purchase anything.