Added new game mode COUNTERWIN.

Improved add_extra_msg_file function to use "English" as the fallback
language for loading msg files (#256)
This commit is contained in:
NovaRain
2019-08-17 20:44:41 +08:00
parent 2dfbe903e7
commit 2b93bf6045
8 changed files with 41 additions and 13 deletions
@@ -613,6 +613,7 @@ optional arguments:
> int sfall_func2("add_extra_msg_file", string fileName, int fileNumber)
- loads the custom message file, and returns the file ID number assigned to it in range from 0x3000 to 0x3FFF for the message_str_game function to get messages from the file
- fileName: the name of the custom message file (including the .msg extension) in "text\<language>\game\" directory
- NOTE: if the msg file does not exist in the current language directory, the function will try to load it from "text\English\game\" directory
optional argument:
- fileNumber: the file ID number for the message_str_game function. The available range is from 0x2000 to 0x2FFF (see ExtraGameMsgFileList setting in ddraw.ini)
use fileNumber only if you want to add a message file without editing ddraw.ini or existing scripts to support the old way