Edits to document about set_self function

Updated version number.
This commit is contained in:
NovaRain
2022-07-02 20:03:21 +08:00
parent 08f19e63e1
commit 0b3be17839
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
;sfall configuration settings
;v4.3.5.1
;v4.3.6
[Main]
;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash
+3 -3
View File
@@ -1826,10 +1826,10 @@
doc: |
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.
- Will revert back 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.
- `self_obj` will be reverted to its original value after the next function call.
- 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`.
- __NOTE:__ for `use_obj`, `use_obj_on_obj` vanilla functions to work correctly, it is required to call `set_self` twice.
- __NOTE:__ for `use_obj`, `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.
opcode: 0x8206
- name: set_dude_obj
detail: void set_dude_obj(ObjectPtr critter)
+3 -3
View File
@@ -184,10 +184,10 @@ FUNCTION REFERENCE
##### `void set_self(int obj)`
- 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.
- `self_obj` will revert back 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.
- `self_obj` will be reverted to its original value after the next function call.
- 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`.
- __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)`
+3 -3
View File
@@ -24,7 +24,7 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 3
#define VERSION_BUILD 5
#define VERSION_REV 1
#define VERSION_BUILD 6
#define VERSION_REV 0
#define VERSION_STRING "4.3.5.1"
#define VERSION_STRING "4.3.6"