怎么让侍僧对金矿发布建造不死金矿命令
魔兽地图编辑器吧
全部回复
仅看楼主
level 7
禾洛_ 楼主
怎么让侍僧对金矿发布建造不死金矿命令
2011年06月27日 03点06分 1
level 6
发布建造命令到点,到坐标貌似不行
2011年06月27日 03点06分 2
level 9
哈哈哈哈哈哈哈哈哈哈
2011年06月27日 03点06分 3
level 7
禾洛_ 楼主
哦,我用点试试。
2011年06月27日 03点06分 4
level 7
禾洛_ 楼主
坐标确实不行。
2011年06月27日 03点06分 5
level 7
禾洛_ 楼主
点也不行啊月大。
2011年06月27日 07点06分 6
level 7
禾洛_ 楼主
好吧我赢了,我让金矿可以升级成闹鬼金矿,然后发布建造升级命令给金矿并改变所属。。。
2011年06月27日 07点06分 7
level 12
发布命令到单位
2011年06月27日 07点06分 8
level 6
测试了一下,发布到金矿位置可以啊
2011年06月27日 07点06分 9
level 7
禾洛_ 楼主
嗯,可以了,刚才不行是因为金矿保护的原因,被别的农民采过的金矿n秒内不能建造。
2011年06月27日 08点06分 10
level 7
禾洛_ 楼主
我扒了一下BJ函数,发现最后扒出了一个
IssueTargetOrderById(whichPeon, 'ugol', goldMine)
那么这个ugol命令就是建造不死金矿命令了。
2011年06月27日 08点06分 11
level 7
禾洛_ 楼主
function IssueHauntOrderAtLocBJ takes unit whichPeon, location loc returns boolean
local group g = null
local unit goldMine = null
// Search for a gold mine within a 1-cell radius of the specified location.
set g = CreateGroup()
call GroupEnumUnitsInRangeOfLoc(g, loc, 2*bj_CELLWIDTH, filterIssueHauntOrderAtLocBJ)
set goldMine = FirstOfGroup(g)
call DestroyGroup(g)
// If no mine was found, abort the request.
if (goldMine == null) then
return false
endif
// Issue the Haunt Gold Mine order.
return IssueTargetOrderById(whichPeon, 'ugol', goldMine)
endfunction

2011年06月27日 08点06分 12
level 6
ugol是不死金矿的id
看来和学习技能发布的命令即技能id是一个道理了
2011年06月27日 08点06分 13
1