# Load Integer Value

Grammar — Load key of section section from bank bank as integer value
FlagsNative | Function

Returns an Integer value contained in the chosen Bank at the specified Key of the specified Section.

# Arguments

  • bank — Bank
  • string — Section
  • string — Key

Returns — int

native int BankValueGetAsInt(
	bank b,
	string section,
	string key,
);

Category: [Bank / Store & Load](/galaxy/reference#bank-store &-load)

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// 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

CampaignLib.galaxy

// L8717
BankValueGetAsInt(lp_bank, lp_section, lp_key)
// L8987
BankValueGetAsInt(lp_sourceBank, lv__SectionName, IntToString(0))

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// 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

Lib281DEC45.galaxy

// 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

MapScript.galaxy

// L2448
BankValueGetAsInt(gv_tutorialBankSave, "General", "Progress")
// L2448
BankValueGetAsInt(gv_tutorialBankSave, "General", "Progress")

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// 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

VoidCampaignStoryLib.galaxy

// 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

LibChal.galaxy

// L1843
BankValueGetAsInt(libChal_gv_cHL_DefaultChallengeBank, libChal_gf_ChallengeName(lp_challengeType), libChal_gv_cHLC_KEYAWARD)

# mods/heroesdata.stormmod

GameLib.galaxy

// 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

HeroesLib.galaxy

// 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

LibComC.galaxy

// L3852
BankValueGetAsInt(lp_bank, lp_section, lp_key)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// 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

LibCOOC.galaxy

// L4809
BankValueGetAsInt(lp_bank, lp_section, lp_key)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L6748
BankValueGetAsInt(lp_bank, lp_section, lp_key)