Backported the improvements of HOOK_STEAL

Edits to hookscripts.md and ddraw.ini.
This commit is contained in:
NovaRain
2023-07-22 21:06:38 +08:00
parent 680310f702
commit 788593cdcc
3 changed files with 50 additions and 12 deletions
+1 -2
View File
@@ -649,8 +649,7 @@ DialogPanelAnimDelay=33
PipboyTimeAnimDelay=50
;Set to 1 to let you use the command cursor to specify targets for party members to attack in combat
;Note: The old built-in ControlCombat option is removed in 3.8.40
;See the example mods in the modders pack for a script-based NPC combat control mod
;The 'Attack Who' preference in the combat control panel of party members must be set to 'Whomever you want'
PartyOrderToAttack=0
;Changes the way weapon reloading works when you drag ammo onto a weapon in the inventory
+5 -3
View File
@@ -322,7 +322,7 @@ Critter arg0 - the critter doing the bartering (either dude_obj or inven_dude)
Critter arg1 - the critter being bartered with
int arg2 - the default value of the goods
Critter arg3 - table of requested goods (being bought from NPC)
int arg4 - the amount of actual caps in the barter stack (as opposed to goods)
int arg4 - the number of actual caps in the barter stack (as opposed to goods)
int arg5 - the value of all goods being traded before skill modifications
Critter arg6 - table of offered goods (being sold to NPC)
int arg7 - the total cost of the goods offered by the player
@@ -476,10 +476,12 @@ Example message (vanilla behavior):\
```
Critter arg0 - Thief
Obj arg1 - The target
Item arg2 - Item being stolen/planted
Item arg2 - The item being stolen/planted
int arg3 - 0 when stealing, 1 when planting
int arg4 - quantity of the item being stolen/planted
int ret0 - overrides hard-coded handler (1 - force success, 0 - force fail, -1 - use engine handler)
int ret0 - overrides hard-coded handler (2 - force fail without closing window, 1 - force success, 0 - force fail, -1 - use engine handler)
int ret1 - overrides experience points gained for stealing this item (must be greater than or equal to 0)
```
-------------------------------------------