diff --git a/artifacts/scripting/functions.yml b/artifacts/scripting/functions.yml index 91d48ba3..9edd26c9 100644 --- a/artifacts/scripting/functions.yml +++ b/artifacts/scripting/functions.yml @@ -1901,3 +1901,12 @@ - there is also a unique ID number range for the player and party members from 18000 to 83535 - to assign a new ID number generated by the engine to the object (i.e. unassign a unique ID), call the function with two arguments and pass -1 for the flag argument macro: sfall.h + + - name: set_scr_name + detail: void set_scr_name(string name) + doc: | + Overrides the name of the script object that was set from `scrname.msg`. + - The changed name will be reset each time the player leaves the map or reloads the game + - Passing an empty string ("") to the `name` argument or omitting it will allow the game to get the name for the object from pro_*.msg files + - __NOTE:__ this function is intended for use in normal game scripts + macro: sfall.h