# Set Bank Option
Grammar — Set Option option for Bank bank to state|Enabled/Disabled
Flags —Native
|Action
# Arguments
bank
— Bankint
<preset::BankOption> — Optionbool
<preset::Enable_Disable_Option> — State
Returns — void
native void BankOptionSet(bank b, int option, bool enable);
# 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/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13544
BankLoad(libSwaC_gv_zS_ArchiveBankName, 1);
libSwaC_gv_zS_ArchivesBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13761
BankLoad(libSwaC_gv_zS_CampaignBankName, 1);
libSwaC_gv_zS_CampaignBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13933
BankLoad(libSwaC_gv_zS_StoryBankName, 1);
libSwaC_gv_zS_StoryBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18922
BankLoad("ZCampaignStats", 1);
libSwaC_gv_zS_CampaignStatsBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:19304
BankLoad("ZCampaignStats", 1);
libSwaC_gv_zS_CampaignStatsBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:505
}
lv_statisticsBank = BankLastCreated();
BankOptionSet(lv_statisticsBank, c_bankOptionSignature, true);
UserDataLoadType("ScriptedScenes", lv_statisticsBank, "StoryScenes");
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:5872
}
lv_statisticsBank = BankLastCreated();
BankOptionSet(lv_statisticsBank, c_bankOptionSignature, true);
UserDataSaveType("ScriptedScenes", lv_statisticsBank, "StoryScenes");
return true;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7449
}
libVoiC_gv_pC_ArchivesBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3493
BankLoad(libComC_gv_cC_ArchiveBankName, 1);
libComC_gv_cC_ArchivesBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6474
BankLoad(libA3DDD02B_gv_pC_ArchiveBankName, 1);
libA3DDD02B_gv_pC_ArchivesBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6607
BankLoad(libA3DDD02B_gv_pP_CampaignBankName, 1);
libA3DDD02B_gv_pP_CampaignBank = BankLastCreated();
BankOptionSet(BankLastCreated(), c_bankOptionSignature, true);
}