找回密码
 点一下
查看: 1922|回复: 16

[Jass语言]我把触发器转换成文本看了看

[复制链接]
发表于 2007-8-16 10:59:39 | 显示全部楼层 |阅读模式
function Trig_LWDroped_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00E' ) ) then
        return false
    endif
    return true
endfunction

刚刚转出来的

似乎对于触发器 LWDroped 后面的不懂  什么什么判断的布尔值
如果 (not) 获取单位类型为(触发单位)是自定义单位n00E
则 。。。。。

不懂不懂

结束Function

LWDroped
    事件
        单位 - 任意单位 死亡

    条件
        ((触发单位) 的类型) 等于 冰霜的剧毒蝎子领主 (等级 8)

不知道怎么能够对上号
发表于 2007-8-16 13:22:37 | 显示全部楼层
你贴出来的jass只是条件部分的内容
回复

使用道具 举报

发表于 2007-8-16 13:26:30 | 显示全部楼层
function Trig_LWDroped_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00E' ) ) then
        return false
    endif
    return true
endfunction

function XXX takes nothing returns 布尔值 //(这个function定于的函数将返回一个“是or否”值)
if  (触发单位的类型=='n00E') then  //(一组判断语句)
    返回
endif
  返回
endfunction //(函数定义结束)
回复

使用道具 举报

发表于 2007-8-16 13:37:32 | 显示全部楼层
[codes=jass]
function Trig_LWDroped_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n00E' ) ) then
        return false
    endif
    return true
endfunction
[/codes]


正常我都这样写:
[codes=jass]
function Trig_LWDroped_Conditions takes nothing returns boolean
    return  GetUnitTypeId(GetTriggerUnit()) == 'n00E'
endfunction
[/codes]
回复

使用道具 举报

 楼主| 发表于 2007-8-16 14:04:46 | 显示全部楼层
。。。。。。我还是放弃 J吧,反正SC2不使用J的
回复

使用道具 举报

发表于 2007-8-16 14:42:46 | 显示全部楼层
到SCII的时候也应该放弃的。反正SCIII也不用。
回复

使用道具 举报

 楼主| 发表于 2007-8-16 15:01:35 | 显示全部楼层
,......
回复

使用道具 举报

发表于 2007-8-16 15:22:40 | 显示全部楼层
引用第4楼serangel于2007-08-16 14:04发表的  :
。。。。。。我还是放弃 J吧,反正SC2不使用J的

鄙视,我都写得那么详细,明显lz没有认真看,浪费我的感情55555
回复

使用道具 举报

发表于 2007-8-16 15:45:24 | 显示全部楼层
我看了,后来还加亮了...
回复

使用道具 举报

发表于 2007-8-16 16:34:23 | 显示全部楼层
路过.................
回复

使用道具 举报

发表于 2007-8-16 18:25:20 | 显示全部楼层
明显SC2的脚本比j更高级点(一点点)。。。。
回复

使用道具 举报

发表于 2007-8-16 19:30:19 | 显示全部楼层
哪里听来的。
谁告诉你高级一点点。
简直完全不能相比!
回复

使用道具 举报

 楼主| 发表于 2007-8-16 20:16:15 | 显示全部楼层
。。。。。。
WE用假单位作技能……
总是说命名错误
回复

使用道具 举报

发表于 2007-8-16 20:34:16 | 显示全部楼层
什么叫做“用假单位作技能”?
回复

使用道具 举报

发表于 2007-8-17 01:29:10 | 显示全部楼层
渣V受lua刺激鸟。
回复

使用道具 举报

发表于 2007-8-17 01:38:31 | 显示全部楼层
呃。对了。SCII的脚本应该已经确定了吧?
==================================
看我问的傻问题。
我是说。已经公布了么?
回复

使用道具 举报

发表于 2007-8-17 02:02:51 | 显示全部楼层
  [s:129]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-7 09:37 , Processed in 0.034259 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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