Corrected hook documentation

This commit is contained in:
phobos2077
2023-06-04 12:02:11 +02:00
parent bfc9fd4d88
commit ac1abf71f8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -502,7 +502,7 @@
Obj arg1 - the object that owns this handler (self_obj)
Obj arg2 - the object that called this handler (source_obj, can be 0)
int arg3 - always 0 (1 for _END version)
int arg4 - the target object of this call (target_obj)
Obj arg4 - the object that is acted upon by this handler (target_obj, can be 0)
int arg5 - the parameter of this call (fixed_param), useful for combat_proc
int ret0 - pass -1 to cancel the execution of the handler
@@ -519,7 +519,7 @@
Obj arg1 - the object that owns this handler (self_obj)
Obj arg2 - the object that called this handler (source_obj, can be 0)
int arg3 - always 1 (procedure end)
int arg4 - the target object of this call (target_obj)
Obj arg4 - the object that is acted upon by this handler (target_obj, can be 0)
int arg5 - the parameter of this call (fixed_param), useful for combat_proc
```
+1 -1
View File
@@ -806,7 +806,7 @@ int arg0 - the number of the standard script handler (see *_proc in define.h
Obj arg1 - the object that owns this handler (self_obj)
Obj arg2 - the object that called this handler (source_obj, can be 0)
int arg3 - 1 after procedure execution (for HOOK_STDPROCEDURE_END), 0 otherwise
int arg4 - the target object of this call (target_obj)
Obj arg4 - the object that is acted upon by this handler (target_obj, can be 0)
int arg5 - the parameter of this call (fixed_param), useful for combat_proc
int ret0 - pass -1 to cancel the execution of the handler (only for HOOK_STDPROCEDURE)