# Create Alert With No Source

Grammar — Create a alertType|Alert Type alert for player player with the text: text (Custom icon: icon)
FlagsNative | Action

Creates an alert displaying the custom alert text.

# Arguments

  • string<gamelink::Alert> — Alert Type
  • int — Player
  • text — Text
  • string<filepath> — Icon

Returns — void

native void UIAlert(
	string alert,
	int player,
	text message,
	string icon,
);

Category: UI / Alerts

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:2004

    lv_deadPlayer = UnitGetOwner(lp_downedViking);
    lv_deadPlayerTeam = libGame_gf_TeamNumberOfPlayer(lv_deadPlayer);
    UIAlert("YourHeroHasDied", lv_deadPlayer, StringToText(""), null);
    lv_deadPlayerTeamGroup = libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer);
    lv_killingTeamGroup = libGame_gf_EnemyPlayerGroupOfPlayer(lv_deadPlayer);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:4618

    }

    UIAlert("HearthstoneUsed", lv_hearthstonePlayer, StringToText(""), null);
    libGame_gf_SendEventHeroPortedBackToTown(lv_hearthstonePlayer, lv_hearthstoneUnit);
    return true;

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

        	if (lv_itPlayer<0) { break; }
        	if ((PlayerGroupHasPlayer(lp_killingGroup, lv_itPlayer) == true)) {
            UIAlert("EnemyHeroKilled", lv_itPlayer, StringToText(""), null);
            libGame_gv_players[lv_itPlayer].lv_multikillStreak += 1;
            libGame_gf_HeroDeathStartMultikillTimerForPlayer(lv_itPlayer);

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

    libUIUI_gf_FullscreenOverlaysShowHideDeathOverlay(false, lp_player);
    TextTagDestroy(libGame_gv_players[lp_player].lv_gravestoneTextTag);
    UIAlert("YourHeroHasRevived", lp_player, StringToText(""), null);
    libGame_gf_AfkResumeWarningTimerForPlayer(lp_player);
    libNtve_gf_SendActorMessageToUnit(lv_heroUnit, "Signal Respawn");

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

    }

    UIAlert("YourHeroHasBeenRooted", UnitGetOwner(lv_unit), StringToText(""), null);
    return true;
}

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

    }

    UIAlert("YourHeroHasBeenStunned", UnitGetOwner(lv_unit), StringToText(""), null);
    return true;
}

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

    lv_deadPlayerTeam = libGame_gf_TeamNumberOfPlayer(lv_deadPlayer);
    lv_deadHeroPosition = UnitGetPosition(lv_deadHero);
    UIAlert("YourHeroHasDied", lv_deadPlayer, StringToText(""), null);
    lv_deadPlayerTeamGroup = libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer);
    lv_killingTeamGroup = libGame_gf_EnemyPlayerGroupOfPlayer(lv_deadPlayer);

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2004


    lv_gallPlayer = libGDHL_gv_chogallPairs[libGame_gf_TeamNumberOfPlayer(UnitGetOwner(EventUnit()))].lv_gallPlayer;
    UIAlert("YourHeroHasBeenRooted", lv_gallPlayer, StringToText(""), null);
    return true;
}

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:329

    libGame_gf_SendEventHeroRespawn(lp_player, lv_dVaPilotUnit);
    libUIUI_gf_FullscreenOverlaysShowHideDeathOverlay(false, lp_player);
    UIAlert("YourHeroHasRevived", lp_player, StringToText(""), null);
    libGame_gf_AfkResumeWarningTimerForPlayer(lp_player);
    libNtve_gf_SendActorMessageToUnit(lv_dVaMechUnit, "Signal Respawn");

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7520

        if (lv_indexPlayer < 0) { break; }
        if ((lp_type == c_gameOverVictory)) {
            UIAlert("VictoryAlertCoop", lv_indexPlayer, StringToText(""), null);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7524


        if ((lp_type == c_gameOverDefeat)) {
            UIAlert("DefeatAlertCoop", lv_indexPlayer, StringToText(""), null);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7528


        if ((lp_type == c_gameOverTie)) {
            UIAlert("DrawAlertCoop", lv_indexPlayer, StringToText(""), null);
        }