Citation :
Beta set of scripts for modules.
This is a compilation of tools that are :
- GC : a garbage collector for Bodybag cleaning, Lost Item moving, PNJ & Monsters sweeping
- Area Heart-Beat Handling : activate a script (if you put a local string on the area named FHB_SCRIPT)
- dynamic shop : store created from palette, unicity of items in the module at a given time & module space saving. You need to create an empty area with one waypoint tagged TN_SHOP.
Use shop_local_var in the NPC dialogue, shop_set_idx_xx.nss (you can create many) to select between store.
Put local strings as needed on the NPC.
Don't forget to put the open and close script on the store
- static spawn : a system to spawn a creature when a PC enter the area, useful for NPCs. This keep area easy to edit and handle facing for creature spawned. This is not like "NPC Activities".
You will need to put ATAG local string on area of your module, ly_onenter_area and ly_onexit_area on each area you want the system to handle.
Prefer to use "numeric" translatable ATAG : eg. 0102, this could be used easyly when translated with StringToInt (case function)
You will need to use OnModuleHeartBeat Event : incorporate tn_mod_hb script.
this script is designed to save time.
beta3 : fixed ly_static_spawn.nss & ly_lib_pnj.nss : changed default value for iAction. The zero value serves now for multiple spawns, other values blocks it