|
发表于 2007-3-14 15:36:19
|
显示全部楼层
楼主的触发器只要其中一半就够了~~就是一开始去掉玩家制造召唤者的能力~~
然后科技研发完成后召唤者自动会出来的~~不用再额外给一个触发器来归还玩家制造召唤者的能力了~~
其实兽人的巨魔猎头者和人类蒸汽坦克都是这样做的~~只是那部分被暴雪有意隐藏了而已~~
触发编辑器里就看不到了~~
其实在地图里暴雪也是用限制科技来解决的~~
[codes=jass]
function InitSummonableCaps takes nothing returns nothing
local integer index
set index = 0
loop
// upgraded units
// Note: Only do this if the corresponding upgrade is not yet researched
// Barrage - Siege Engines
if (not GetPlayerTechResearched(Player(index), 'Rhrt', true)) then
call SetPlayerTechMaxAllowed(Player(index), 'hrtt', 0)
endif
// Berserker Upgrade - Troll Berserkers
if (not GetPlayerTechResearched(Player(index), 'Robk', true)) then
call SetPlayerTechMaxAllowed(Player(index), 'otbk', 0)
endif
// max skeletons per player
call SetPlayerTechMaxAllowed(Player(index), 'uske', bj_MAX_SKELETONS)
set index = index + 1
exitwhen index == bj_MAX_PLAYERS
endloop
endfunction
[/codes] |
|