找回密码
 点一下
楼主: cq123456

{}怎么判断 区域内 某个玩家单位的存活

[复制链接]
 楼主| 发表于 2007-8-26 15:41:21 | 显示全部楼层
搞得像我有病一样
回复

使用道具 举报

发表于 2007-8-26 15:41:50 | 显示全部楼层
引用第19楼cq123456于2007-08-26 15:40发表的  :
  
  终于 出来了



.......
原来你便秘呀,MY GOD!....
回复

使用道具 举报

 楼主| 发表于 2007-8-26 15:53:33 | 显示全部楼层
多个东西出来


  在这样下去会疯的
{78068983-AAE2-4C65-A550-2C7CF1CB1846}.BMP
回复

使用道具 举报

 楼主| 发表于 2007-8-26 15:58:59 | 显示全部楼层
引用第14楼OrS于2007-08-26 15:34发表的  :
[trigger]
条件-
(DOOR1 <预设> 内满足 ((((匹配单位) 是存活的) 等于 TRUE) and (((匹配单位) 是 玩家1(红色) 的敌对单位) 等于 TRUE)) 的所有单位)=0
动作-[/trigger]

.......




   全部单位
   貌似必须有
      你是浪个做的?
{63942DF0-57DF-4394-9C09-08EFCA269403}.BMP
回复

使用道具 举报

发表于 2007-8-26 16:33:44 | 显示全部楼层
............................

~!@#$%^.w3x

17 KB, 下载次数: 14

回复

使用道具 举报

发表于 2007-8-26 16:36:31 | 显示全部楼层
[trigger]
DieOut
    Events
        Unit - A unit Dies
    Conditions
        (Region 000 <gen> contains (Triggering unit)) Equal to True
    Actions
        Set ug = (Units in Region 000 <gen> owned by Player 1 (Red))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (All units of ug are dead) Equal to True
            Then - Actions
                Debug - Debug 报告大王,我们死光了!
            Else - Actions
        Unit Group - Destroy ug
[/trigger]

酱就可以了~~
回复

使用道具 举报

发表于 2007-8-26 17:01:02 | 显示全部楼层
其实上面这个版本只限于单位是"死"完的情况~~也就是最后一个单位死亡造成的区域内单位全灭~~

当然如果楼主地图中也需要考虑到最后一个单位走出区域造成的区域内单位全灭的话~~可以这样修改一下~~

[trigger]
DieOut
    Events
        Unit - A unit Dies
        Unit - A unit leaves Region 000 <gen>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Get the event that fired the trigger) Equal to Dies
                (Region 000 <gen> contains (Triggering unit)) Equal to False
            Then - Actions
                Skip remaining actions
            Else - Actions
        Set ug = (Units in Region 000 <gen> owned by Player 1 (Red))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (All units of ug are dead) Equal to True
            Then - Actions
                Debug - Debug 报告大王,我们死光了!
            Else - Actions
        Unit Group - Destroy ug
[/trigger]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-23 06:36 , Processed in 0.119904 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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