mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Edits to document about set_self function
Updated version number.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)`
|
||||
|
||||
Reference in New Issue
Block a user