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
+1
View File
@@ -313,3 +313,4 @@
#define spatial_radius(obj) sfall_func1("spatial_radius", obj)
#define tile_refresh_display sfall_func0("tile_refresh_display")
#define unjam_lock(obj) sfall_func1("unjam_lock", obj)
#define unwield_slot(critter, slot) sfall_func2("unwield_slot", critter, slot)
@@ -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 -------
------------------------