# Bank Exists

Grammar — Bank name exists for player player
FlagsNative | Function

Returns true if a bank, chosen by the Name parameter, exists for the chosen Player.

# Arguments

  • string — Name
  • int — Player

Returns — bool

native bool BankExists(string name, int player);

Category: Bank / Utility

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4618


    // Implementation
    lv_bankExist = BankExists(gv_transitionalBankName, 1);
    TriggerDebugOutput(1, (StringExternal("Param/Value/668D2572") + libNtve_gf_ConvertBooleanToText(lv_bankExist)), false);
    if ((lv_bankExist == false)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:896


    // Implementation
    if ((BankExists(gv_tUTORIALBANKPATH, gv_p01_USER) == false)) {
        gf_SetTutorialCompleted(1, false, false);
        gf_SetTutorialCompleted(5, false, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4618


    // Implementation
    lv_bankExist = BankExists(gv_transitionalBankName, 1);
    TriggerDebugOutput(1, (StringExternal("Param/Value/668D2572") + libNtve_gf_ConvertBooleanToText(lv_bankExist)), false);
    if ((lv_bankExist == false)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:896


    // Implementation
    if ((BankExists(gv_tUTORIALBANKPATH, gv_p01_USER) == false)) {
        gf_SetTutorialCompleted(1, false, false);
        gf_SetTutorialCompleted(5, false, false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8512


    // Implementation
    if ((BankExists(libCamp_gv_tS_BankName, 1) == true)) {
        libCamp_gf_TS_OpenCampaignBank();
        libCamp_gf_TS_LoadTransitionVars(BankLastCreated(), false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9405

        if ((libCamp_gv_tS_MissionBanks[(lv_indexMission)] == null)) {
            lv_bankName = libCamp_gf_TS_MissionBankName(lv_indexMission);
            lv_bankExist = BankExists(lv_bankName, 1);
            if ((lv_indexMission == libCamp_gv_tS_CurrentMap)) {
                BankLoad(lv_bankName, 1);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13767

    // Automatic Variable Declarations
    // Implementation
    return BankExists(libSwaC_gv_zS_CampaignBankName, 1);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13963

    // Implementation
    TriggerDebugOutput(1, StringExternal("Param/Value/lib_SwaC_E5F4FB75"), false);
    if ((BankExists(lv_bankName, 1) == false)) {
        TriggerDebugOutput(1, StringExternal("Param/Value/lib_SwaC_0CD7A93F"), false);
        return ;

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:710


    // Implementation
    if ((BankExists(lib281DEC45_gv_zSS_TransitionBankName, 1) == false)) {
        return ;
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7637

    // Implementation
    if ((libVoiC_gf_PC_CampaignInEpilogue() == true)) {
        return BankExists(libVoiC_gv_pC_CampaignEpilogueBankName, 1);
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7640

    }

    return BankExists(libVoiC_gv_pC_CampaignLotVBankName, 1);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7862

    // Implementation
    TriggerDebugOutput(1, StringExternal("Param/Value/lib_VoiC_12C40E9E"), false);
    if ((BankExists(lv_bankName, 1) == false)) {
        TriggerDebugOutput(1, StringExternal("Param/Value/lib_VoiC_55D097EB"), false);
        return ;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:1002


    // Implementation
    if ((BankExists(libVCST_gv_pS_TransitionBankName, 1) == false)) {
        return ;
    }

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:1842

    // Implementation
    libChal_gf_CHL_InitChallengeBank();
    if ((BankExists(libChal_gv_cHLC_BANKNAME, 1) == true) && (libChal_gv_cHL_DefaultChallengeBank != null)) {
        return BankValueGetAsInt(libChal_gv_cHL_DefaultChallengeBank, libChal_gf_ChallengeName(lp_challengeType), libChal_gv_cHLC_KEYAWARD);
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:3696

bool libComC_gf_CC_CampaignBankExists () {
    // Implementation
    return BankExists(libComC_gv_cC_CampaignBankName, 1);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:902


    // Implementation
    if ((BankExists(libNCST_gv_nS_TransitionBankName, 1) == false)) {
        return ;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:4777

    // Automatic Variable Declarations
    // Implementation
    return BankExists(libCOOC_gv_cC_CoopBankName, lp_player);
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6613

    // Automatic Variable Declarations
    // Implementation
    return BankExists(libA3DDD02B_gv_pP_CampaignBankName, 1);
}