====== Transportable Placeables System ====== This system make it so that when an item is dropped, it creates a placeable base on variables set on the item and it is possible to grab back the object by using the player tool. The object don't need to be useable as you can target the ground with your player tool and it let you select an object close to the targeted location. The placeables created by this system are persistent (they remain there after a reset, until someone destroy them or pick them up). It is all in this ERF: [[https://nwn.sinfar.net/res_list.php?erf_id=437]] ===== How To ===== - Create the placeable blueprint - Create the item blueprint - Add the following variables on the item: ^Varaible Name^Variable Type^Variable Value^Required or Optional^ |EVENT_UNACQUIRE|String|tps_ev_unacqitem|Required| |TPS_PLC_RESREF|String|ResRef of the placeable|Required| |TPS_NAME|String|override the name of the palceable|Optional| |TPS_DESCRIPTION|String|override the description of the placeable|Optional| |TPS_PLC_APPEARANCE|Integer|override the appearance of the placeable|Optional| |TPS_MAX_HP|Integer|override the max hit points of the placeable|Optional| |TPS_HARDNESS|Integer|override the hardness of the placeable|Optional| |TPS_PLACED_SCRIPT|String|script to run when the placeable is created|Optional| |TPS_FLAGS|Integer|sum of all options that you want to activate: \\ 1: PCs can rename the placeable \\ 2: PCS can change the description of the placeable \\ 4: Only the PC that dropped the placeable can manipulate it (grab it, move it, rename it....) - **Transportable placeables with this flag shouln't be sold in stores** \\ \\ For example, if you set the variable to 7, all the options above will be activated. If you set it to 4, it wont be possible to change the description of the item or rename it and only the owner of the item will be able to move it and grab it back.|Optional| - Add the following variables on the placeable blueprint: ^Varaible Name^Variable Type^Variable Value^Required or Optional^ |TPS_NAME|String|override the name of the item|Optional| |TPS_DESCRIPTION|String|override the description of the item|Optional| |TPS_ITEM_TYPE|Integer|override the type of the item (line number in baseitems.2da)|Optional| |TPS_ITEM_APPEARANCE|String|override the item appearance (value returned by the GetEntireItemAppearance function)|Optional| ===== Restrictions ===== * If an hostile creature get close to a transportable placeable, the placeable is automatically destroyed. * Transportable placeables can't be placed in areas that have one of those variables: * IS_ARENA * IS_OOC * NO_PERSISTENT_LOCATION * NO_TPS * Transportable placeables with the flag #4 and above (Only the owner can manipulate them) are reserved for DM rewards ===== Publicly Available Templates ===== There's premade transfportable placeables blueprints in those ERFs: * [[https://nwn.sinfar.net/erf_list.php?search_type=prefix&search_value=tpi]]