找回密码
 点一下
查看: 2379|回复: 3

双击选英雄[英文]

  [复制链接]
发表于 2008-1-25 18:27:49 | 显示全部楼层 |阅读模式
最近很多人问这个 我研究了一下 觉得应该没问题

Preparation: variables: Group units - U player group - NO SELECT, Boolean group - HAS SELECT
First in the initial map, all the players into NO SELECT

Events:
-- Audience - a select audience X units - Several Several Lane
Environment:
-- NO SELECT trigger in the audience really mean
-- Trigger unit is equivalent to a true hero
-- Triggered the owner of equivalent units neutral invincible Italy
Actions:
-- If, then, or else
   If
     HAS SELECT (trigger player index) equal to leave
   Then
     Set HAS SELECT (trigger player index) really mean
     U settings (trigger player index) = Trigger units
     Skip this action behind all the moves
   Otherwise,
     DN
-- If, then, or else
   If
     HAS SELECT (trigger player index) really mean
   Then
     If, then, or else
       If
         Trigger is equivalent to U (players triggered players index)
       Then
         Units - the creation of a unit to trigger the type of units to trigger player in the region - the face --
         Lens - triggered camera to the regional audience translation - time --
         Players Group - removing the trigger from the audience NO SELECT
       Otherwise,
         U settings (players audience trigger Index) = Trigger units
   Otherwise,
     DN
发表于 2008-1-26 10:44:33 | 显示全部楼层
这个~~~除了变量还有啥英文的 ,另外,如果是多人游戏的话,最好可以添加时间判断,过期作废,否则会出现误操作……另外,最好可以用事件:单位被选定,然后判断选定单位的自定义数(这个最不容易误差)是否为指定数(比如是不是1),如果是1就可以创建单位了,否则,就给单位自定义数加1,然后过0.2秒左右将自定义数归零……我记得以前是这样做的,现在记不清了,时间太久了……
回复

使用道具 举报

发表于 2008-2-3 09:43:55 | 显示全部楼层
有必要这么麻烦吗?
回复

使用道具 举报

发表于 2008-2-3 21:26:29 | 显示全部楼层
我承认是被标题吸引来的。。。貌似文不对题
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 22:34 , Processed in 0.050673 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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