mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Corrected hook documentation
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user