diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index ea42d79..a8cfa5c 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -56,9 +56,9 @@ POSITION = 0 LEAVE = False # Dialogue / Scroll -CODE401 = True -CODE405 = True -CODE408 = True +CODE401 = False +CODE405 = False +CODE408 = False # Choices CODE102 = False @@ -71,7 +71,7 @@ CODE101 = False # Other CODE355655 = False -CODE357 = False +CODE357 = True CODE657 = False CODE356 = False CODE320 = False @@ -1123,8 +1123,8 @@ def searchCodes(page, pbar, fillList, filename): ## Event Code: 357 [Picture Text] [Optional] if codeList[i]['code'] == 357 and CODE357 is True: - if 'text' in codeList[i]['parameters'][3]: - jaString = codeList[i]['parameters'][3]['text'] + if 'TorigoyaMZ_NotifyMessage' in codeList[i]['parameters'][0]: + jaString = codeList[i]['parameters'][3]['message'] if not isinstance(jaString, str): continue @@ -1158,7 +1158,7 @@ def searchCodes(page, pbar, fillList, filename): translatedText = textwrap.fill(translatedText, width=WIDTH) # Set Data - codeList[i]['parameters'][3]['text'] = startString + translatedText + codeList[i]['parameters'][3]['message'] = startString + translatedText ## Event Code: 657 [Picture Text] [Optional] if codeList[i]['code'] == 657 and CODE657 is True: diff --git a/prompt.example b/prompt.example index db07a56..2d27de7 100644 --- a/prompt.example +++ b/prompt.example @@ -8,7 +8,7 @@ Step 1 - Receive Text You will be given multiple lines of text (Denoted by XML tags). Translate each line separately and avoid combining or omitting any. Step 2 - Output Text -You output only the English translation of each line and its speaker. For example: +You output only the English translation of each line. For example: `Line 0 English Translation` `Line 1 English Translation` `Line 2 English Translation` @@ -22,9 +22,10 @@ Notes: - Leave 'Placeholder Text' as is and include it in your response. - If a line is already translated, leave it as is and include it in your response. - Denote speakers with ':' if given. For example `Speaker: "Spoken Text"` -- If the speaker is '???' then they are unknown so leave it as is. - Pay attention to the gender of the subjects and characters. Avoid misgendering characters. - Maintain any spacing in the translation. -- Maintain any code in brackets if given. +- Maintain any code text in brackets if given. (e.g `[Color_0]`, `[Ascii_0]`, etc) - Never include any notes, explanations, dislaimers, or anything similar in your response. -- Maintain Japanese Honorifics. For example: 'サクラねえちゃん' == 'Sakura Onee-san' +- Maintain Japanese Honorifics. +- `...` can be a part of the dialogue. Translate it as it is. +- Do not include a speaker if there isn't one in the original line of text. \ No newline at end of file