使用
// 显示左侧广播
local gameEvent = {}
gameEvent["player_id"] = unit:GetPlayerID()
gameEvent["int_value"] = 123
gameEvent["locstring_value"] = unit:GetUnitName()
gameEvent["teamnumber"] = -1
gameEvent["message"] = "#Custom_KillCreature"
FireGameEvent( "dota_combat_event_message", gameEvent )
// 显示错误信息
GameEvents.SendEventClientSide("dota_hud_error_message", {"splotscreenplayer":Players.GetLocalPlayer(), "reson":80, "message":msg});
文本范例
"Custom_KillCreature" "{s:player_name} <panel class='CombatEventKillIcon'/> {s:locstring_value}"
"Custom_ReceiveBenefit" "{s:player_name} 领取了<font color='#ffd825'>{d:int_value}</font><panel class='CombatEventGoldIcon'/>({s:locstring_value}%暴击)"
头顶字
SendOverheadEventMessage(nil, OVERHEAD_ALERT_GOLD, caster, gold, nil)
OVERHEAD_ALERT_BLOCK: 8
OVERHEAD_ALERT_BONUS_POISON_DAMAGE: 9
OVERHEAD_ALERT_BONUS_SPELL_DAMAGE: 4
OVERHEAD_ALERT_CRITICAL: 2
OVERHEAD_ALERT_DAMAGE: 6
OVERHEAD_ALERT_DENY: 1
OVERHEAD_ALERT_EVADE: 7
OVERHEAD_ALERT_GOLD: 0
OVERHEAD_ALERT_HEAL: 10
OVERHEAD_ALERT_LAST_HIT_CLOSE: 14
OVERHEAD_ALERT_LAST_HIT_EARLY: 13
OVERHEAD_ALERT_LAST_HIT_MISS: 15
OVERHEAD_ALERT_MANA_ADD: 11
OVERHEAD_ALERT_MANA_LOSS: 12
OVERHEAD_ALERT_MISS: 5
OVERHEAD_ALERT_XP: 3
可使用字段
CombatEventGoldIcon
CombatEventKillIcon
CombatEventCourierIcon
GlyphIcon
CombatEventHeroIcon
RoshanIcon
RadarIcon
AegisIcon
DeniedIcon
CavernRoshanIcon
CheeseIcon
BattlePoints2018Icon