Added "unwield_slot" script function

Re-fixed obj_art_fid for player's FID (commit 50f4885)
This commit is contained in:
NovaRain
2019-10-08 10:53:47 +08:00
parent 6ede19ceec
commit 1b6d6179a1
8 changed files with 96 additions and 26 deletions
@@ -622,6 +622,11 @@ optional argument:
- fileNumber: the file ID number for the message_str_game function. The available range is from 0x2000 to 0x2FFF (see ExtraGameMsgFileList setting in ddraw.ini)
use fileNumber only if you want to add a message file without editing ddraw.ini or existing scripts to support the old way
> 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 -------
------------------------