中国星际RPG联盟

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10703|回复: 9
打印 上一主题 下一主题

[已解决] 为什么会重复创建单位

[复制链接]
楼主
发表于 2014-4-20 11:46:18 | 显示全部楼层
只讲第一个,第二个原理相同,开关默认是关闭的,无需设定

//-----------------------------------------------------------------//
Conditions:
    Switch(Switch 32, Clear);
    Bring(Current Player, Exactly, 1, Unit 230, Location 34);

Actions:
    SetSwitch(Switch 32, Set);
    CreateUnitWithProperties(1, Unit 107, Location 34, Current Player, 1);
    Preserve Trigger();

//-----------------------------------------------------------------//

Conditions:
    Switch(Switch 32, Set);
    Bring(Current Player, Exactly, 0, Unit 230, Location 34);

Actions:
    SetSwitch(Switch 32, Clear);
    Preserve Trigger();
//-----------------------------------------------------------------//

判断单位是不是钻地:http://www.scrpg.net/thread-458-1-1.html
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-27 14:04 , Processed in 1.171875 second(s), 18 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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