You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: artifacts/scripting/functions.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -958,7 +958,7 @@
958
958
doc: |
959
959
Takes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party.
960
960
- This function ignores the player's minimum level and the required number of level-ups between NPC level gains. It also ignores the random element, regardless of sfall's `NPCAutoLevel` or `PartyMemberNonRandomLevelUp` setting.
961
-
- Starting from sfall 4.4.10/3.8.50, the maximum possible NPC level is 10.
961
+
- Starting from sfall 4.5/3.8.50, the maximum possible NPC level is 10.
962
962
- name: get_npc_level
963
963
detail: int get_npc_level(string npc)
964
964
opcode: 0x8241
@@ -1503,7 +1503,7 @@
1503
1503
- __NOTE:__ if the msg file does not exist in the current language directory, the function will try to load it from the `text\English\game\` directory.
1504
1504
1505
1505
Alternative form: `int add_extra_msg_file(string fileName, int fileNumber)` **[DEPRECATED]**
1506
-
- __Deprecation notice:__ Starting from sfall 4.4.10/3.8.50, the two-argument form is deprecated. The `fileNumber` argument is ignored, and the function behaves the same as the one-argument form.
1506
+
- __Deprecation notice:__ Starting from sfall 4.5/3.8.50, the two-argument form is deprecated. The `fileNumber` argument is ignored, and the function behaves the same as the one-argument form.
1507
1507
macro: sfall.h
1508
1508
1509
1509
- name: void sfall_func0("remove_timer_event")
@@ -2086,7 +2086,7 @@
2086
2086
- items with unique IDs will not stack with other items of the same type in the inventory
2087
2087
- to just get the current ID number of an object, use `get_object_data(object, OBJ_DATA_ID)`
2088
2088
- unique ID numbers are saved in your savegame, and have a range from 0x10000000 to 0x7FFFFFFF
2089
-
- there is also a unique ID number range for the player and party members from 18000 to 83535
2089
+
- there is also a unique ID number range for the player and party members from 18000 to 16795215
2090
2090
- 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
Copy file name to clipboardExpand all lines: artifacts/scripting/sfall function notes.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ FUNCTION REFERENCE
120
120
#### `void inc_npc_level(int pid/string name)`
121
121
- Takes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party.
122
122
- This function ignores the player's minimum level and the required number of level-ups between NPC level gains. It also ignores the random element, regardless of sfall's **NPCAutoLevel** or **PartyMemberNonRandomLevelUp** setting.
123
-
- Starting from sfall 4.4.10/3.8.50, the maximum possible NPC level is 10.
123
+
- Starting from sfall 4.5/3.8.50, the maximum possible NPC level is 10.
- Items with unique IDs will not stack with other items of the same type in the inventory
832
832
- To just get the current ID number of an object, use `sfall_func2("get_object_data", object, OBJ_DATA_ID)`
833
833
- Unique ID numbers are saved in your savegame, and have a range from `0x10000000` to `0x7FFFFFFF`
834
-
- There is also a unique ID number range for the player and party members from 18000 to 83535
834
+
- There is also a unique ID number range for the player and party members from 18000 to 16795215
835
835
- 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
- Loads a custom message file and returns the file ID number assigned to it, in the range of `0x3000` to `0x3FFF`, for use with the `message_str_game` function
866
866
-`fileName`: the name of the custom message file (including the **.msg** extension) in the `text\<language>\game\` directory
867
867
-__NOTE:__ if the msg file does not exist in the current language directory, the function will try to load it from the `text\English\game\` directory
868
-
-__Deprecation notice:__ Starting from sfall 4.4.10/3.8.50, the two-argument form is deprecated. The `fileNumber` argument is ignored, and the function behaves the same as the one-argument form.
868
+
-__Deprecation notice:__ Starting from sfall 4.5/3.8.50, the two-argument form is deprecated. The `fileNumber` argument is ignored, and the function behaves the same as the one-argument form.
0 commit comments