# Remove Bank
Grammar — Remove bank bank
Flags —Native
|Action
Removes the bank from the cache and no longer allows values to be written to it.
# Arguments
bank
— Bank
Returns — void
native void BankRemove(bank b);
# 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:17555
}
BankRemove(gv_transitionalBank);
gv_transitionalBank = null;
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17555
}
BankRemove(gv_transitionalBank);
gv_transitionalBank = null;
return true;
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:10919
libCamp_gf_TS_LoadTransitionVars(libCamp_gv_tS_DebugProgressBank, false);
BankRemove(libCamp_gv_tS_DebugProgressBank);
libCamp_gv_tS_DebugProgressBank = null;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12653
libSwaC_gf_ZS_UpdateTechStates(1);
libSwaC_gf_ZS_ApplyTech(1);
BankRemove(libSwaC_gv_zS_StorySimulationOriginalBank);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:15060
libSwaC_gf_ZS_UpdateKerriganType();
libSwaC_gf_ZS_RecalculateKerriganXP();
BankRemove(libSwaC_gv_zS_DebugProgressBank);
libSwaC_gv_zS_DebugProgressBank = null;
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:5913
if ((lib281DEC45_gv_zSS_TransitionBank != null)) {
BankRemove(lib281DEC45_gv_zSS_TransitionBank);
lib281DEC45_gv_zSS_TransitionBank = null;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1355
libVoiC_gf_PC_LoadTransitionVars(libVoiC_gv_pC_DebugProgressBank, null);
libVoiC_gf_PC_SetCurrentMap("ZStoryLab");
BankRemove(libVoiC_gv_pC_DebugProgressBank);
libVoiC_gv_pC_DebugProgressBank = null;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8049
libVoiC_gf_PC_UpdateTechStates(1);
libVoiC_gf_PC_ApplyTech(1);
BankRemove(libVoiC_gv_pS_StorySimulationOriginalBank);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:569
libVoiC_gf_PC_LoadTransitionVars(libVCST_gv_pS_DebugStoryBank, null);
BankRemove(libVCST_gv_pS_DebugStoryBank);
libVCST_gv_pS_DebugStoryBank = null;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:5047
if ((libVCST_gv_pS_TransitionBank != null)) {
BankRemove(libVCST_gv_pS_TransitionBank);
libVCST_gv_pS_TransitionBank = null;
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3954
libComC_gf_CC_ApplyTech(1);
libComC_gv_cC_StorySimulationMission = null;
BankRemove(libComC_gv_cC_StorySimulationOriginalBank);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:511
libComC_gf_CC_TransitionLoadBankVars(libNCST_gv_nS_DebugStoryBank, null);
BankRemove(libNCST_gv_nS_DebugStoryBank);
libNCST_gv_nS_DebugStoryBank = null;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:4408
if ((libNCST_gv_nS_TransitionBank != null)) {
BankRemove(libNCST_gv_nS_TransitionBank);
libNCST_gv_nS_TransitionBank = null;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:1124
libComC_gf_CC_TransitionLoadBankVars(libNovC_gv_NC_DebugProgressBank, null);
libComC_gf_CC_MapSetCurrent("NStory01");
BankRemove(libNovC_gv_NC_DebugProgressBank);
libNovC_gv_NC_DebugProgressBank = null;
}