|
- function Trig_KOward_Actions takes nothing returns nothing
- local string str
- local integer i = GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))
- local unit u=udg_PlayerListUnits
- local player pr=GetOwningPlayer(GetKillingUnitBJ())
- local integer x=10*GetHeroLevel(GetTriggerUnit())+300
- //=================
- set str = ( GetHeroProperName(GetTriggerUnit()) + ( "[" + ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + "]" ) ) )
- set str = ( "|c00FF0303" + str )
- set str = ( str + "|r" )
- set str = ( str + "被" )
- set str = ( str + "|c00FF0303" )
- set str = ( str + ( GetHeroProperName(u) + ( "[" + ( GetPlayerName(pr) + "]" ) ) ) )
- set str = ( str + "|r" )
- set str = ( str + "推倒!!" )
- call DisplayTimedTextToForce( GetPlayersAll(), 5.00, str )
- set str=null
- set str = ( GetHeroProperName(u) + ( "[" + ( GetPlayerName(pr) + "]" ) ) )
- set str = ( "|c00FF0303" + str )
- set str = ( str + "|r" )
- set str = ( str + "获得")
- set str = ( str + I2S(x))
- set str = ( str+"金币的奖励。其同盟单位获得200金币的奖励" )
- call DisplayTimedTextToForce( GetPlayersAll(),5.00, str )
- //=================
- call KillHeroWard(i,x)
- set u=null
- set str=null
- set pr=null
- endfunction
复制代码
========
这是我地图里的奖励函数
因为地图越后期越卡(一个小时),实在没发现还有什么泄露了~~ |
|