Added "dialog_obj" script function.

This commit is contained in:
NovaRain
2018-10-08 09:42:38 +08:00
parent e6d958a83b
commit 88f3622a5d
5 changed files with 12 additions and 0 deletions
+1
View File
@@ -227,6 +227,7 @@
#define create_win_flag(winName, x, y, w, h, flag) sfall_func6("create_win", winName, x, y, w, h, flag)
#define critter_inven_obj2(obj, type) sfall_func2("critter_inven_obj2", obj, type)
#define dialog_message(text) sfall_func1("dialog_message", text)
#define dialog_obj sfall_func0("dialog_obj")
#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)
@@ -516,6 +516,9 @@ Some utility/math functions are available:
- returns -1 if the rest value of the map was not previously set (i.e. no data for the map in sfalldb.sav)
- the can_rest_here values in maps.txt are ignored
> object sfall_func0("dialog_obj")
- returns the object (critter) the player is having a conversation or bartering with
------------------------
------ MORE INFO -------
------------------------