# User Data (Real)

Grammar — User Data (userType, instance, field, index)
FlagsNative | Function

Returns a value from user data for the given type, instance, and field. User data is defined in the Data module.

# Arguments

  • string [ gamelink::User ] — User Type
  • string [ userinstance ] — Instance
  • string [ userfield ] — Field
  • int — Index

Returns — fixed

native fixed UserDataGetFixed(
	string inType,
	string inInstance,
	string inField,
	int inIndex,
);

Category: User Data / Get Value

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L2515
UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1)
// L2518
UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1)
// L2521
UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1)
// L2524
UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1)
// L19694
UserDataGetFixed("ConversationTimestamps", libSwaC_gv_zS_CutsceneTimestamp, "StartDelay", 1)
// L19695
UserDataGetFixed("ConversationTimestamps", libSwaC_gv_zS_CutsceneTimestamp, "FlashDuration", 1)
// L19696
UserDataGetFixed("ConversationTimestamps", libSwaC_gv_zS_CutsceneTimestamp, "WaitDuration", 1)
// L19724
UserDataGetFixed("ConversationTimestamps", libSwaC_gv_zS_CutsceneTimestamp, "StartDelay", 1)
// L19725
UserDataGetFixed("ConversationTimestamps", libSwaC_gv_zS_CutsceneTimestamp, "FlashDuration", 1)
// L19726
UserDataGetFixed("ConversationTimestamps", libSwaC_gv_zS_CutsceneTimestamp, "WaitDuration", 1)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L3611
UserDataGetFixed("AmbientScenes", lp_scene, "LeadInTimes", lv_index)
// L3617
UserDataGetFixed("AmbientScenes", lp_scene, "SequenceTime", 1)
// L3674
UserDataGetFixed("AmbientScenes", lib281DEC45_gv_zSS_AmbientSceneInstance[lp_sceneIndex], "SequenceTime", 1)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L10339
UserDataGetFixed("Timestamps", libVoiC_gv_pC_CutsceneTimestamp, "StartDelay", 1)
// L10340
UserDataGetFixed("Timestamps", libVoiC_gv_pC_CutsceneTimestamp, "FlashDuration", 1)
// L10341
UserDataGetFixed("Timestamps", libVoiC_gv_pC_CutsceneTimestamp, "WaitDuration", 1)
// L10369
UserDataGetFixed("Timestamps", libVoiC_gv_pC_CutsceneTimestamp, "StartDelay", 1)
// L10370
UserDataGetFixed("Timestamps", libVoiC_gv_pC_CutsceneTimestamp, "FlashDuration", 1)
// L10371
UserDataGetFixed("Timestamps", libVoiC_gv_pC_CutsceneTimestamp, "WaitDuration", 1)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L4408
UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1)
// L4413
UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1)
// L4418
UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1)
// L4422
UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L2796
UserDataGetFixed("AmbientScenes", lp_scene, "NextSceneDelay", 1)
// L2840
UserDataGetFixed("AmbientScenes", lp_scene, "NextSceneDelay", 1)
// L2856
UserDataGetFixed("AmbientScenes", libVCST_gv_pS_AmbientSceneInstance[lp_room][lp_scene], "NextSceneDelay", 1)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1484
UserDataGetFixed("Maps", libVoiC_gf_PC_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 1)
// L1484
UserDataGetFixed("Maps", libVoiC_gf_PC_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 2)
// L1484
UserDataGetFixed("Maps", libVoiC_gf_PC_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 3)

# mods/heroesdata.stormmod

GameLib.galaxy

// L2575
UserDataGetFixed("EndOfMatchMapSpecificAward", lp_userData, "Base", 1)
// L2917
UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Base", 1)
// L2924
UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Weight Modifier", 1)
// L2930
UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Base", 1)
// L2937
UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Weight Modifier", 1)

# mods/missionpacks/campaigncommon.sc2mod

LibCMMI.galaxy

// L60
UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1)
// L65
UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1)
// L70
UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1)
// L74
UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1)

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L4434
UserDataGetFixed("Timestamps", libComC_gv_cC_CutsceneTimestamp, "StartDelay", 1)
// L4435
UserDataGetFixed("Timestamps", libComC_gv_cC_CutsceneTimestamp, "FlashDuration", 1)
// L4436
UserDataGetFixed("Timestamps", libComC_gv_cC_CutsceneTimestamp, "WaitDuration", 1)
// L4463
UserDataGetFixed("Timestamps", libComC_gv_cC_CutsceneTimestamp, "StartDelay", 1)
// L4464
UserDataGetFixed("Timestamps", libComC_gv_cC_CutsceneTimestamp, "FlashDuration", 1)
// L4465
UserDataGetFixed("Timestamps", libComC_gv_cC_CutsceneTimestamp, "WaitDuration", 1)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L2441
UserDataGetFixed("AmbientScenes", lp_scene, "NextSceneDelay", 1)
// L2491
UserDataGetFixed("AmbientScenes", lp_scene, "NextSceneDelay", 1)
// L2506
UserDataGetFixed("AmbientScenes", libNCST_gv_nS_AmbientSceneInstance[lp_room][lp_scene], "NextSceneDelay", 1)

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L610
UserDataGetFixed("Maps", libComC_gf_CC_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 1)
// L610
UserDataGetFixed("Maps", libComC_gf_CC_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 2)
// L610
UserDataGetFixed("Maps", libComC_gf_CC_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 3)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L1151
UserDataGetFixed("CoopAIAttackWaves", lv_waveInstance, "resourceSize", libCOOC_gf_CC_DifficultyIndex(lp_difficulty))
// L2567
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PhaseUnitsAlternateChance", lv_unitTierIter)
// L2581
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PercentOfWaveBase", lv_unitTypeIter)
// L2582
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PercentOfWaveRandom", lv_unitTypeIter)
// L2916
UserDataGetFixed("CoopAICommanders", libCOMI_gv_cM_CoopAIPlayer_Commander[lp_player], "ResourceModifier", 1)
// L2944
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PercentOfWaveBase", lv_unitTypeIter)
// L2945
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PercentOfWaveRandom", lv_unitTypeIter)
// L2946
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PhaseUnitsAlternateChance", lv_unitTypeIter)
// L2947
UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PhaseUnitsAlternateChance", lv_unitTierIter)
// L3235
UserDataGetFixed("CoopAIUpgrade", UserDataInstance("CoopAIUpgrade", lv_upgradeIter), "TimePerDifficult", lp_difficulty)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L4311
UserDataGetFixed("CoopAIAttackWaves", "SiegeMissionWave03", "resourceSize", libCOOC_gf_CC_DifficultyIndex(libCOMI_gf_DifficultyLevelForPlayerCoop(lp_player)))
// L4314
UserDataGetFixed("CoopAIAttackWaves", "SiegeMissionWave02", "resourceSize", libCOOC_gf_CC_DifficultyIndex(libCOMI_gf_DifficultyLevelForPlayerCoop(lp_player)))
// L4317
UserDataGetFixed("CoopAIAttackWaves", "SiegeMissionWave01", "resourceSize", libCOOC_gf_CC_DifficultyIndex(libCOMI_gf_DifficultyLevelForPlayerCoop(lp_player)))
// L5134
UserDataGetFixed("MutationDifficultyCountTargets", lv_countweightinstance, "TargetWeight", 1)
// L5242
UserDataGetFixed("MutationDifficultyLevels", libCOMU_gf_CT_GetMutationDifficultyLevel(), "XPModifier", 1)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L486
UserDataGetFixed("MissionObjective", libCOOC_gf_CS_ObjectiveUserDataInstance(lp_objective), "XPMultiplier", 1)
// L819
UserDataGetFixed("MasteryUpgrades", lp_masteryUpgrade, "PointIncrement", lp_index)
// L1256
UserDataGetFixed("Experience", "GameValues", "LossMaxMultiplier", 1)
// L1409
UserDataGetFixed("Experience", "GameValues", "DifficultyModifier", libCOOC_gf_CC_DifficultyIndex(lp_difficulty))

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L1509
UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1)
// L1512
UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1)
// L1515
UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1)
// L1518
UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1)
// L7332
UserDataGetFixed("Maps", libA3DDD02B_gf_PP_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 1)
// L7332
UserDataGetFixed("Maps", libA3DDD02B_gf_PP_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 2)
// L7332
UserDataGetFixed("Maps", libA3DDD02B_gf_PP_MapUserDataInstance(lv_selectedMission), "ArchivesImageSettings", 3)
// L8755
UserDataGetFixed("ConversationTimestamps", libA3DDD02B_gv_pP_CutsceneTimestamp, "StartDelay", 1)
// L8756
UserDataGetFixed("ConversationTimestamps", libA3DDD02B_gv_pP_CutsceneTimestamp, "FlashDuration", 1)
// L8757
UserDataGetFixed("ConversationTimestamps", libA3DDD02B_gv_pP_CutsceneTimestamp, "WaitDuration", 1)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L27
UserDataGetFixed("MiscData", "Misc", "DayLength", 1)
// L39
UserDataGetFixed("MiscData", "Misc", "Creep - Max Camp Radius", 1)
// L1772
UserDataGetFixed(lv_userType, lv_instance, "AcquireRadius", 1)

# mods/warcoop/warclassicsystem.sc2mod

TacticalAIWar3.galaxy

// L341
UserDataGetFixed("AbilityDataHealingWave", entry, "Healing Array", level+1)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L2582
UserDataGetFixed("LegionDifficultyScaling", lv_difficultyscalinginstance, "Value", 1)
// L2612
UserDataGetFixed("LegionDifficultyScaling", lv_difficultyscalinginstance, "Value", 1)
// L2634
UserDataGetFixed("LegionDifficultyScaling", "PlayerHandicap", "Value", 1)