Rename the option from previous commit to FullItemDescInBarter and added it to ddraw.ini.

Edited info about HOOK_DESCRIPTIONOBJ and the new return value of HOOK_BARTERPRICE to documents.
Minor edits to ddraw.ini to avoid misunderstanding.
This commit is contained in:
NovaRain
2018-07-28 22:27:32 +08:00
parent 93cd7a08ad
commit 0bda53e109
4 changed files with 22 additions and 14 deletions
+5 -5
View File
@@ -265,7 +265,7 @@ critter arg7 - table of offered goods (being sold to NPC)
int arg8 - the total cost of the goods offered by the player
int arg9 - set 1 if the "offers" button was pressed (not for a party member), otherwise 0
int ret1 - the modified value of all of the goods, pass -1 for modify only offered goods
int ret1 - the modified value of all of the goods (pass -1 if you just want to modify offered goods)
int ret2 - the modified value of all offered goods
-------------------------------------------
@@ -537,9 +537,9 @@ int ret2 - overrides the result of engine calculation: 0/1 - failure, 2/3 -
HOOK_DESCRIPTIONOBJ (hs_descriptionobj)
Runs while using the item description icon in the player's inventory, or trade window.
Allows to override the description of the item (for example: add additional parameters to the description).
Runs when using the examine action icon to display item description. You can override the description of the item.
An example usage would be to add additional parameters to the description.
Obj arg1 - the item
Obj arg1 - the item
int ret1 - a pointer to the new "text" received using the macro function 'get_string_pointer' from FuncX functions
int ret1 - a pointer to the new text received by using "get_string_pointer" function
+1 -1
View File
@@ -495,7 +495,7 @@ Some utility/math functions are available:
- returns a pointer to a string variable or to a text
> void sfall_func1("dialog_message", string text)
- displays a message in the NPC response window in dialog or trade mode
- displays a message in the NPC response window in dialog or barter screen
------------------------
------ MORE INFO -------