Updated NPC combat control mod to be able to automatically set the number for the notification box.

Updated item highlighting mod to also be disabled while in the barter screen.
This commit is contained in:
NovaRain
2019-02-20 21:26:23 +08:00
parent 99664dfa8a
commit 36e3a2bd5f
6 changed files with 52 additions and 25 deletions
+4 -4
View File
@@ -10,21 +10,21 @@
variable ini := "sfall-mods.ini";
variable translationIni;
// Gets the integer value from ddraw.ini
// Gets the integer value from ini
procedure GetConfig(variable section, variable key, variable def) begin
variable val := get_ini_setting(ini + "|" + section + "|" + key);
if val == -1 then val := def;
return val;
end
// Gets the string value from ddraw.ini
// Gets the string value from ini
procedure GetConfigStr(variable section, variable key, variable def) begin
variable val := get_ini_string(ini + "|" + section + "|" + key);
if val == -1 or val == "" then val := def;
return val;
end
// Gets the value from ddraw.ini as a temp array of strings
// Gets the value from ini as a temp array of strings
procedure GetConfigList(variable section, variable key) begin
variable val := get_ini_string(ini + "|" + section + "|" + key);
if val == -1 or val == "" then return [];
@@ -32,7 +32,7 @@ procedure GetConfigList(variable section, variable key) begin
return string_split(val, ",");
end
// Gets the value from ddraw.ini as a temp array of ints
// Gets the value from ini as a temp array of ints
procedure GetConfigListInt(variable section, variable key) begin
variable arr, i, item;