From 0b3be178395df659b205b3cbf0505426dd514efa Mon Sep 17 00:00:00 2001 From: NovaRain Date: Sat, 2 Jul 2022 20:03:21 +0800 Subject: [PATCH] Edits to document about set_self function Updated version number. --- artifacts/ddraw.ini | 2 +- artifacts/scripting/functions.yml | 6 +++--- artifacts/scripting/sfall function notes.md | 6 +++--- sfall/version.h | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index 9cf57ad3..2a63d09c 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -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 diff --git a/artifacts/scripting/functions.yml b/artifacts/scripting/functions.yml index 43c58a52..fc464c06 100644 --- a/artifacts/scripting/functions.yml +++ b/artifacts/scripting/functions.yml @@ -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) diff --git a/artifacts/scripting/sfall function notes.md b/artifacts/scripting/sfall function notes.md index 1339b18b..b18910d8 100644 --- a/artifacts/scripting/sfall function notes.md +++ b/artifacts/scripting/sfall function notes.md @@ -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)` diff --git a/sfall/version.h b/sfall/version.h index 089970d2..8b760826 100644 --- a/sfall/version.h +++ b/sfall/version.h @@ -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"