function BqZ takes nothing returns nothing call TriggerAddAction(Bj,function BqU) call TriggerAddCondition(BJ,Condition(function BqY)) endfunction function Bqa takes nothing returns nothing if Lz and Ly and Ix<1000 then call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,Rd) endif endfunction 木头上限600 修改为60000 修改1: constant integer Rd=60000 只需要修改定义变量的地方就行 if GetPlayerState(Fe,PLAYER_STATE_RESOURCE_GOLD)0 then set rg=-1. endif if not (rg>0.) then set P0=IM==2 set IW=IM==10 call Bep() call BZY(rm) call BZj(ro) call FogMaskEnable(true) call FogEnable(true) call ResetToGameCamera(0.) call ShowInterface(true,.1) call EnableUserUI(true) call DisplayTimedTextToPlayer(GetLocalPlayer(),0.,0.,20.,"投票结果:"+IQ[IM]) call TriggerEvaluate(BE) call TriggerEvaluate(BF) endif endfunction function Bfd takes nothing returns nothing call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) call DisplayTextToPlayer(GetLocalPlayer(),0.,0.," ") call DisplayTextToPlayer(GetLocalPlayer(),0.,0.," ") call DisplayTimedTextToPlayer(GetLocalPlayer(),0.,0.,3600.,"|cffffcc00任务成功|r") call DisplayTextToPlayer(GetLocalPlayer(),0.,0.," ") call DisplayTimedTextToPlayer(GetLocalPlayer(),0.,0.,3600.," - 乌瑟尔存活") call DisplayTimedTextToPlayer(GetLocalPlayer(),0.,0.,3600.," - 守住了城堡") call DisplayTimedTextToPlayer(GetLocalPlayer(),0.,0.,3600.," - 摧毁了全部感染来源") call DisplayTextToPlayer(GetLocalPlayer(),0.,0.," ") call DisplayTextToPlayer(GetLocalPlayer(),0.,0.," ") call DisplayTextToPlayer(GetLocalPlayer(),0.,0.," ") endfunction 完成 function config takes nothing returns nothing call SetMapName("随机能力坦克防守 458") call SetMapDescription("|cFFFFCC00云狐汉化|r\n基于 |cFFFFCC00Arakunido#2982|r 的英文版本\n修改木头存储上限,修改随机更换装备的价格为1木头,其他没变 chainofhonor 2022-06-10") call SetPlayers(12) call SetTeams(12) call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER) call DefineStartLocation(0,-320.,1664.) call DefineStartLocation(1,-320.,1664.) call DefineStartLocation(2,-320.,1664.) call DefineStartLocation(3,-320.,1664.) call DefineStartLocation(4,-320.,1664.) call DefineStartLocation(5,-320.,1664.) call DefineStartLocation(6,-320.,1664.) call DefineStartLocation(7,-320.,1664.) call DefineStartLocation(8,-320.,1664.) call DefineStartLocation(9,-320.,1664.) call DefineStartLocation(10,-320.,1664.) call DefineStartLocation(11,-320.,1664.) call CvQ() call CvR() call CvS() endfunction 修改三:修改地图创建的时候的描述 好像没效果 function BqB takes nothing returns nothing local trigger In=CreateTrigger() call TriggerAddAction(In,function Bp9) call TriggerRegisterTimerEvent(In,1.,true) set In=null call SuspendTimeOfDay(false) set Q1=CreateTimerDialog(Bi) call TimerDialogSetTitle(Q1,"防守20分钟") call TimerDialogDisplay(Q1,true) endfunction function BqC takes nothing returns nothing call TimerStart(Bi,MB,false,null) call PauseTimer(Bi) if MB==1200 then call TimerDialogSetTitle(Q1,"|cFFFF4040最后一波|r") endif endfunction 这个是右上角的提示 这个Bi估计就是计时器 function Bt0 takes player Fe returns nothing local integer Qy=BYW(Fe) local integer il=1 if il>1 then call DisplayTextToPlayer(Fe,0.,0.,"蝶引来生的效果缩短了"+I2S(Qy-il)+"秒复活时间!") else call DisplayTextToPlayer(Fe,0.,0.,"蝶引来生的效果使你立即复活!") endif call BYX(Fe,il) endfunction function BpP takes nothing returns nothing local unit Ff local player Fe local integer Qu if GetOwningPlayer(GetDyingUnit())==null then return endif set Ff=GetDyingUnit() set Fe=GetOwningPlayer(GetDyingUnit()) set Qu=10+IMinBJ(Iv/2,10) call BYX(Fe,Qu) if Qw[GetPlayerId(Fe)]==null then set Qw[GetPlayerId(Fe)]=CreateTimer() call SaveInteger(X,GetHandleId(Qw[GetPlayerId(Fe)]),10,GetPlayerId(Fe)) endif call DisplayTimedTextToPlayer(GetLocalPlayer(),0.,0.,10.,KL[GetPlayerId(Fe)]+GetHeroProperName(Ff)+"|r (等级 "+I2S(GetHeroLevel(Ff))+") 被击毁,"+I2S(Qu)+"秒后重新出击") 修改4:修改复活时间为1秒 function BXr takes nothing returns nothing set NP[1]="|c00b0b000" set NP[2]="|c00d0d0d0" set NP[3]="|c00ffff00" set NP[4]="|c00ffffd0" set NP[5]="|c0080b0ff" set NP[6]="|c0000ff00" set NP[7]="|c00404040" set NQ[1]="学员" set NQ[2]="少尉" set NQ[3]="上尉" set NQ[4]="少校" set NQ[5]="上校" set NQ[6]="少将" set NQ[7]="上将" set NR[1]="100" set NR[2]="200" set NR[3]="300" set NR[4]="400" set NR[5]="500" set NR[6]="700" set NR[7]="900" 这里是玩家选择难度的按钮