中国星际RPG联盟

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3008|回复: 0
打印 上一主题 下一主题

Burrow Detection

[复制链接]
跳转到指定楼层
楼主
发表于 2013-8-20 21:13:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
by LegacyWeapon
You will need a 1x1 pixel location. You can create one with StarForge or SCMDraft2. It should be a tiny dot (not a grid square). We will call it \"L\".

If we create a unit over a location but the location is not big enough to fit, the unit will still be created but not within the location. We will use this to our advantage by creating a trigger that does the following:

-Create a unit over a 1x1 (pixel) location.
--If the unit is on the location, then the unit is still burrowed.
---Actions to take.

--If the unit is not on the location, then the unit is unburrowed.
---Actions to take.

Please note that a Switch is used. This is to simplify the process for newer people; obviously, (isolated) death counts, score, etc, will still work.

Trigger
Conditions:
¤ Switch 1 is Cleared (To start the chain)
Actions:
¤ Center location labeled &#39L' on Unit (the Unit that is being detected as to whether or not it's burrowed) owned by Player at 'Anywhere'

¤ Create 1 Probe (or anything other ground unit) at &#39L' for Computer

¤ Set Switch 1

¤ Preserve trigger.


Trigger
Conditions:
¤ Computer brings at least 1 Probe to &#39L'

¤ Switch 1 is Set
Actions:
¤ Remove Probe at 'SL'

¤ Actions if the unit is burrowed.

¤ Clear Switch 1

¤ Preserve Trigger


Trigger
Conditions:
¤ Player Comp brings exactly 0 Probes to &#39L'.

¤ Switch 1 is Set
Actions:
¤ Remove Probe at Anywhere (or the specificed location close to &#39L')

¤ Actions if the unit is not burrowed.

¤ Clear Switch 1

¤ Preserve Trigger


Updated by CheeZe
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|网站统计|手机版|小黑屋|中国星际RPG联盟    

GMT+8, 2024-5-4 06:20 , Processed in 1.156250 second(s), 19 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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