找回密码
 点一下
查看: 4534|回复: 9

自动定位目标的刀阵旋风(这个其实是给疑难区一个提问者做的说明演示啦)

  [复制链接]
发表于 2008-3-10 11:49:48 | 显示全部楼层 |阅读模式
输入地图上任何可见单位的名字~~这样你下一次使用刀阵旋风~~就会直接只命中那个目标~~其实就是添加分类触发的超基础应用啦~~因为正好给疑难区一个人做演示就顺便放技能区来了~~

那个提问帖子是
http://www.islga.org/bbs/read.php?tid=11363

演示在此了~~将刀阵的目标判定改为air,ground,structure,sapper~~最大目标数改为1~~投射图像改为导弹~~范围为全地图~~


然后增加下列触发~~
[trigger]
HomingFanKnife
    Events
        Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
    Conditions
    Actions
        Set ug = (Units in (Entire map))
        Unit Group - Pick every unit in ug and do (Actions)
            Loop - Actions
                Unit - Remove A sapper classification from (Picked unit)
        Custom script:   call DestroyGroup( udg_ug )
        Set ug = (Units in (Entire map) matching ((Entered chat string) Equal to (Name of (Matching unit))))
        Unit Group - Pick every unit in ug and do (Actions)
            Loop - Actions
                Unit - Add A sapper classification to (Picked unit)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in ug) Not equal to 0
            Then - Actions
                Game - Display to (All players) the text: ((Entered chat string) + 定位完毕)
            Else - Actions
                Game - Display to (All players) the text: 定位失败,找不到目标
        Custom script:   call DestroyGroup( udg_ug )
[/trigger]
HomingFanKnife.jpg

HomingFanKnife.w3x

11 KB, 下载次数: 148

评分

参与人数 1威望 +10 收起 理由
OrS + 10 原创内容

查看全部评分

发表于 2008-3-10 12:12:59 | 显示全部楼层


学习下
回复

使用道具 举报

 楼主| 发表于 2008-3-10 12:16:30 | 显示全部楼层
当然如果要在多人下使用~~需要稍稍修改一下~~在开始技能效果时再进行分类的添加~~在0.00秒后删除分类~~
回复

使用道具 举报

 楼主| 发表于 2008-3-10 12:53:26 | 显示全部楼层
加个多人版罢~~

[trigger]
Init
    Events
        Map initialization
    Conditions
    Actions
        Visibility - Disable fog of war
        Visibility - Disable black mask
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Trigger - Add to TargetCheck <gen> the event (Player - (Picked player) types a chat message containing <Empty String> as A substring)
[/trigger]
[trigger]
TargetCheck
    Events
    Conditions
    Actions
        Set ug = (Units in (Entire map) matching ((Entered chat string) Equal to (Name of (Matching unit))))
        Set Target[(Player number of (Triggering player))] = (Random unit from ug)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in ug) Not equal to 0
            Then - Actions
                Game - Display to (All players) the text: ((Entered chat string) + 定位完毕)
            Else - Actions
                Game - Display to (All players) the text: 定位失败,找不到目标
        Custom script:   call DestroyGroup( udg_ug )
[/trigger]
[trigger]
EffectStart
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
    Actions
        Set tmpTarget = Target[(Player number of (Triggering player))]
        Unit - Add A sapper classification to tmpTarget
        Countdown Timer - Start Timing as a One-shot timer that will expire in 0.00 seconds
[/trigger]
[trigger]
RemoveClassification
    Events
        Time - Timing expires
    Conditions
    Actions
        Unit - Remove A sapper classification from tmpTarget

[/trigger]

HomingFanKnife.w3x

12 KB, 下载次数: 64

回复

使用道具 举报

发表于 2008-3-10 12:58:41 | 显示全部楼层
很好很强大的跟踪导弹.
回复

使用道具 举报

发表于 2008-3-10 13:23:43 | 显示全部楼层
...要的就是这个...
感谢LZ...感谢LZ...
回复

使用道具 举报

发表于 2008-3-10 16:36:03 | 显示全部楼层
虚心求教
回复

使用道具 举报

发表于 2008-3-10 18:45:13 | 显示全部楼层
为什么触发器贴上来我这里显示的是“'); //-->”呢
回复

使用道具 举报

 楼主| 发表于 2008-4-27 09:48:44 | 显示全部楼层
这个是触发器标签在其他浏览器下的显示问题~~

请用IE浏览器察看~~
回复

使用道具 举报

发表于 2008-4-27 11:44:25 | 显示全部楼层
又一个被我爱的人~~~

忒强大了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-28 19:39 , Processed in 0.106902 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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