找回密码
 点一下
查看: 2033|回复: 6

比较糟糕的触发 不知道错在哪(谢谢zhuzeitou)

[复制链接]
发表于 2008-2-26 11:29:39 | 显示全部楼层 |阅读模式
我不知道怎么把T发上来 就把地图发上来了

触发CreepSpawn
就是T夹杂自定义代码那个

(4)NewHeroes.w3x

709 KB, 下载次数: 18

发表于 2008-2-26 13:21:51 | 显示全部楼层
call ExecuteFunc(CreateCreep(dyl,la))

ExecuteFunc函数调用的参数是string

[codes=jass]function CreateCreep takes integer dyl,location la returns nothing
    if ( dyl == 10 ) then
        call CreateNUnitsAtLoc( 1, ChooseRandomCreepBJ(GetRandomInt(1, 10)), Player(PLAYER_NEUTRAL_AGGRESSIVE), la, GetRandomReal(0, 359.00 ))
    else
        call CreateNUnitsAtLoc( 1, ChooseRandomCreepBJ( dyl + 1 ), Player(PLAYER_NEUTRAL_AGGRESSIVE), la, GetRandomReal(0, 359.00 ))
    endif
endfunction[/codes]
这个函数返回值是nothing,所以出错了
回复

使用道具 举报

 楼主| 发表于 2008-2-26 17:35:02 | 显示全部楼层
很感谢
那么 应该返回什么?
回复

使用道具 举报

发表于 2008-2-26 17:43:14 | 显示全部楼层
应该把ExecuteFunc(CreateCreep(dyl,la))改成call CreateCreep(dyl,la)吧………………

其它类似
回复

使用道具 举报

 楼主| 发表于 2008-2-26 17:48:20 | 显示全部楼层
还是不行...... 也许还有其他问题?
回复

使用道具 举报

 楼主| 发表于 2008-2-26 18:01:19 | 显示全部楼层
恩.....修改了Execute的参数为文本后
确定了剩下是那2个AddSpecialEffect的问题了
回复

使用道具 举报

 楼主| 发表于 2008-2-26 18:06:50 | 显示全部楼层
结果是有行代码的
Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl
\\应为\\\\
.......
问题是我从T转过来修改的 怎么会少个\\............
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-7-6 02:17 , Processed in 0.033245 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表