# Bank Exists
Grammar — Bank name exists for player player
Flags —Native
|Function
Returns true if a bank, chosen by the Name parameter, exists for the chosen Player.
# Arguments
string
— Nameint
— Player
Returns — bool
native bool BankExists(string name, int player);
# Related
Category: Bank / Utility
- Remove Bank Backup —
void
— BankBackupRemove - Get Bank Backup Id —
int
— BankBackupGetId - Get Bank Backup Latest Id —
int
— BankBackupGetLatestId - Restore Bank Backup —
void
— BankRestore - Backup Bank —
void
— BankBackup - Bank Exists —
bool
— BankExists - Bank Size As Text —
text
— BankSizeAsText - Bank Name —
string
— BankName - Bank Key Exists —
bool
— BankKeyExists - Bank Key Size As Text —
text
— BankKeySizeAsText - Bank Key Name —
string
— BankKeyName - Bank Key Count —
int
— BankKeyCount - Bank Option —
bool
— BankOptionGet - Bank Player —
int
— BankPlayer - Bank Section Exists —
bool
— BankSectionExists - Bank Section Size As Text —
text
— BankSectionSizeAsText - Bank Section Name —
string
— BankSectionName - Bank Section Count —
int
— BankSectionCount - Bank Value Is Type —
bool
— BankValueIsType - Delete Saved Campaign Banks —
void
— BankDeleteCampaignBanks - Evaluate Bank Condition —
bool
— BankConditionEvaluate - Set Bank Option —
void
— BankOptionSet - Create Bank Section —
void
— BankSectionCreate - Remove Bank —
void
— BankRemove - Remove Bank Key —
void
— BankKeyRemove - Remove Bank Section —
void
— BankSectionRemove - Verify Bank —
bool
— BankVerify
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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/libertystory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13767
// Automatic Variable Declarations
// Implementation
return BankExists(libSwaC_gv_zS_CampaignBankName, 1);
}
campaigns/swarmstory.sc2campaign — base.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.sc2mod — base.sc2data/Lib281DEC45.galaxy:710
// Implementation
if ((BankExists(lib281DEC45_gv_zSS_TransitionBankName, 1) == false)) {
return ;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7637
// Implementation
if ((libVoiC_gf_PC_CampaignInEpilogue() == true)) {
return BankExists(libVoiC_gv_pC_CampaignEpilogueBankName, 1);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7640
}
return BankExists(libVoiC_gv_pC_CampaignLotVBankName, 1);
}
campaigns/voidstory.sc2campaign — base.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.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:1002
// Implementation
if ((BankExists(libVCST_gv_pS_TransitionBankName, 1) == false)) {
return ;
}
mods/challenges.sc2mod — base.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.sc2mod — base.sc2data/LibComC.galaxy:3696
bool libComC_gf_CC_CampaignBankExists () {
// Implementation
return BankExists(libComC_gv_cC_CampaignBankName, 1);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:902
// Implementation
if ((BankExists(libNCST_gv_nS_TransitionBankName, 1) == false)) {
return ;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4777
// Automatic Variable Declarations
// Implementation
return BankExists(libCOOC_gv_cC_CoopBankName, lp_player);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6613
// Automatic Variable Declarations
// Implementation
return BankExists(libA3DDD02B_gv_pP_CampaignBankName, 1);
}