Edits to document about set_self function

Updated version number.
This commit is contained in:
NovaRain
2022-07-02 20:04:35 +08:00
parent 511d594e7d
commit 225fa9cc57
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
;sfall configuration settings ;sfall configuration settings
;v3.8.35.1 ;v3.8.36
[Main] [Main]
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file ;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
+3 -3
View File
@@ -184,10 +184,10 @@ FUNCTION REFERENCE
##### `void set_self(int obj)` ##### `void set_self(int obj)`
- Overrides the script's `self_obj` for the next function call. - Overrides the script's `self_obj` for the next function call.
- It is primarily used to allow the calling of functions which take an implicit `self_obj` parameter (e.g. `drop_obj`) from global scripts, but it can also be used from normal scripts. - It is primarily used to allow the calling of functions which take an implicit `self_obj` parameter (e.g. `drop_obj`) from global scripts, but it can also be used from normal scripts.
- `self_obj` will revert back to its original value after the next function call. - `self_obj` will be reverted to its original value after the next function call.
- Calling `self_obj(0)` will also revert `self_obj` to original value. It is recommended to call this after each use of `set_self` in normal scripts in order to avoid unforeseen side effects. - Calling `set_self(0)` will also revert `self_obj` to its original value. It is recommended to call this after each use of `set_self` in normal scripts in order to avoid unforeseen side effects.
- `source_obj`, `target_obj`, and similar functions will not work if preceded by `set_self`. - `source_obj`, `target_obj`, and similar functions will not work if preceded by `set_self`.
- __NOTE:__ for `use_obj` and `use_obj_on_obj` vanilla functions to work correctly, it is required to call `set_self` twice. - __NOTE:__ for `use_obj` and `use_obj_on_obj` vanilla functions to work correctly, it is required to call `set_self` twice. You can also access the local variables in the script of an object after calling `set_self` twice.
----- -----
##### `void mod_skill_points_per_level(int x)` ##### `void mod_skill_points_per_level(int x)`
+3 -3
View File
@@ -24,7 +24,7 @@
#define VERSION_MAJOR 3 #define VERSION_MAJOR 3
#define VERSION_MINOR 8 #define VERSION_MINOR 8
#define VERSION_BUILD 35 #define VERSION_BUILD 36
#define VERSION_REV 1 #define VERSION_REV 0
#define VERSION_STRING "3.8.35.1" #define VERSION_STRING "3.8.36"