Added "get_current_inven_size" script function.

This commit is contained in:
NovaRain
2018-09-21 19:23:35 +08:00
parent 76ea3ed383
commit bbe789d013
7 changed files with 14 additions and 1 deletions
+1
View File
@@ -228,6 +228,7 @@
#define display_stats sfall_func0("display_stats")
#define exec_map_update_scripts sfall_func0("exec_map_update_scripts")
#define floor2(value) sfall_func1("floor2", value)
#define get_current_inven_size(obj) sfall_func1("get_current_inven_size", obj)
#define get_cursor_mode sfall_func0("get_cursor_mode")
#define get_flags(obj) sfall_func1("get_flags", obj)
#define get_ini_section(file, sect) sfall_func2("get_ini_section", file, sect)
@@ -497,6 +497,9 @@ Some utility/math functions are available:
> void sfall_func1("dialog_message", string text)
- displays a message in the NPC response window in dialog or barter screen
> int sfall_func1("get_current_inven_size", object)
- returns the current inventory size of the container or the critter
------------------------
------ MORE INFO -------
------------------------