# Convert String To Integer

Grammar — Integer(val|String)
FlagsNative | Function

Converts a string value to an integer value.

# Arguments

  • string — Value

Returns — int

native int StringToInt(string x);

Category: Conversion / Basic Conversions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3385

    // Implementation
    lv_string = CatalogFieldValueGet(c_gameCatalogUnit, (lp_unitType), "ScoreKill", c_playerAny);
    return StringToInt(lv_string);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4455

    }

    gf_AddScore(StringToInt(StringWord(EventChatMessage(false), 2)));
    gf_UpdateUI();
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19482

    }

    DialogSetSize(gv_debugDialogForSizePos, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19482

    }

    DialogSetSize(gv_debugDialogForSizePos, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19520

    }

    DialogSetPosition(gv_debugDialogForSizePos, c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19520

    }

    DialogSetPosition(gv_debugDialogForSizePos, c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:3385

    // Implementation
    lv_string = CatalogFieldValueGet(c_gameCatalogUnit, (lp_unitType), "ScoreKill", c_playerAny);
    return StringToInt(lv_string);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:4455

    }

    gf_AddScore(StringToInt(StringWord(EventChatMessage(false), 2)));
    gf_UpdateUI();
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19482

    }

    DialogSetSize(gv_debugDialogForSizePos, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19482

    }

    DialogSetSize(gv_debugDialogForSizePos, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19520

    }

    DialogSetPosition(gv_debugDialogForSizePos, c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19520

    }

    DialogSetPosition(gv_debugDialogForSizePos, c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:649

    }
    else {
        lv_amount = StringToInt(CatalogFieldValueGet(c_gameCatalogUnit, (UnitGetType(lp_unitKilled)), "CostResource[Minerals]", gv_pLAYER_01_USER));
    }
    if ((lv_amount <= 0)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1790

    }

    lv_experienceGained = StringToInt(StringWord(EventChatMessage(false), 2));
    gf_RewardExperience(lv_experienceGained);
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:649

    }
    else {
        lv_amount = StringToInt(CatalogFieldValueGet(c_gameCatalogUnit, (UnitGetType(lp_unitKilled)), "CostResource[Minerals]", gv_pLAYER_01_USER));
    }
    if ((lv_amount <= 0)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:1790

    }

    lv_experienceGained = StringToInt(StringWord(EventChatMessage(false), 2));
    gf_RewardExperience(lv_experienceGained);
    return true;

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:10383

    // Automatic Variable Declarations
    // Implementation
    return StringToInt(CatalogFieldValueGet(c_gameCatalogArmyUpgrade, (lp_armyUpgrade), "Cost", 1));
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:10621

    // Automatic Variable Declarations
    // Implementation
    return StringToInt(CatalogFieldValueGet(c_gameCatalogArmyUnit, (lp_armyUnit), "Cost", 1));
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13225

    }

    lv_offsetX = StringToInt(StringWord(lv_offsetString, 1));
    lv_offsetY = StringToInt(StringWord(lv_offsetString, 2));
    lv_offsetY += 240;

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13226


    lv_offsetX = StringToInt(StringWord(lv_offsetString, 1));
    lv_offsetY = StringToInt(StringWord(lv_offsetString, 2));
    lv_offsetY += 240;
    lv_offsetX += 130;

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:7919


    if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1) > UserDataInstanceCount("WriterStates"))) {
        UserDataSetInt("StoryStates", UserDataInstance("StoryStates", (DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)-UserDataInstanceCount("WriterStates"))), "value", 1, StringToInt(libNtve_gf_DialogItemEditValue(EventDialogControl(), 1)));
    }
    else {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:7922

    }
    else {
        UserDataSetInt("WriterStates", UserDataInstance("WriterStates", DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)), "Value", 1, StringToInt(libNtve_gf_DialogItemEditValue(EventDialogControl(), 1)));
    }
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pstory01.sc2map/MapScript.galaxy:1368

    libVCST_gf_ShowHideStoryUI(false);
    libVoiC_gf_CinematicFade(false, 0.5, Color(0.00, 0.00, 0.00), true);
    autoCC7F53BD_val = StringToInt(libVoiC_gf_CampaignEventParameter(libVoiC_ge_PC_Event_UIBottomBarRoomChange, 1));
    if (autoCC7F53BD_val == (libVCUI_ge_PU_BottomBarButton_BridgeRoom)) {
        libVCST_gf_EnterRoom(libVCST_ge_Rooms_StoryRoomBridge);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pstory01.sc2mapMapScript.galaxy:1368

    libVCST_gf_ShowHideStoryUI(false);
    libVoiC_gf_CinematicFade(false, 0.5, Color(0.00, 0.00, 0.00), true);
    autoCC7F53BD_val = StringToInt(libVoiC_gf_CampaignEventParameter(libVoiC_ge_PC_Event_UIBottomBarRoomChange, 1));
    if (autoCC7F53BD_val == (libVCUI_ge_PU_BottomBarButton_BridgeRoom)) {
        libVCST_gf_EnterRoom(libVCST_ge_Rooms_StoryRoomBridge);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6877

    }

    lv_offsetX = StringToInt(StringWord(lv_offsetString, 1));
    lv_offsetY = StringToInt(StringWord(lv_offsetString, 2));
    lv_offsetY += 240;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6878


    lv_offsetX = StringToInt(StringWord(lv_offsetString, 1));
    lv_offsetY = StringToInt(StringWord(lv_offsetString, 2));
    lv_offsetY += 240;
    lv_offsetX += 130;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1120

    // Implementation
    lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
    return StringToInt(lv_returnValue);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3922

    for ( ; ( (autoCD238B57_ai >= 0 && lv_buttonIndex <= autoCD238B57_ae) || (autoCD238B57_ai < 0 && lv_buttonIndex >= autoCD238B57_ae) ) ; lv_buttonIndex += autoCD238B57_ai ) {
        if ((CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Face", c_playerAny) == (lp_abilityButton))) {
            lv_row = StringToInt(CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Row", c_playerAny));
            lv_column = StringToInt(CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Column", c_playerAny));
            TextExpressionSetToken("Param/Expression/lib_VCMI_7545F4E8", "UNIT", StringToText((lp_unitType)));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3923

        if ((CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Face", c_playerAny) == (lp_abilityButton))) {
            lv_row = StringToInt(CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Row", c_playerAny));
            lv_column = StringToInt(CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Column", c_playerAny));
            TextExpressionSetToken("Param/Expression/lib_VCMI_7545F4E8", "UNIT", StringToText((lp_unitType)));
            TextExpressionSetToken("Param/Expression/lib_VCMI_7545F4E8", "BTN", StringToText((lp_abilityButton)));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:487

    auto08DEDB16_val = lp_compare;
    if (auto08DEDB16_val == "NotEqual") {
        if ((UserDataGetInt((lp_userType), (lp_userInstance), (lp_userField), 1) != StringToInt(lp_value))) {
            return true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:493

    }
    else if (auto08DEDB16_val == "Equal") {
        if ((UserDataGetInt((lp_userType), (lp_userInstance), (lp_userField), 1) == StringToInt(lp_value))) {
            return true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:499

    }
    else if (auto08DEDB16_val == "LessEqual") {
        if ((UserDataGetInt((lp_userType), (lp_userInstance), (lp_userField), 1) <= StringToInt(lp_value))) {
            return true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:505

    }
    else if (auto08DEDB16_val == "GreaterEqual") {
        if ((UserDataGetInt((lp_userType), (lp_userInstance), (lp_userField), 1) >= StringToInt(lp_value))) {
            return true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:511

    }
    else if (auto08DEDB16_val == "Greater") {
        if ((UserDataGetInt((lp_userType), (lp_userInstance), (lp_userField), 1) > StringToInt(lp_value))) {
            return true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:517

    }
    else if (auto08DEDB16_val == "Less") {
        if ((UserDataGetInt((lp_userType), (lp_userInstance), (lp_userField), 1) < StringToInt(lp_value))) {
            return true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6141

    // Automatic Variable Declarations
    // Variable Initialization
    lv_iD = StringToInt(StringSub(EventChatMessage(false), 10, 10));

    // Conditions

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9450

    }

    libVCUI_gv_pUC_HEROUIBARWIDTH = StringToInt(StringWord(EventChatMessage(false), 2));
    return true;
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9477

    }

    libVCUI_gv_pUC_HEROUILIFEBARHEIGHT = StringToInt(StringWord(EventChatMessage(false), 2));
    libVCUI_gf_PU_UpdateHeroPanel(1);
    libVCUI_gf_PU_UpdateHeroPanel(2);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9506

    }

    libVCUI_gv_pUC_HEROUISHIELDBARHEIGHT = StringToInt(StringWord(EventChatMessage(false), 2));
    libVCUI_gf_PU_UpdateHeroPanel(1);
    libVCUI_gf_PU_UpdateHeroPanel(2);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9535

    }

    libVCUI_gv_pUC_HEROUIENERGYBARHEIGHT = StringToInt(StringWord(EventChatMessage(false), 2));
    libVCUI_gf_PU_UpdateHeroPanel(1);
    libVCUI_gf_PU_UpdateHeroPanel(2);

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeAI.galaxy:88

bool DebugMeleeTrigger (bool c, bool a) {
    if (a) {
        DebugMelee(StringToInt(StringWord(EventChatMessage(false), 2)));
    }
    return true;

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:171


int AIAbilityInt (int player, string entry, string field) {
    return StringToInt(AIAbilityStr(player, entry, field));
}
int AIEffectInt (int player, string entry, string field) {

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:174

}
int AIEffectInt (int player, string entry, string field) {
    return StringToInt(AIEffectStr(player, entry, field));
}
int AIWeaponInt (int player, string entry, string field) {

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:177

}
int AIWeaponInt (int player, string entry, string field) {
    return StringToInt(AIWeaponStr(player, entry, field));
}
int AIUnitInt (int player, string entry, string field) {

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:180

}
int AIUnitInt (int player, string entry, string field) {
    return StringToInt(AIUnitStr(player, entry, field));
}
int AIBehaviorInt (int player, string entry, string field) {

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:183

}
int AIBehaviorInt (int player, string entry, string field) {
    return StringToInt(AIBehaviorStr(player, entry, field));
}

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2571

    // Automatic Variable Declarations
    // Variable Initialization
    lv_submapIndex = StringToInt(StringSub(EventChatMessage(false), 8, 8));
    lv_sectionIndex = StringToInt(StringSub(EventChatMessage(false), 9, 9));
    lv_emitterIndex = StringToInt(StringSub(EventChatMessage(false), 10, 10));

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2572

    // Variable Initialization
    lv_submapIndex = StringToInt(StringSub(EventChatMessage(false), 8, 8));
    lv_sectionIndex = StringToInt(StringSub(EventChatMessage(false), 9, 9));
    lv_emitterIndex = StringToInt(StringSub(EventChatMessage(false), 10, 10));
    lv_killingTeam = StringToInt(StringSub(EventChatMessage(false), 12, 12));

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2573

    lv_submapIndex = StringToInt(StringSub(EventChatMessage(false), 8, 8));
    lv_sectionIndex = StringToInt(StringSub(EventChatMessage(false), 9, 9));
    lv_emitterIndex = StringToInt(StringSub(EventChatMessage(false), 10, 10));
    lv_killingTeam = StringToInt(StringSub(EventChatMessage(false), 12, 12));
    lv_actorID = "";

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2574

    lv_sectionIndex = StringToInt(StringSub(EventChatMessage(false), 9, 9));
    lv_emitterIndex = StringToInt(StringSub(EventChatMessage(false), 10, 10));
    lv_killingTeam = StringToInt(StringSub(EventChatMessage(false), 12, 12));
    lv_actorID = "";

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2620

    // Automatic Variable Declarations
    // Variable Initialization
    lv_killingTeam = StringToInt(StringSub(EventChatMessage(false), 11, 11));

    // Conditions

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2660


    // Variable Initialization
    lv_submapIndex = StringToInt(StringSub(EventChatMessage(false), 14, 14));

    // Conditions

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:2346

    }

    libAMPU_gf_ARMPunisherGainScore(StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)), UnitGetPosition(libGame_gv_players[1].lv_heroUnit));
    return true;
}

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:2346

    }

    libAMPU_gf_ARMPunisherGainScore(StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)), UnitGetPosition(libGame_gv_players[1].lv_heroUnit));
    return true;
}

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:2410

    }

    libAMPU_gf_ARMPunisherSetTeamScore(StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:2410

    }

    libAMPU_gf_ARMPunisherSetTeamScore(StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:3730

    }

    libAtDe_gf_SendEventAttackDefendRoundEnds(StringToInt(StringWord(EventChatMessage(false), 2)));
    return true;
}

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:12591


    TriggerStop(libPEB1_gt_ArchangelSpawn1);
    lv_type = StringToInt(StringWord(EventChatMessage(false), 2));
    auto5796C558_val = lv_type;
    if (auto5796C558_val == 1) {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:12799


    libPVEM_gv_pvEDefeatDisabled = false;
    if ((StringToInt(StringWord(EventChatMessage(false), 2)) == 0)) {
        libPEB1_gv_defeatReason = libPEB1_ge_DefeatReason_AllHeroesSlain;
    }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:3187


    lv_specialItem = (StringWord(EventChatMessage(false), 2));
    lv_itemsToSpawn = StringToInt(StringWord(EventChatMessage(false), 3));
    lv_tempRollover = StringToInt(StringWord(EventChatMessage(false), 4));
    lv_polarOffset = (360.0 / (lv_itemsToSpawn + 1.0));

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:3188

    lv_specialItem = (StringWord(EventChatMessage(false), 2));
    lv_itemsToSpawn = StringToInt(StringWord(EventChatMessage(false), 3));
    lv_tempRollover = StringToInt(StringWord(EventChatMessage(false), 4));
    lv_polarOffset = (360.0 / (lv_itemsToSpawn + 1.0));
    lv_currentRollover = libPVEB_gv_pvEPickupRolloverRotationStep;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1673

    }

    libPBUI_gf_CurateHSUISelectHeroforPlayer(2, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1673

    }

    libPBUI_gf_CurateHSUISelectHeroforPlayer(2, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3248


    lv_specialItem = (StringWord(EventChatMessage(false), 2));
    lv_itemsToSpawn = StringToInt(StringWord(EventChatMessage(false), 3));
    lv_tempRollover = StringToInt(StringWord(EventChatMessage(false), 4));
    lv_polarOffset = (360.0 / (lv_itemsToSpawn + 1.0));

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3249

    lv_specialItem = (StringWord(EventChatMessage(false), 2));
    lv_itemsToSpawn = StringToInt(StringWord(EventChatMessage(false), 3));
    lv_tempRollover = StringToInt(StringWord(EventChatMessage(false), 4));
    lv_polarOffset = (360.0 / (lv_itemsToSpawn + 1.0));
    lv_currentRollover = libPVEM_gv_pvEPickupsRolloverRotationStep;

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:2061


    if ((StringSub(lv_chatString, 13, 13) == "0")) {
        lv_player = StringToInt(StringSub(lv_chatString, 12, 13));
    }
    else {

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:2064

    }
    else {
        lv_player = StringToInt(StringSub(lv_chatString, 12, 12));
    }
    if ((StringSub(lv_chatString, 13, 13) == "0")) {

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:2145


    if ((StringSub(lv_chatString, 13, 13) == "0")) {
        lv_player = StringToInt(StringSub(lv_chatString, 12, 13));
        lv_chatString = StringSub(lv_chatString, 15, StringLength(lv_chatString));
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:2149

    }
    else {
        lv_player = StringToInt(StringSub(lv_chatString, 12, 12));
        lv_chatString = StringSub(lv_chatString, 14, StringLength(lv_chatString));
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:2204


    // Variable Initialization
    lv_reshuffleCount = StringToInt(StringSub(EventChatMessage(false), 1, (StringFind(EventChatMessage(false), "picks", c_stringNoCase) - 1)));
    for (init_i = 0; init_i <= lv_heroNameCountMax_C; init_i += 1) {
        lv_heroAppearences[init_i] = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:3173

    }

    lv_player = StringToInt(StringWord(EventChatMessage(false), 2));
    lv_buildNumber = StringToInt(StringWord(EventChatMessage(false), 3));
    libAIAI_gv_aIHeroes[lv_player].lv_pickedTalentBuild = lv_buildNumber;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:3174


    lv_player = StringToInt(StringWord(EventChatMessage(false), 2));
    lv_buildNumber = StringToInt(StringWord(EventChatMessage(false), 3));
    libAIAI_gv_aIHeroes[lv_player].lv_pickedTalentBuild = lv_buildNumber;
    libStEx_gf_RespecPlayer(lv_player, true);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:14815

    }
    else {
        lv_awardIndex = StringToInt(StringWord(EventChatMessage(false), 2));
    }
    if ((StringWord(EventChatMessage(false), 3) == "")) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:14821

    }
    else {
        lv_player = StringToInt(StringWord(EventChatMessage(false), 3));
    }
    if ((lv_awardIndex == 0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7921

    }

    libMapM_gf_LinkVehicleToVehicle(libMapM_gv_vehicle[StringToInt(StringWord(EventChatMessage(false), 2))].lv_unit_Vehicle, libMapM_gv_vehicle[StringToInt(StringWord(EventChatMessage(false), 3))].lv_unit_Vehicle);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7921

    }

    libMapM_gf_LinkVehicleToVehicle(libMapM_gv_vehicle[StringToInt(StringWord(EventChatMessage(false), 2))].lv_unit_Vehicle, libMapM_gv_vehicle[StringToInt(StringWord(EventChatMessage(false), 3))].lv_unit_Vehicle);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:352

    // Implementation
    lv_trackerPlayerStr = StringWord(lp_chatString, 2);
    if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
        return StringToInt(lv_trackerPlayerStr);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:352

    // Implementation
    lv_trackerPlayerStr = StringWord(lp_chatString, 2);
    if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
        return StringToInt(lv_trackerPlayerStr);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:353

    lv_trackerPlayerStr = StringWord(lp_chatString, 2);
    if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
        return StringToInt(lv_trackerPlayerStr);
    }
    else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2191

    if ((StringWord(EventChatMessage(false), 2) != "")) {
        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingStartTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2191

    if ((StringWord(EventChatMessage(false), 2) != "")) {
        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingStartTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2192

        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingStartTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2253

    if ((StringWord(EventChatMessage(false), 2) != "")) {
        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingBreakTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2253

    if ((StringWord(EventChatMessage(false), 2) != "")) {
        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingBreakTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2254

        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingBreakTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2320

    if ((StringWord(EventChatMessage(false), 2) != "")) {
        lv_trackerPlayerStr = StringWord(EventChatMessage(false), 2);
        if ((StringToInt(lv_trackerPlayerStr) >= 1) && (StringToInt(lv_trackerPlayerStr) <= libCore_gv_bALMaxPlayers)) {
            libSprt_gf_StatTrackingStopTrackingforPlayer(StringToInt(lv_trackerPlayerStr));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:11073


    lv_player = EventPlayer();
    libUIUI_gv_uIDebugPanelDebugMetaXPValue = StringToInt(libNtve_gf_DialogItemEditValue(libUIUI_gv_uIDebugPanel.lv_metaXPEditBox, lv_player));
    if ((libUIUI_gv_uIDebugPanelDebugMetaXPValue <= 0)) {
        TextExpressionSetToken("Param/Expression/lib_UIUI_8002416C", "A", IntToText(libUIUI_gv_uIDebugPanelDebugMetaXPValue));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:12567

    }

    DialogControlSetPosition(libUIUI_gv_helpButtonFrames[1], PlayerGroupAll(), c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:12567

    }

    DialogControlSetPosition(libUIUI_gv_helpButtonFrames[1], PlayerGroupAll(), c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:3195

    }
    else if (auto5E8D62C0_val == "4") {
        libMLBD_gf_MMBOETransmissionDuelEndQ(StringToInt(StringWord(EventChatMessage(false), 3)));
    }
    else if (auto5E8D62C0_val == "5") {

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:3198

    }
    else if (auto5E8D62C0_val == "5") {
        libMLBD_gf_MMBOETransmissionBossPushingQ(StringToInt(StringWord(EventChatMessage(false), 3)));
    }
    else if (auto5E8D62C0_val == "6") {

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:3201

    }
    else if (auto5E8D62C0_val == "6") {
        libMLBD_gf_MMBOETransmissionBossRetreatedQ(StringToInt(StringWord(EventChatMessage(false), 3)));
    }
    else {

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2456

    }

    libMHtM_gv_mMUnderworldSkullCollected[lv_team] = StringToInt(StringWord(EventChatMessage(false), 2));
    libMHtM_gv_mMUnderworldSkullCollected[libGame_gf_EnemyTeam(lv_team)] = (libMHtM_gv_mMUnderworldSkullTotal - libMHtM_gv_mMUnderworldSkullCollected[lv_team]);
    return true;

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2522


    libMHtM_gv_mMUnderworldSummonedBoss[1] = UnitGroupUnit(UnitGroupSelected(1), 1);
    autoD805E682_ae = StringToInt(StringWord(EventChatMessage(false), 2));
    lv_indexMin = 1;
    for ( ; ( (autoD805E682_ai >= 0 && lv_indexMin <= autoD805E682_ae) || (autoD805E682_ai < 0 && lv_indexMin >= autoD805E682_ae) ) ; lv_indexMin += autoD805E682_ai ) {

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2526

    for ( ; ( (autoD805E682_ai >= 0 && lv_indexMin <= autoD805E682_ae) || (autoD805E682_ai < 0 && lv_indexMin >= autoD805E682_ae) ) ; lv_indexMin += autoD805E682_ai ) {
    }
    libMHtM_gv_mMUnderworldSkullCollected[1] = StringToInt(StringWord(EventChatMessage(false), 3));
    libMHtM_gv_mMUnderworldSkullCollected[2] = (100 - libMHtM_gv_mMUnderworldSkullCollected[1]);
    libMHtM_gf_MMUnderworldApplySummonedBossScaling(1, true);

mods/heroesmapmods/battlegroundmapmods/skytemple.stormmodbase.stormdata/LibMLCP.galaxy:3421


    lv_time = StringSub(EventChatMessage(false), 5, 6);
    libGame_gv_scalingTicks = StringToInt(StringWord(EventChatMessage(false), 2));
    UIDisplayMessage(PlayerGroupAll(), c_messageAreaDebug, (StringExternal("Param/Value/lib_MLCP_2D9B987D") + StringToText(lv_time) + StringExternal("Param/Value/lib_MLCP_FCDA683F")));
    libMLCP_gf_MMSkyTempleSetLevel();

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:2202


    // Variable Initialization
    lv_team = StringToInt(StringSub(EventChatMessage(false), 11, 11));

    // Conditions

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:2396

    }

    lv_player = StringToInt(StringWord(EventChatMessage(false), 2));
    if ((lv_player == 0)) {
        TriggerDebugOutput(1, StringExternal("Param/Value/lib_MSC2_5E8BD6F6"), true);

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:2440

    }

    lv_player = StringToInt(StringWord(EventChatMessage(false), 2));
    if ((lv_player == 0)) {
        TriggerDebugOutput(1, StringExternal("Param/Value/lib_MSC2_78C7B008"), true);

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:508

        lv_positionFromRight = ((lv_numberLength + 1) - lv_i);
        if ((ModI(lv_positionFromRight, 3) == 0)) {
            lv_placeValue = StringToInt(StringSub(IntToString(lp_number), lv_i, lv_i));
            if ((lv_placeValue != 0)) {
                lv_numberOfSoundsToPlay += 1;