-
-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Daniel Wong edited this page Nov 28, 2017
·
24 revisions
Welcome to the umineko-answer wiki!
Script Reference
These functions are used when images are language dependent. For example below:
;note: refer to the other functions in the script as they are slightly different.
*setLangString
getparam $witchh5, $witchh6
mov $witchh4, ":b"
add $witchh4, $witchh6
notif %cur_language = 1 jumpf
add $witchh4, ";"
~
notif %cur_language = 0 jumpf
add $witchh4, ";en\"
~
add $witchh4, $witchh5
return
The function adds ':b' to the string and the second parameter (usually just an empty string), then it adds either ";" for Japanese lines or ';en' for English lines. Finally it adds the first input parameter to get something like :b;BMP\background\efe\oct_4_1986.png
for the call setLangString "BMP\background\efe\oct_4_1986.png", ""
(usually a stralias is used).
Note that the stralias passed to this function is expected NOT to contain the ':b', and it is expected that there are two copies of the image - one in the root directory (japanese version) and one in the 'en' directory (english version)