Added "unwield_slot" script function

Re-fixed obj_art_fid for player's FID (commit 36523d8)
This commit is contained in:
NovaRain
2019-10-08 10:56:49 +08:00
parent f6ec543f40
commit 37acec7115
6 changed files with 81 additions and 14 deletions
@@ -507,6 +507,11 @@ Some utility/math functions are available:
- there is also a unique ID number range for the player and party members from 18000 to 83535
- to assign a new ID number generated by the engine to the object (i.e. unassign a unique ID), call the function with two arguments and pass -1 for the flag argument
> void sfall_func2("unwield_slot", object critter, int slot)
- unequips an item from the specified slot for a critter or the player
- can take off player's equipped item when the inventory is opened, or the player is in the barter screen
- slot: 0 - armor slot, 1 - right slot, 2 - left slot (see INVEN_TYPE_* in define.h)
------------------------
------ MORE INFO -------
------------------------