|
发表于 2006-3-29 20:00:06
|
显示全部楼层
剑过大大写的无Bug英雄复活,我不知道这算T还是J
Events: A unit die
Conditions:Dying unit is a hero = ture
Actions:
Custorm script:local unit dyinghero = null
Custorm script:local timerdialog timerdlg = null
Custorm script:local timer timer1 = CreateTimer( )
Custorm script:set dyinghero = GetDyingUnit( )
Custorm script:call CreateTimerDialogBJ( timer1, GetHeroProperName(dyinghero) )
Custorm script:set timerdlg = GetLastCreatedTimerDialogBJ()
Custorm script:call StartTimerBJ( timer1, false, 10.00 )
wait 10.00 seconds
Custorm script:call DestroyTimerDialogBJ( timerdlg )
Custorm script:call ReviveHeroLoc( dyinghero, GetRectCenter(gg_rct_XXXX), true )
Copy this trigger to your map .And change the \"gg_rct_XXXX\" to the name of area which used to revive heros in yourself\'s map in the last custorm script . |
|