#ifdef MEDIA042_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
void F0410_MENUS_PrintSpellFailureMessage(
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
P0790_ps_Champion, P0791_ui_FailureType, P0792_ui_SkillIndex)
#endif
CHAMPION* P0790_ps_Champion           SEPARATOR
unsigned int16_t P0791_ui_FailureType SEPARATOR
unsigned int16_t P0792_ui_SkillIndex  FINAL_SEPARATOR
{
#ifdef MEDIA724_I34E_I34M_A36M_A31M_A33M_A35E_A35M
        REGISTER char* L3021_pc_MessagePrefix;
#endif
        REGISTER char* L1264_pc_Message;


#ifdef MEDIA020_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB
        if (P0792_ui_SkillIndex > C03_SKILL_WIZARD) {
#ifdef MEDIA062_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_X30J
                 P0792_ui_SkillIndex = (P0792_ui_SkillIndex - 4) / 4;
#endif
#ifdef MEDIA489_F20E_F20J_P20JA_P20JB
                 P0792_ui_SkillIndex = (P0792_ui_SkillIndex - 4) / 2 / 2;
#endif
        }
#endif
#ifdef MEDIA027_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB_A31E_F31E_F31J_X31J_P31J
        F0051_TEXT_MESSAGEAREA_PrintLineFeed();
#endif
#ifdef MEDIA689_F31J_X31J_P31J
        if (P0791_ui_FailureType == C11_FAILURE_NEEDS_MAGIC_MAP_IN_HAND) {
                F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, "この呪文には");
        }
#endif
#ifdef MEDIA059_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_A31E_F31E
        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, P0790_ps_Champion->Name);
#endif
#ifdef MEDIA571_F20J_X30J_P20JA_P20JB_F31J_X31J_P31J
        F0819_TEXT_MESSAGEAREA_PrintMessageAsJapanese(C04_COLOR_CYAN, P0790_ps_Champion->Name);
#endif
        switch (P0791_ui_FailureType) {
                case C00_FAILURE_NEEDS_MORE_PRACTICE:
#ifdef MEDIA720_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
                        if (P0792_ui_SkillIndex > C03_SKILL_WIZARD) {
#ifdef MEDIA749_A36M_A31E_A31M_A33M_A35E_A35M_X31J
                                 P0792_ui_SkillIndex = (P0792_ui_SkillIndex - 4) / 4;
#endif
#ifdef MEDIA712_I34E_I34M_F31E_F31J_P31J
                                 P0792_ui_SkillIndex = (P0792_ui_SkillIndex - 4) / 2 / 2;
#endif
                        }
#endif
#ifdef MEDIA191_S10EA_S10EB_S11E_S12E_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A21E_A22E /* CHANGE4_00_LOCALIZATION Translation to German language  CHANGE7_07_LOCALIZATION Translation to English language (differences with original Dungeon Master) */
                        L1264_pc_Message = " NEEDS MORE PRACTICE WITH THIS ";
#endif
#ifdef MEDIA003_S10EA_S10EB_S11E_S12E /* CHANGE4_00_LOCALIZATION Translation to German language */
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, L1264_pc_Message);
#endif
#ifdef MEDIA286_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A21E_A22E_F20E_A31E_F31E /* CHANGE4_00_LOCALIZATION Translation to German language  CHANGE7_07_LOCALIZATION Translation to English language (differences with original Dungeon Master) */
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, " NEEDS MORE PRACTICE WITH THIS "); /* BUG0_01 Coding error without consequence. String litteral used instead of variable L1264_pc_Message. No consequence because the strings are identical */
#endif
#ifdef MEDIA195_S10EA_S10EB_S11E_S12E_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A21E_A22E_F20E_A31E_F31E /* CHANGE4_00_LOCALIZATION Translation to German language  CHANGE7_07_LOCALIZATION Translation to English language (differences with original Dungeon Master) */
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, G0417_apc_BaseSkillNames[P0792_ui_SkillIndex]);
                        L1264_pc_Message = " SPELL.";
#endif
#ifdef MEDIA255_S12G_A20G_A22G /* CHANGE4_00_LOCALIZATION Translation to German language */
                        L1264_pc_Message = " BRAUCHT MEHR UEBUNG MIT DIESEM ";
#ifdef MEDIA252_S12G
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, L1264_pc_Message);
#endif
#ifdef MEDIA446_A20G_A22G
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, " BRAUCHT MEHR UEBUNG MIT DIESEM "); /* BUG0_01 Coding error without consequence. String litteral used instead of variable L1264_pc_Message. No consequence because the strings are identical */
#endif
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, G0417_apc_BaseSkillNames[P0792_ui_SkillIndex]);
                        L1264_pc_Message = " ZAUBERSPRUCH.";
#endif
#ifdef MEDIA261_S13FA_S13FB_A20F /* CHANGE5_00_LOCALIZATION Translation to French language */
                        L1264_pc_Message = " DOIT PRATIQUER DAVANTAGE SON ";
                        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, " DOIT PRATIQUER DAVANTAGE SON "); /* BUG0_01 Coding error without consequence. String litteral used instead of variable L1264_pc_Message. No consequence because the strings are identical */
                        if (P0792_ui_SkillIndex == C03_SKILL_WIZARD) { /* French version does not use the same word for Wizard and Priest spells */
                                L1264_pc_Message = "ENVOUTEMENT.";
                        } else {
                                L1264_pc_Message = "EXORCISME.";
                        }
#endif
#ifdef MEDIA573_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31M_A33M_A35E_A35M_F31J_X31J_P31J
                        if (P0792_ui_SkillIndex == C03_SKILL_WIZARD) {
#ifdef MEDIA569_F20J_X30J_P20JA_P20JB
                                L1264_pc_Message = "は､経験不足で魔術師の呪文を唱えられない";
#endif
#ifdef MEDIA689_F31J_X31J_P31J
                                L1264_pc_Message = "は､経験不足で|魔術師の呪文を唱えられない";
#endif
#ifdef MEDIA732_I34E_A35E
                                L3021_pc_MessagePrefix = "";
                                L1264_pc_Message = " NEEDS MORE PRACTICE WITH THIS WIZARD SPELL.";
#endif
#ifdef MEDIA736_I34M_A36M_A31M_A33M_A35M
                                L3021_pc_MessagePrefix = F0758_TranslateLanguage(C51_TEXT);
                                L1264_pc_Message = F0758_TranslateLanguage(C52_TEXT);
#endif
                        } else {
#ifdef MEDIA569_F20J_X30J_P20JA_P20JB
                                L1264_pc_Message = "は､経験不足で僧侶の呪文を唱えられない";
#endif
#ifdef MEDIA689_F31J_X31J_P31J
                                L1264_pc_Message = "は､経験不足で|僧侶の呪文を唱えられない";
#endif
#ifdef MEDIA732_I34E_A35E
                                L3021_pc_MessagePrefix = "";
#ifdef PC_FIX_CODE_SIZE
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
#endif
                                L1264_pc_Message = " NEEDS MORE PRACTICE WITH THIS PRIEST SPELL.";
#endif
#ifdef MEDIA736_I34M_A36M_A31M_A33M_A35M
                                L3021_pc_MessagePrefix = F0758_TranslateLanguage(C53_TEXT);
#ifdef PC_FIX_CODE_SIZE
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
        P0792_ui_SkillIndex++;
#endif
                                L1264_pc_Message = F0758_TranslateLanguage(C54_TEXT);
#endif
                        }
#endif
                        break;
                case C01_FAILURE_MEANINGLESS_SPELL:
#ifdef MEDIA732_I34E_A35E
                        L3021_pc_MessagePrefix = "";
#endif
#ifdef MEDIA196_S10EA_S10EB_S11E_S12E_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A21E_A22E_F20E_I34E_A31E_A35E_F31E /* CHANGE4_00_LOCALIZATION Translation to German language */
                        L1264_pc_Message = " MUMBLES A MEANINGLESS SPELL.";
#endif
#ifdef MEDIA255_S12G_A20G_A22G /* CHANGE4_00_LOCALIZATION Translation to German language */
                        L1264_pc_Message = " MURMELT EINEN SINNLOSEN ZAUBERSPRUCH.";
#endif
#ifdef MEDIA261_S13FA_S13FB_A20F /* CHANGE5_00_LOCALIZATION Translation to French language */
                        L1264_pc_Message = " MARMONNE UNE CONJURATION IMCOMPREHENSIBLE.";
#endif
#ifdef MEDIA569_F20J_X30J_P20JA_P20JB
                        L1264_pc_Message = "が唱えた呪文には効力なし";
#endif
#ifdef MEDIA689_F31J_X31J_P31J
                        L1264_pc_Message = "が唱えた呪文には|効力なし";
#endif
#ifdef MEDIA736_I34M_A36M_A31M_A33M_A35M
                        L3021_pc_MessagePrefix = F0758_TranslateLanguage(C55_TEXT);
                        L1264_pc_Message = F0758_TranslateLanguage(C56_TEXT);
#endif
                        break;
                case C10_FAILURE_NEEDS_FLASK_IN_HAND:
#ifdef MEDIA732_I34E_A35E
                        L3021_pc_MessagePrefix = "";
#endif
#ifdef MEDIA196_S10EA_S10EB_S11E_S12E_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A21E_A22E_F20E_I34E_A31E_A35E_F31E /* CHANGE4_00_LOCALIZATION Translation to German language */
                        L1264_pc_Message = " NEEDS AN EMPTY FLASK IN HAND FOR POTION.";
#endif
#ifdef MEDIA255_S12G_A20G_A22G /* CHANGE4_00_LOCALIZATION Translation to German language */
                        L1264_pc_Message = " MUSS FUER DEN TRANK EINE LEERE FLASCHE BEREITHALTEN.";
#endif
#ifdef MEDIA261_S13FA_S13FB_A20F /* CHANGE5_00_LOCALIZATION Translation to French language */
                        L1264_pc_Message = " DOIT AVOIR UN FLACON VIDE EN MAIN POUR LA POTION.";
#endif
#ifdef MEDIA569_F20J_X30J_P20JA_P20JB
                        L1264_pc_Message = "は水薬を入れる空のﾌﾗｽｺが必要";
#endif
#ifdef MEDIA689_F31J_X31J_P31J
                        L1264_pc_Message = "は|水薬を入れる空のﾌﾗｽｺが必要";
#endif
#ifdef MEDIA736_I34M_A36M_A31M_A33M_A35M
                        L3021_pc_MessagePrefix = F0758_TranslateLanguage(C57_TEXT);
                        L1264_pc_Message = F0758_TranslateLanguage(C58_TEXT);
#endif
#ifdef MEDIA629_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
                        break;
                case C11_FAILURE_NEEDS_MAGIC_MAP_IN_HAND:
#ifdef MEDIA739_A35E
                        L3021_pc_MessagePrefix = "";
#endif
#ifdef MEDIA646_A31E_A35E_F31E
                        L1264_pc_Message = " NEEDS A MAGIC MAP IN ACTION HAND FOR THIS SPELL.";
#endif
#ifdef MEDIA689_F31J_X31J_P31J
                        L1264_pc_Message = "のｱｸｼｮﾝ|ﾊﾝﾄﾞに魔法の地図が必要";
#endif
#ifdef MEDIA658_A31M_A33M_A35M
                        L3021_pc_MessagePrefix = F0758_TranslateLanguage(C59_TEXT);
                        L1264_pc_Message = F0758_TranslateLanguage(C60_TEXT);
#endif
#endif
        }
#ifdef MEDIA724_I34E_I34M_A36M_A31M_A33M_A35E_A35M
        F0051_TEXT_MESSAGEAREA_PrintLineFeed();
        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, L3021_pc_MessagePrefix);
        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, P0790_ps_Champion->Name);
#endif
        F0047_TEXT_MESSAGEAREA_PrintMessage(C04_COLOR_CYAN, L1264_pc_Message);
}
#endif
