Added "picking up item" event to HOOK_INVENTORYMOVE.

Added "set_unique_id" script function.
This commit is contained in:
NovaRain
2019-04-12 12:15:55 +08:00
parent dcf0561653
commit 7a2b7dee6a
10 changed files with 48 additions and 7 deletions
@@ -578,6 +578,12 @@ Some utility/math functions are available:
- type: 0 - changes the value of NumEffects for the drug (see Drugs.ini for the description of NumEffects)
1 - changes the duration of the addiction effect for the drug (a value of 1 = one game minute)
> int sfall_func1("set_unique_id", object)
- assigns an unique ID number to the object and returns it. If an unique ID number has already been assigned to an object, then ID number is returned without reassignment
- to just get the current ID number of an object, use sfall_func2("get_object_data", object, OBJ_DATA_ID)
- unique ID numbers are saved in your savegame, and have a range from 0x10000000 to 0x7FFFFFFF
- there is also an unique ID number range for the player and party members from 18000 to 83535
------------------------
------ MORE INFO -------
------------------------