找回密码
 点一下
查看: 1098|回复: 11

jass_local unit u = **()会连续的不?

[复制链接]
发表于 2008-12-12 23:35:42 | 显示全部楼层 |阅读模式
①local unit u = **()会连续的不?

②[codes=jass]native   AddUnitToStock      takes unit whichUnit, integer unitId, integer currentStock, integer stockMax returns nothing[/codes]
native带头的是本地函数?


[codes=jass]//触发1
function Trig_A00N_Func003A takes nothing returns nothing
    local destructable d = GetDyingDestructable()
    call KillDestructable(d)
    set d = null
endfunction
function Trig_A00N_B takes nothing returns nothing
call EnumDestructablesInRect(r,null,function Trig_A00N_Func003A)
endfunction
//触发2
function Trig_A01A_B takes nothing returns nothing
call EnumDestructablesInRect(r,null,function Trig_A00N_Func003A)
endfunction[/codes]
2个不同的触发器,触发2调用触发1的函数.会不会有问题?
发表于 2008-12-13 01:05:32 | 显示全部楼层
第一个就看不懂………………什么叫会连续的不??
第二个应该是的
第三个完全没问题
回复

使用道具 举报

发表于 2008-12-13 01:13:53 | 显示全部楼层
LZ的意思我觉得应该是 local unit u 在2个触发中会不会像全局变量那样,导致混淆。
回复

使用道具 举报

发表于 2008-12-13 01:14:59 | 显示全部楼层
局部变量各管各的,混不起来
回复

使用道具 举报

 楼主| 发表于 2008-12-13 01:23:38 | 显示全部楼层
[jass]我还想问,函数名.
function RunCodeFunction takes code s returns nothing
endfunction
上面这句出现在http://www.islga.org/bbs/read.php?tid=2268&keyword
将上面改为下面这样,可以在WE上保存.但是这样会不会有问题的?
function RunCodeFunction takes integer i returns nothing
endfunction

啊,不是说本地函数会导致玩家掉线的么?[/jass]
回复

使用道具 举报

发表于 2008-12-13 01:24:39 | 显示全部楼层
c2i么?貌似么什么问题吧

本地函数没有接触过,所以不便给回答
回复

使用道具 举报

 楼主| 发表于 2008-12-13 01:26:15 | 显示全部楼层
函数名不关事的么?
回复

使用道具 举报

发表于 2008-12-13 01:29:00 | 显示全部楼层
函数名官什么事………………你喜欢你取名为abcdefghijklmnopqrstuvwxyz也不要紧
函数名只是给你调用函数用的,不重复没有非法字符不是数字开头应该都没问题的
回复

使用道具 举报

 楼主| 发表于 2008-12-13 01:30:28 | 显示全部楼层
我还想问吖.咔咔~
永久沉默是怎么会事?为什么会?
回复

使用道具 举报

发表于 2008-12-13 01:31:34 | 显示全部楼层
永久沉默?是不是沉默的持续时间设为0了?
回复

使用道具 举报

 楼主| 发表于 2008-12-13 01:33:35 | 显示全部楼层
不知道喔.看CH里面不是有说这个问题的么?
回复

使用道具 举报

发表于 2008-12-13 01:36:37 | 显示全部楼层
CH………………从未关心过………………
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-21 12:26 , Processed in 0.074406 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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