# Create Alert With No Source
Grammar — Create a alertType|Alert Type alert for player player with the text: text (Custom icon: icon)
Flags —Native
|Action
Creates an alert displaying the custom alert text.
# Arguments
string
<gamelink::Alert> — Alert Typeint
— Playertext
— Textstring
<filepath> — Icon
Returns — void
native void UIAlert(
string alert,
int player,
text message,
string icon,
);
# Related
Category: UI / Alerts
- Alert —
void
— TriggerAddEventAlert - Triggering Alert —
string
<gamelink::Alert> — EventAlert - Create Alert At Point —
void
— UIAlertPoint - Create Alert At Unit —
void
— UIAlertUnit - Create Alert With No Source —
void
— UIAlert - Clear Alerts —
void
— UIAlertClear - Show/Hide Alert Type —
void
— UISetAlertTypeVisible
# Examples
mods/heroesdata.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:4618
}
UIAlert("HearthstoneUsed", lv_hearthstonePlayer, StringToText(""), null);
libGame_gf_SendEventHeroPortedBackToTown(lv_hearthstonePlayer, lv_hearthstoneUnit);
return true;
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14343
}
UIAlert("YourHeroHasBeenRooted", UnitGetOwner(lv_unit), StringToText(""), null);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14401
}
UIAlert("YourHeroHasBeenStunned", UnitGetOwner(lv_unit), StringToText(""), null);
return true;
}
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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.sc2mod — base.sc2data/LibCOMI.galaxy:7520
if (lv_indexPlayer < 0) { break; }
if ((lp_type == c_gameOverVictory)) {
UIAlert("VictoryAlertCoop", lv_indexPlayer, StringToText(""), null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:7524
if ((lp_type == c_gameOverDefeat)) {
UIAlert("DefeatAlertCoop", lv_indexPlayer, StringToText(""), null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:7528
if ((lp_type == c_gameOverTie)) {
UIAlert("DrawAlertCoop", lv_indexPlayer, StringToText(""), null);
}