Changed the implementation of HOOK_FINDTARGET so you don't have to specify all 4 targets to override normal sorting (from Mr.Stalin)

Added "loot_obj" script function.
This commit is contained in:
NovaRain
2018-11-06 11:11:44 +08:00
parent 4ae4d6dff0
commit de055cd8ec
10 changed files with 31 additions and 20 deletions
+4 -1
View File
@@ -540,13 +540,16 @@ Some utility/math functions are available:
- 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
- returns a pointer to the object (critter) the player is having a conversation or bartering with
> object sfall_func2("obj_under_cursor", bool crSwitch, bool inclDude)
- returns the object under the cursor on the main game screen
- crSwitch: True - only checks critters and ignores their cover (roof tiles, walls, scenery, etc.), False - checks all objects (can't check critters under objects)
- passing False to the inclDude argument will ignore dude_obj
> object sfall_func0("loot_obj")
- returns a pointer to the target object (container or critter) of the loot screen
------------------------
------ MORE INFO -------
------------------------