# Save User Data Type
Grammar — Save user data for userType to bank bank within the section section
Flags —Native
|Action
Saves all modified values for all instances of the given type.
# Arguments
string
<gamelink::User> — User Typebank
— Bankstring
— Section
Returns — void
native void UserDataSaveType(
string inType,
bank inBank,
string inSection,
);
# Related
Category: User Data / Save/Load
- Save User Data Instance —
void
— UserDataSaveInstance - Load User Data Instance —
void
— UserDataLoadInstance - Save User Data Type —
void
— UserDataSaveType - Load User Data Type —
void
— UserDataLoadType
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12386
// Automatic Variable Declarations
// Implementation
UserDataSaveType("KerriganAbility", lp_bank, lp_sectionTech);
libSwaC_gf_ZS_SaveTransitionVarInteger(lp_bank, lp_sectionTech, "Tier1", libSwaC_gv_zSX_KerriganTechTiers[1], 1);
libSwaC_gf_ZS_SaveTransitionVarInteger(lp_bank, lp_sectionTech, "Tier2", libSwaC_gv_zSX_KerriganTechTiers[2], 1);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13072
libSwaC_gf_ZS_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("KerriganXP"), libSwaC_gv_zS_KerriganCheatXP, 0);
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "Scenes");
UserDataSaveType("Scenes", lp_targetBank, lv__SectionName);
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13074
UserDataSaveType("Scenes", lp_targetBank, lv__SectionName);
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "StoryStates");
UserDataSaveType("StoryStates", lp_targetBank, lv__SectionName);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13076
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "StoryStates");
UserDataSaveType("StoryStates", lp_targetBank, lv__SectionName);
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "CampaignStats");
libSwaC_gf_ZS_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("MissionCompletedCount"), libSwaC_gf_NumberOfMissions(libSwaC_ge_MissionCountOptions_Completed), 0);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13120
}
lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "Tips");
UserDataSaveType("CampaignTips", lp_targetBank, lv__SectionName);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13940
// Implementation
libSwaC_gf_ZS_OpenStoryBank();
UserDataSaveType("WriterStates", libSwaC_gf_StoryBank(), "WriterStateSnapshot");
BankSave(libSwaC_gf_StoryBank());
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:621
// Implementation
UserDataSaveType("WriterStates", lib281DEC45_gf_ZSS_TempConversationBank(), ("WriterStates"));
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:632
// Implementation
UserDataSaveType("WriterStates", libSwaC_gf_StoryBank(), ("WriterStateSnapshot"));
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:5873
lv_statisticsBank = BankLastCreated();
BankOptionSet(lv_statisticsBank, c_bankOptionSignature, true);
UserDataSaveType("ScriptedScenes", lv_statisticsBank, "StoryScenes");
return true;
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:7549
BankLoad(libSwaC_gf_StoryEventParameter(libSwaC_ge_ZS_Event_ProgressCheatSave, 1), 1);
UserDataSaveType("Character", BankLastCreated(), "Characters");
auto9E31730B_ai = 1;
auto9E31730B_ae = UserDataInstanceCount("Character")+1;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:4392
// Automatic Variable Declarations
// Implementation
UserDataSaveType("SpearofAdunUpgrade", lp_bank, lp_section);
libVoiC_gf_PC_SaveTransitionVarInteger(lp_bank, lp_section, "CheatCurrency", libVoiC_gv_pCX_SoACheatCurrency, 0);
libVoiC_gf_PC_SaveTransitionVarInteger(lp_bank, lp_section, "PreviousTotalCurrency", libVoiC_gv_pCX_SoAPreviousTotalPower, 0);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:5827
// Automatic Variable Declarations
// Implementation
UserDataSaveType("CampaignPerk", lp_bank, lp_section);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7045
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "CampaignCredits");
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "Scenes");
UserDataSaveType("Scenes", lp_targetBank, lv__SectionName);
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7047
UserDataSaveType("Scenes", lp_targetBank, lv__SectionName);
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "StoryStates");
UserDataSaveType("StoryStates", lp_targetBank, lv__SectionName);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7049
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "StoryStates");
UserDataSaveType("StoryStates", lp_targetBank, lv__SectionName);
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "CampaignStats");
libVoiC_gf_PC_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("MissionCompletedCount"), libVoiC_gf_NumberOfMissions(libVoiC_ge_MissionCountOptions_Completed), 0);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7094
}
lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "Tips");
UserDataSaveType("CampaignTips", lp_targetBank, lv__SectionName);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7839
libVoiC_gf_PC_OpenStoryBank();
UserDataSaveType("WriterStates", libVoiC_gf_StoryBank(), "WriterStateSnapshot");
BankSave(libVoiC_gf_StoryBank());
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4581
BankLoad(libVoiC_gf_CampaignEventParameter(libVoiC_ge_PC_Event_CampaignProgressCheatSave, 1), 1);
UserDataSaveType("Clickable", BankLastCreated(), "Characters");
auto79D6B584_ai = 1;
auto79D6B584_ae = UserDataInstanceCount("Clickable")+1;
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:2764
void libComC_gf_CC_SavePerksToBank (bank lp_bank, string lp_section) {
// Implementation
UserDataSaveType("CampaignPerk", lp_bank, lp_section);
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3202
libComC_gf_CC_SaveTransitionVarBoolean(lp_targetBank, lv__SectionName, ("DebugProgress"), libComC_gv_cCX_DebugProgress, false);
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "Scenes");
UserDataSaveType("Scenes", lp_targetBank, lv__SectionName);
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3204
UserDataSaveType("Scenes", lp_targetBank, lv__SectionName);
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "StoryStates");
UserDataSaveType("StoryStates", lp_targetBank, lv__SectionName);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3206
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "StoryStates");
UserDataSaveType("StoryStates", lp_targetBank, lv__SectionName);
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "CampaignStats");
libComC_gf_CC_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("MissionCompletedCount"), libComC_gf_NumberOfMissions(libComC_ge_MissionCountOptions_Completed), 0);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3243
lv__SectionName = libComC_gf_CC_BankSectionName(lp_map, "Tips");
UserDataSaveType("CampaignTips", lp_targetBank, lv__SectionName);
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3822
// Implementation
libComC_gf_NC_OpenStoryBank();
UserDataSaveType("WriterStates", libComC_gf_CC_StoryBank(), "WriterStateSnapshot");
BankSave(libComC_gf_CC_StoryBank());
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3927
BankLoad(libComC_gf_CC_EventParameter(libNovC_ge_NC_Event_CampaignProgressCheatSave, 1), 1);
UserDataSaveType("Clickable", BankLastCreated(), "Characters");
auto79D6B584_ai = 1;
auto79D6B584_ae = UserDataInstanceCount("Clickable")+1;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:1718
void libNovC_gf_NC_SaveArmyTechItemsToBank (bank lp_bank, string lp_section) {
// Implementation
UserDataSaveType("CampaignTechItem", lp_bank, lp_section);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:3891
lv__SectionName = libComC_gf_CC_BankSectionName(lv_bankMap, "CharacterStatus");
BankSectionCreate(lv_targetBank, lv__SectionName);
UserDataSaveType("CharacterStatus", lv_targetBank, lv__SectionName);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6233
libA3DDD02B_gf_PP_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("Difficulty"), libA3DDD02B_gf_PP_DifficultyIndex(libA3DDD02B_gv_pPX_CampaignDifficulty), 0);
lv__SectionName = libA3DDD02B_gf_PP_BankSectionName(lp_map, "WriterStates");
UserDataSaveType("WriterStates", lp_targetBank, lv__SectionName);
lv__SectionName = libA3DDD02B_gf_PP_BankSectionName(lp_map, "CampaignStats");
libA3DDD02B_gf_PP_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("MissionCompletedCount"), libA3DDD02B_gf_NumberOfMissions(libA3DDD02B_ge_MissionCountOptions_Completed), 0);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6263
}
lv__SectionName = libA3DDD02B_gf_PP_BankSectionName(lp_map, "Tips");
UserDataSaveType("CampaignTips", lp_targetBank, lv__SectionName);
}