App name:EmueraEM+EE Latest update:2022/10/29
Version:1.824+v16+EMv16fix+EEv25
Developer:Enter
Original Application:Emuera1.824+v16(Developed by 妊）|дﾟ)の中の人 and MinorShift),WebP-wrapper(Developed by JosePineiro)
Contact:Twitter/@eraBEMANI Discord/https://discord.gg/p5rb5uK

※eramaker's dev,MinorShift and 妊の人 were not relate EmueraEE's development.
If you get error please report above addres.

[Merged Emuera.EM in v12. Please read Emuera.EM_readme.txt too.]

[Summary]
・PLAYSOUND "filename.extension"
Once play sound file in "sound" directory.

・STOPSOUND
Stop sound file played by "PLAYSOUND".

・PLAYBGM "filename.extension"
Loop play sound file in "sound" directory.

・STOPBGM
Stop sound file played by "PLAYBGM".

・EXISTSOUND "filename.extension", EXISTSOUND("filename.extension")
Check exist sound file in "sound" directory. If exist will return 1, not exist will return 0.

・SETSOUNDVOLUME int
Change PLAYSOUND's volume. Can change 0 to 100.

・SETBGMVOLUME
Change PLAYBGM's volume. Can change 0 to 100.

These instructions are using Windows Media Player library. I think can play sound files in WMP, Can play in EmueraEE too.

・Can use button notation in "INPUTMOUSEKEY"
If RESULT:0=1(Left click), Button number will set to RESULT:5.

・GDRAWTEXT gID, "text", X, Y
Draw text strings to gID. Can omit X and Y.
This instruction is using brush of set by "GSETBRUSH".
If succeed will set 1 to RESULT:0, width to RESULT:1, height to RESULT:2.

・GGETFONT gID
Get gID's font name set by "GSETFONT".

・GGETFONTSIZE gID
Get gID's font size set by "GSETFONT".

・Can specifying filename and extension in "OUTPUTLOG"
Can specifying output file name and directry by argument. Can omit argument, That case will output "emuera.log".

・EXISTFUNCTION("function name")
Check exist function. If function is exist and normal function will return 1,
Integer user function will return 2, String user function will return 3.
But can't check system function, This case will return 0.

・Can specifying font style in "GSETFONT"
Specifying GSETFONT's fourth argument 4 bit integer(1=bold 2=italic 4=strike 8=underline). Can omit this.

・GGETFONT gID
Get 4 bit integer of gID's font style set by "GSETFONT".

・GGETTEXTSIZE "text", fontname, fontsize, fontstyle(4 bit int)
Return width(RESULT:0) and height(RESULT:1) case of runned GDRAWTEXT with same argument.

・TRYCALLF funtionName
Do CALLF with TRY.

・TRYCALLFORMF functionName
Do CALLFORMF with TRY.

・GDRAWGWITHROTATE destID, srcID, angle, X, Y
Image drawing to destID from srcID with rotate. Can omit X and Y.

・QUIT_AND_RESTART
Quit Emuera and reboot Emuera.

・FORCE_QUIT
Quit Emuera. This instruction is not need click/input.

・FORCE_QUIT_AND_RESTART
Quit and reboot Emuera. This instruction is not need click/input.

・FORCE_BEGIN System function
Force run of BEGIN.

・Now usable WebP files
resources/csv and GCREATEFROMFILE can use WebP files.

・Can assign variable name to ERH variables
Like CSV variables. Using [VariableName].csv(in CSV directory) or [VariableName].ERD(in ERB directory) file.

・GETMEMORYUSAGE()
Return memory usage of Emuera(byte).

・CLEARMEMORY()
Freeing up memory used by Emuera and return freeing memory size(byte).

・COUNT can be set forbid variable in VariableSize.csv
When forbid COUNT variable, Can not use REPEAT too.

・Can assign variable name to DAY, TIME, MONEY
Like other csv variables. Use DAYNAME, TIMENAME, MONEYNAME to access.

・GETTEXTBOX
Get strings froms textbox.

・SETTEXTBOX
Set strings for textbox.

・GETNUM Extension
In order to support multidimensional array ERD, GETNUM can now specify the dimension as the third argument. From left to right: 1,2,3. Note that this is different from the specification (0,1,2) of the function VARSET in the expression.
In addition, an option has been added to specify the dimension of the function VARSET in the expression as 1,2,3 as in ERD.

・ERDNAME variableName, index(, dimension)
Index names can be get numbers like TALENTNAME and CFLAGNAME. Can also be used as a function in an expression. Dimensions are 1,2,3 from left to right.
(Including GETNUM, it does not work if the dimension is specified in a one-dimensional array variable.

・Multilingual support
For more information, please refer to the following links
https://evilmask.gitlab.io/emuera.em.doc/i18n/
Languages can be changed from the options. Currently supports Japanese, English, and Chinese.

・UPDATECHECK
Browse server and check for new version.
1,Write version name(バージョン名) and version infomation URL(バージョン情報URL) to GameBase.csv
2,Upload txt to version detail URL. This txt should contain new version name and latest version's link
3,Do UPDATECHECK, Browse and compare now version and new version. If two are not same, Message box ask open the link for player. If playing latest version, return 0 and quit instruction.
4,If player select "Yes", Open the link and return 2. If player select "No", return 1. If can't open the link, return 3.
　And added new config "Don't allow UPDATECHECK(UPDATECHECKを許可しない)" if this confing is on, Won't run UPDATECHECK and return 4.
　If didn't available network, return 5.


[Usage]
Copy and run on eragames directory.

[License]
Please read Emuera_readme.txt in same directory.
EmueraEE's dev(Enter) don't assert any right.

