欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jass 重置英雄

程序员文章站 2024-03-17 19:47:04
...


//重置英雄
function InitTrig_Reset_Unit takes nothing returns nothing
	set gg_trg_Reset_Unit = CreateTrigger()
	call Add_Conditions_For_Player(gg_trg_Reset_Unit,"-r",true)
	call TriggerAddAction(gg_trg_Reset_Unit,function Trig_Reset_Unit_Actions)
	call DisplayTimedTextToForce(GetPlayersAll(),30.00,"|cFFFFFF00在英雄等级为1,没有购买任何物品的情况下,你将有60秒的时间来重新随机技能。\n\n40秒后如果同阵营有玩家没有使用替换机会,则你可以再次输入-r替换英雄。|r")
	call PolledWait(40.00)
	set cz_share_flag = 1
	call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|cFFFFFF00同阵营重置机会共享开启。60秒后关闭重置功能。|r")
	call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|cFFFFFF00蜀国剩余重置机会数:" + I2S(GetChongZhiJiHui(2) + GetChongZhiJiHui(3)+ GetChongZhiJiHui(4)+ GetChongZhiJiHui(5)+ GetChongZhiJiHui(6)))
	call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|cFFFFFF00魏国剩余重置机会数:" + I2S(GetChongZhiJiHui(8) + GetChongZhiJiHui(9)+ GetChongZhiJiHui(10)+ GetChongZhiJiHui(11)+ GetChongZhiJiHui(12)))
	call PolledWait(60.00)
	call DisableTrigger(gg_trg_Reset_Unit)
	call DisplayTimedTextToForce(GetPlayersAll(),10.00,"|cFFFFFF00重置功能已关闭。|r")
endfunction


相关标签: jass 魔兽争霸