# User Data (Real)
Grammar — User Data (userType, instance, field, index)
Flags —Native
|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 Typestring
[ userinstance ] — Instancestring
[ userfield ] — Fieldint
— Index
Returns — fixed
native fixed UserDataGetFixed(
string inType,
string inInstance,
string inField,
int inIndex,
);
# Related
Category: User Data / Get Value
- [F] —
abilcmd
— Load User Data Value Into Variable — ( ) - [F] —
abilcmd
— User Data (Ability Command) — ( UserDataGetAbilCmd ) - [F] —
string
[ gamelink::Actor ] — User Data (Actor) — ( UserDataGetActor ) - [F] —
color
— User Data (Color) — ( UserDataGetColor ) - [F] —
int
[ preset::UserDataCompare ] — User Data (Compare) — ( UserDataGetCompare ) - [F] —
string
[ gamelink ] — User Data (Game Link) — ( UserDataGetGameLink ) - [F] —
string
[ filepath ] — User Data (Image) — ( UserDataGetImagePath ) - [F] —
int
[ preset::TextTagEdge ] — User Data (Image Edge) — ( UserDataGetImageEdge ) - [F] —
string
[ preset::AttachPoints ] — User Data (Image Attach) — ( UserDataGetImageAttachPoint ) - [F] —
int
— User Data (Integer) — ( UserDataGetInt ) - [F] —
string
[ gamelink::Model ] — User Data (Model) — ( UserDataGetModel ) - [F] —
string
[ filepath ] — User Data (Movie) — ( UserDataGetMovie ) - [F] —
fixed
— User Data (Real) — ( UserDataGetFixed ) - [F] —
string
[ gamelink::Sound ] — User Data (Sound) — ( UserDataGetSound ) - [F] —
string
— User Data (String) — ( UserDataGetString ) - [F] —
text
— User Data (Text) — ( UserDataGetText ) - [F] —
string
[ gamelink::Unit ] — User Data (Unit) — ( UserDataGetUnit ) - [F] —
string
[ gamelink::Upgrade ] — User Data (Upgrade) — ( UserDataGetUpgrade ) - [F] —
string
[ gamelink::User ] — User Data (User Type) — ( UserDataGetUserType ) - [F] —
string
[ userinstance ] — User Data (User Instance) — ( UserDataGetUserInstance )
# Examples
# campaigns/swarmstory.sc2campaign
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// L341
UserDataGetFixed("AbilityDataHealingWave", entry, "Healing Array", level+1)
# mods/warcoop/warcoopdata.sc2mod
// L2582
UserDataGetFixed("LegionDifficultyScaling", lv_difficultyscalinginstance, "Value", 1)
// L2612
UserDataGetFixed("LegionDifficultyScaling", lv_difficultyscalinginstance, "Value", 1)
// L2634
UserDataGetFixed("LegionDifficultyScaling", "PlayerHandicap", "Value", 1)