# Load Integer Value
Grammar — Load key of section section from bank bank as integer value
Flags —Native
|Function
Returns an Integer value contained in the chosen Bank at the specified Key of the specified Section.
# Arguments
bank
— Bankstring
— Sectionstring
— Key
Returns — int
native int BankValueGetAsInt(
bank b,
string section,
string key,
);
# Related
Category: [Bank / Store & Load](/galaxy/reference#bank-store &-load)
- [F] —
void
— Store Boolean — ( BankValueSetFromFlag ) - [F] —
void
— Store Integer — ( BankValueSetFromInt ) - [F] —
void
— Store Point — ( BankValueSetFromPoint ) - [F] —
void
— Store Real — ( BankValueSetFromFixed ) - [F] —
void
— Store String — ( BankValueSetFromString ) - [F] —
void
— Store Text — ( BankValueSetFromText ) - [F] —
void
— Store Unit — ( BankValueSetFromUnit ) - [F] —
bool
— Load Boolean Value — ( BankValueGetAsFlag ) - [F] —
int
— Load Integer Value — ( BankValueGetAsInt ) - [F] —
point
— Load Point Value — ( BankValueGetAsPoint ) - [F] —
fixed
— Load Real Value — ( BankValueGetAsFixed ) - [F] —
string
— Load String Value — ( BankValueGetAsString ) - [F] —
text
— Load Text Value — ( BankValueGetAsText ) - [F] —
unit
— Restore Unit — ( BankValueGetAsUnit ) - [F] —
unit
— Last Restored Unit — ( BankLastRestoredUnit )
# Examples
# campaigns/liberty.sc2campaign
// L4628
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("CurrentRoom"))
// L4641
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ABChoice"))
// L4643
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ABChoiceDifficulty"))
// L4645
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ResearchConvertedProtoss"))
// L4646
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ResearchConvertedZerg"))
// L15408
BankValueGetAsInt(BankLastCreated(), "DebugCinematicShow", "Value")
// L4628
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("CurrentRoom"))
// L4641
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ABChoice"))
// L4643
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ABChoiceDifficulty"))
// L4645
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ResearchConvertedProtoss"))
// L4646
BankValueGetAsInt(BankLastCreated(), lv_section, gf_TransitionalBankKey("ResearchConvertedZerg"))
// L15408
BankValueGetAsInt(BankLastCreated(), "DebugCinematicShow", "Value")
# campaigns/libertystory.sc2campaign
// L8717
BankValueGetAsInt(lp_bank, lp_section, lp_key)
// L8987
BankValueGetAsInt(lp_sourceBank, lv__SectionName, IntToString(0))
# campaigns/swarmstory.sc2campaign
// L13991
BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionA)))
// L13997
BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionB)))
// L14033
BankValueGetAsInt(lp_bank, lp_section, lp_key)
# campaigns/swarmstoryutil.sc2mod
// L468
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character))
// L470
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character))
// L472
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character))
// L491
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character))
// L600
BankValueGetAsInt(libSwaC_gf_StoryBank(), ("WriterStateSnapshot"), (lv_indexState))
// L718
BankValueGetAsInt(BankLastCreated(), lv__SectionName, "CurrentRoom")
# campaigns/void.sc2campaign
// L2448
BankValueGetAsInt(gv_tutorialBankSave, "General", "Progress")
// L2448
BankValueGetAsInt(gv_tutorialBankSave, "General", "Progress")
# campaigns/voidstory.sc2campaign
// L7890
BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionA)))
// L7896
BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionB)))
// L7938
BankValueGetAsInt(lp_bank, lp_section, lp_key)
# campaigns/voidstory.sc2campaign
// L696
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_indexClickable))
// L700
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_indexClickable))
// L1009
BankValueGetAsInt(BankLastCreated(), lv__SectionName, "CurrentRoom")
# mods/challenges.sc2mod
// L1843
BankValueGetAsInt(libChal_gv_cHL_DefaultChallengeBank, libChal_gf_ChallengeName(lp_challengeType), libChal_gv_cHLC_KEYAWARD)
# mods/heroesdata.stormmod
// L10697
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueHeroIndex")
// L10697
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueSkinIndex")
// L10697
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueMountIndex")
// L10698
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueHeroIndex")
// L10699
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueSkinIndex")
// L10700
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueMountIndex")
// L10723
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueHeroIndex")
// L10723
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueSkinIndex")
// L10723
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "Debug Menu Options", "TrueMountIndex")
// L12648
BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "MapPlayCounts", libCore_gv_mAPMapStringID)
# mods/heroesdata.stormmod
// L2982
BankValueGetAsInt(lp_bank, lp_section, lp_key)
# mods/heroesdata.stormmod
— StartingExperienceLib.galaxy
// L2472
BankValueGetAsInt(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey)
// L2493
BankValueGetAsInt(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey)
# mods/missionpacks/campaigncommon.sc2mod
// L3852
BankValueGetAsInt(lp_bank, lp_section, lp_key)
# mods/missionpacks/novacampaign.sc2mod
// L618
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_indexClickable))
// L622
BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_indexClickable))
// L909
BankValueGetAsInt(BankLastCreated(), lv__SectionName, "CurrentRoom")
# mods/starcoop/starcoop.sc2mod
// L4809
BankValueGetAsInt(lp_bank, lp_section, lp_key)
# mods/voidprologue.sc2mod
// L6748
BankValueGetAsInt(lp_bank, lp_section, lp_key)