Updated the site doc as well

This commit is contained in:
NovaRain
2021-10-03 09:56:44 +08:00
parent e725445ce9
commit 113324097c
+9
View File
@@ -1901,3 +1901,12 @@
- there is also a unique ID number range for the player and party members from 18000 to 83535 - 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 - 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 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