佳丽云

英雄无敌3-WoG中文站

 找回密码
 英雄注册|Register
查看: 5086|回复: 15

有没有高人做个这样的脚本啊?

[复制链接]

该用户从未签到

35

回帖

9048

金币

0

精华

3级 Known Hero

Rank: 3Rank: 3

积分
726
发表于 2012-3-18 12:07:00 | 显示全部楼层 |阅读模式
就是可以禁止电脑行动的脚本,发现混战地图兵一多就容易卡死,还有电脑在几个传送门转来转去也会卡死。   

ZVSE
ERMS_ScriptDate=30.11(November).2008
_WARNING_#1=IMPORTANT! This file is not in a plain text format. NEVER use any editor except ERM_S for making any kind of changes!
ERMS_PoweredBy=ERM Scripter v. 2004.10.5.945
* uses flags 611-616
* uses v1,v2 as temporary variables (not saved between triggers)
* uses z180-188 temporarily (for duration of right-click function)
* uses functions FU149-155
* uses invader timers 7-14 & 21-24
* Flags for Timers (default: enabled)
!#IF:V611/1; orange
!#IF:V612/1; pink
!#IF:V613/1; blue
!#IF:V614/1; tan
!#IF:V615/1; green
!#IF:V616/1; purple
* Enable or Disable individual invader timers by right-clicking the End of Turn
* Hourglass on the Adventure screen, and selecting which timer to enable
* or disable.
!?CM0;
!!CM:I?v1; [Area clicked: v1]
!!FU&v1<>12:E; exit if End Turn not right-clicked
** set up radio-button dialog box: radio-buttons/use v1 for results/initial state
** /z# has header/z# has 1st item description/etc.
!!VRz181:S^选择你想转换的势力:^;
!!VRz180:S^{关闭}^;
!!VRz180&611:S^{选择}^;
!!VRz182:S^橙色 %Z180^; v1=1
!!VRz180:S^{关闭}^;
!!VRz180&612:S^{选择}^;
!!VRz183:S^粉色 %Z180^; v1=2
!!VRz180:S^{关闭}^;
!!VRz180&613:S^{选择}^;
!!VRz184:S^蓝色 %Z180^; v1=4
!!VRz180:S^{关闭}^;
!!VRz180&614:S^{选择}^;
!!VRz185:S^青色 %Z180^; v1=8
!!VRz180:S^{关闭}^;
!!VRz180&615:S^{选择}^;
!!VRz186:S^绿色 %Z180^; v1=16
!!VRz180:S^{关闭}^;
!!VRz180&616:S^{选择}^;
!!VRz187:S^紫色 %Z180^; v1=32
!!VRz188:S^{不选择}^; v1=64
!!IF:G1/1/0/181/182/183/184/185/186/187/188;
!!CM:R0;  [Disable standard right-click operation]
!!FU&v1>32:E; exit if "None" button pushed
!!DO149/1/6/1:P;
!!VRv1:S149+v2;
!!FUv1:P;

!?FU149; get v1's power of 2 in v2
!!VRv1: :2; v1-->v1/2
!!VRv2:Sx16; v2 = number of times function called
!!VRx16&v1=0:S6; set loop counter to exit loop if v1=0
* v1:  1  2  4  8  16  32
* v2:  1  2  3  4   5  6
!?FU150;
!!IF:V610/1;
!!IF&611:V610/0;
* now flag 610 = NOT(flag 611)
!!IF:V611/0;
!!IF&610:V611/1;
!?FU151;
!!IF:V610/1;
!!IF&612:V610/0;
!!IF:V612/0;
!!IF&610:V612/1;
!?FU152;
!!IF:V610/1;
!!IF&613:V610/0;
!!IF:V613/0;
!!IF&610:V613/1;
!?FU153;
!!IF:V610/1;
!!IF&614:V610/0;
!!IF:V614/0;
!!IF&610:V614/1;
!?FU154;
!!IF:V610/1;
!!IF&615:V610/0;
!!IF:V615/0;
!!IF&610:V615/1;
!?FU155;
!!IF:V610/1;
!!IF&616:V610/0;
!!IF:V616/0;
!!IF&610:V616/1;
* Orange Timer Script for "Alexander The Great" map [added occupation check--JHV]
!#TM11:S44/158/14/16;
!?TM11&611;
* first, check if orange is still in the game
!!OW:I4/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E63/8/0; check whether (63,8,0) is occupied (-->F1)
!!HE116&-1:P63/8/0;
!!HE116&-1:O4;
!!HE116&-1:O?v2; check whether assignment was possible
!!HE116&-1/v2<>4:K; kill hero to prevent crashes if orange already had 8 actives
!!UN:E58/6/0; check whether (58,6,0) is occupied (-->F1)
!!HE124&-1:P58/6/0;
!!HE124&-1:O4;
!!HE124&-1:O?v2; check whether assignment was possible
!!HE124&-1/v2<>4:K; kill hero to prevent crashes if orange already had 8 actives
-----------------------------------------------
!#TM21:S51/159/14/16;
!?TM21&611;
* first, check if orange is still in the game
!!OW:I4/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E63/8/0; check whether (63,8,0) is occupied (-->F1)
!!HE120&-1:P63/8/0;
!!HE120&-1:O4;
!!HE120&-1:O?v2; check whether assignment was possible
!!HE120&-1/v2<>4:K; kill hero to prevent crashes if orange already had 8 actives
!!UN:E58/6/0; check whether (58,6,0) is occupied (-->F1)
!!HE121&-1:P58/6/0;
!!HE121&-1:O4; orange player
!!HE121&-1:O?v2; check whether assignment was possible
!!HE121&-1/v2<>4:K; kill hero to prevent crashes if orange already had 8 actives
* Pink Timer Script for "Alexander The Great" map [added occupation check--JHV]
!#TM12:S45/160/14/128;
!?TM12&612;
* first, check if pink is still in the game
!!OW:I7/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E9/142/0; check whether (9,142,0) is occupied (-->F1)
!!HE66&-1:P9/142/0;
!!HE66&-1:O7;
!!HE66&-1:O?v2; check whether assignment was possible
!!HE66&-1/v2<>7:K; kill hero to prevent crashes if player already had 8 actives
!!UN:E5/142/0; check whether (5,142,0) is occupied (-->F1)
!!HE65&-1:P5/142/0;
!!HE65&-1:O7;
!!HE65&-1:O?v2; check whether assignment was possible
!!HE65&-1/v2<>7:K; kill hero to prevent crashes if player already had 8 actives
-------------------------------------------
!#TM22:S52/161/14/128;
!?TM22&612;
* first, check if pink is still in the game
!!OW:I7/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E9/142/0; check whether (9,142,0) is occupied (-->F1)
!!HE122&-1:P9/142/0;
!!HE122&-1:O7;
!!HE122&-1:O?v2; check whether assignment was possible
!!HE122&-1/v2<>7:K; kill hero to prevent crashes if player already had 8 actives
!!UN:E5/142/0; check whether (5,142,0) is occupied (-->F1)
!!HE123&-1:P5/142/0;
!!HE123&-1:O7;  pink player
!!HE123&-1:O?v2; check whether assignment was possible
!!HE123&-1/v2<>7:K; kill hero to prevent crashes if player already had 8 actives
* Blue Timer Script for "Alexander The Great" map [added occupation check--JHV]
!#TM13:S46/162/14/2;
!?TM13&613;
* first, check if blue is still in the game
!!OW:I1/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E15/8/1; check whether (15,8,1) is occupied (-->F1)
!!HE33&-1:P15/8/1;
!!HE33&-1:O1;
!!HE33&-1:O?v2; check whether assignment was possible
!!HE33&-1/v2<>1:K; kill hero to prevent crashes if player already had 8 actives
!!UN:E18/4/1; check whether (18,4,1) is occupied (-->F1)
!!HE35&-1:P18/4/1;
!!HE35&-1:O1;
!!HE35&-1:O?v2; check whether assignment was possible
!!HE35&-1/v2<>1:K; kill hero to prevent crashes if player already had 8 actives
-----------------------------------------------------
!#TM23:S53/163/14/2;
!?TM23&613;
* first, check if blue is still in the game
!!OW:I1/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E15/8/1; check whether (15,8,1) is occupied (-->F1)
!!HE109&-1:P15/8/1;
!!HE109&-1:O1;
!!HE109&-1:O?v2; check whether assignment was possible
!!HE109&-1/v2<>1:K; kill hero to prevent crashes if player already had 8 actives
!!UN:E18/4/1; check whether (18,4,1) is occupied (-->F1)
!!HE110&-1:P18/4/1;
!!HE110&-1:O1;  blue player
!!HE110&-1:O?v2; check whether assignment was possible
!!HE110&-1/v2<>1:K; kill hero to prevent crashes if player already had 8 actives
* Tan Timer Script for "Alexander The Great" map [added occupation check--JHV]
!#TM14:S47/164/14/4;
!?TM14&614;
* first, check if tan is still in the game
!!OW:I2/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E68/8/1; check whether (68,8,1) is occupied (-->F1)
!!HE132&-1:P68/8/1;
!!HE132&-1:O2;
!!HE132&-1:O?v2; check whether assignment was possible
!!HE132&-1/v2<>2:K; kill hero to prevent crashes if player already had 8 actives
!!UN:E74/6/1; check whether (74,6,1) is occupied (-->F1)
!!HE23&-1:P74/6/1;
!!HE23&-1:O2;
!!HE23&-1:O?v2; check whether assignment was possible
!!HE23&-1/v2<>2:K; kill hero to prevent crashes if player already had 8 actives
--------------------------------------------
!#TM24:S54/165/14/4;
!?TM24&614;
* first, check if tan is still in the game
!!OW:I2/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E68/8/1; check whether (68,8,1) is occupied (-->F1)
!!HE94&-1:P68/8/1;
!!HE94&-1:O2;
!!HE94&-1:O?v2; check whether assignment was possible
!!HE94&-1/v2<>2:K; kill hero to prevent crashes if player already had 8 actives
!!UN:E74/6/1; check whether (74,6,1) is occupied (-->F1)
!!HE92&-1:P74/6/1;
!!HE92&-1:O2; tan player
!!HE92&-1:O?v2; check whether assignment was possible
!!HE92&-1/v2<>2:K; kill hero to prevent crashes if player already had 8 actives
* Green Timer Script for "Alexander The Great" map [added occupation check--JHV]
!#TM7:S48/166/14/8;
!?TM7&615;
* first, check if green is still in the game
!!OW:I3/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E5/123/0; check whether (5,123,0) is occupied (-->F1)
!!HE149&-1:P5/123/0;
!!HE149&-1:O3;
!!HE149&-1:O?v2; check whether assignment was possible
!!HE149&-1/v2<>3:K; kill hero to prevent crashes if player already had 8 actives
--------------------------------------------
!#TM8:S55/167/14/8;
!?TM8&615;
* first, check if green is still in the game
!!OW:I3/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E22/128/0; check whether (22,128,0) is occupied (-->F1)
!!HE111&-1:P22/128/0;
!!HE111&-1:O3; green
!!HE111&-1:O?v2; check whether assignment was possible
!!HE111&-1/v2<>3:K; kill hero to prevent crashes if player already had 8 actives
* Purple Timer Script for "Alexander The Great" map [added occupation check--JHV]
!#TM9:S49/168/14/32;
!?TM9&616;
* first, check if purple is still in the game
!!OW:I5/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E127/6/0; check whether (127,6,0) is occupied (-->F1)
!!HE155&-1:P127/6/0;
!!HE155&-1:O5;
!!HE155&-1:O?v2; check whether assignment was possible
!!HE155&-1/v2<>5:K; kill hero to prevent crashes if player already had 8 actives
--------------------------------------------
!#TM10:S56/169/14/32;
!?TM10&616;
* first, check if purple is still in the game
!!OW:I5/?v1/?v2; v1=human/AI, v2=alive/dead  (0/1)
!!FU&v2=1:E;
!!UN:E133/6/0; check whether (133,6,0) is occupied (-->F1)
!!HE54&-1:P133/6/0;
!!HE54&-1:O5; purple
!!HE54&-1:O?v2; check whether assignment was possible
!!HE54&-1/v2<>5:K; kill hero to prevent crashes if player already had 8 actives



这个是亚历山大大帝的一个禁止电脑行动的脚本,就是哪个电脑发疯就禁止掉,之后还可以还原,我把这个放到别的地图里好像不行,会报错,能修改下让它适用于所有地图吗?
  • TA的每日心情
    慵懒
    2019-8-17 09:46
  • 签到天数: 1158 天

    连续签到: 2 天

    [LV.10]圣龙

    2万

    回帖

    91万

    金币

    7

    精华

    论坛嘉宾

    守望论坛的稻草人

    Rank: 9Rank: 9Rank: 9

    积分
    87641

    社区QQ达人论坛守望者金牌裁判杰出贡献魅力之星TE联赛冠军

    发表于 2012-3-18 12:16:08 | 显示全部楼层
    我记得寻梦人以前写过一个关于混战的控制因为AI而引起的死机问题的脚本,但是印象不是很深了,毕竟很久了。不知道有没有这方面的内容?你可以去搜索一下寻梦人的帖子找找。
  • TA的每日心情
    郁闷
    2022-3-30 18:51
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]投石矮人

    394

    回帖

    1万

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    844
    发表于 2012-3-18 12:23:04 | 显示全部楼层
    把地图里所有AI玩家的活动范围设置为0不就可以了?用地图编辑器就能做到了哇,为啥考虑使用脚本这么复杂
    屁股扭一扭
  • TA的每日心情
    奋斗
    昨天 19:42
  • 签到天数: 2645 天

    连续签到: 5 天

    [LV.Master]伴坛终老

    1万

    回帖

    16万

    金币

    0

    精华

    白银会员

    Rank: 5Rank: 5

    积分
    98659

    魅力之星

    QQ
    发表于 2012-3-18 12:25:30 | 显示全部楼层
    原帖由 YY你 于 2012-3-18 12:23 发表
    把地图里所有AI玩家的活动范围设置为0不就可以了?用地图编辑器就能做到了哇,为啥考虑使用脚本这么复杂


    这个脚本还是有用的

    你总不能一概而论把电脑限死吧,因为你不知道哪个电脑英雄可能出现这样的情况,如果全限死了那地图是什么概念!!
    该会员没有填写今日想说内容.
  • TA的每日心情
    慵懒
    2019-8-17 09:46
  • 签到天数: 1158 天

    连续签到: 2 天

    [LV.10]圣龙

    2万

    回帖

    91万

    金币

    7

    精华

    论坛嘉宾

    守望论坛的稻草人

    Rank: 9Rank: 9Rank: 9

    积分
    87641

    社区QQ达人论坛守望者金牌裁判杰出贡献魅力之星TE联赛冠军

    发表于 2012-3-18 12:25:51 | 显示全部楼层

    回复 3# 的帖子

    哈哈哈,混战图啊,设置为0?

    该用户从未签到

    35

    回帖

    9048

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    726
     楼主| 发表于 2012-3-18 12:30:00 | 显示全部楼层
    原帖由 兽哥哥 于 2012-3-18 12:16 发表
    我记得寻梦人以前写过一个关于混战的控制因为AI而引起的死机问题的脚本,但是印象不是很深了,毕竟很久了。不知道有没有这方面的内容?你可以去搜索一下寻梦人的帖子找找。



    刚刚搜了下,好像没有哦

    该用户从未签到

    35

    回帖

    9048

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    726
     楼主| 发表于 2012-3-18 12:31:17 | 显示全部楼层
    原帖由 YY你 于 2012-3-18 12:23 发表
    把地图里所有AI玩家的活动范围设置为0不就可以了?用地图编辑器就能做到了哇,为啥考虑使用脚本这么复杂



    混战地图把AI活动范围设为0?  哪还有意思吗?
  • TA的每日心情
    慵懒
    2019-8-17 09:46
  • 签到天数: 1158 天

    连续签到: 2 天

    [LV.10]圣龙

    2万

    回帖

    91万

    金币

    7

    精华

    论坛嘉宾

    守望论坛的稻草人

    Rank: 9Rank: 9Rank: 9

    积分
    87641

    社区QQ达人论坛守望者金牌裁判杰出贡献魅力之星TE联赛冠军

    发表于 2012-3-18 12:33:01 | 显示全部楼层

    回复 6# 的帖子

    不是在导航栏那里搜索,而是直接点击寻梦人的名字,看他的详细资料,上面有个搜索帖子。点击就可以看到寻梦人的全部帖子。

    该用户从未签到

    35

    回帖

    9048

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    726
     楼主| 发表于 2012-3-18 12:33:01 | 显示全部楼层
    哪位高人能做个这样类似的脚本啊? 混战图必备啊!  否则混战图根本玩不了,玩一下就卡死了,

    该用户从未签到

    35

    回帖

    9048

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    726
     楼主| 发表于 2012-3-18 12:34:32 | 显示全部楼层
    原帖由 兽哥哥 于 2012-3-18 12:33 发表
    不是在导航栏那里搜索,而是直接点击寻梦人的名字,看他的详细资料,上面有个搜索帖子。点击就可以看到寻梦人的全部帖子。


    对啊,我就是你说的这样搜的,她没有这样的贴啊
  • TA的每日心情
    慵懒
    2019-8-17 09:46
  • 签到天数: 1158 天

    连续签到: 2 天

    [LV.10]圣龙

    2万

    回帖

    91万

    金币

    7

    精华

    论坛嘉宾

    守望论坛的稻草人

    Rank: 9Rank: 9Rank: 9

    积分
    87641

    社区QQ达人论坛守望者金牌裁判杰出贡献魅力之星TE联赛冠军

    发表于 2012-3-18 12:38:19 | 显示全部楼层
    有是有,但是标题肯定不是那样写,而且时间有点久远,我忘了他的帖子是什么内容了,不知道有没有你要的这个。要不就等那些ERM高手们来帮你解决吧,可能要明天了
  • TA的每日心情
    开心
    2020-9-19 16:27
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]火元素使者

    9896

    回帖

    64万

    金币

    19

    精华

    管理员

    风侠

    Rank: 12Rank: 12Rank: 12

    积分
    52354

    论坛元老魅力之星封魔玩家

    发表于 2012-3-18 13:07:13 | 显示全部楼层
    不知是宝物典当行,还是老实猪9合1,有缠住电脑一回合的指令。

    该用户从未签到

    35

    回帖

    9048

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    726
     楼主| 发表于 2012-3-18 22:13:30 | 显示全部楼层
    已经自己解决了,这年头靠谁都没用,自己动手,丰衣足食,终于不怕死机了,哈哈哈
  • TA的每日心情
    郁闷
    2018-12-26 07:27
  • 签到天数: 449 天

    连续签到: 2 天

    [LV.9]龙巫妖

    8929

    回帖

    107万

    金币

    3

    精华

    10级 Undefeatable Hero

    Rank: 10Rank: 10Rank: 10

    积分
    141106

    退役版主社区QQ达人魅力之星TE联赛季军脚本测试狂

    QQ
    发表于 2012-3-18 22:58:04 | 显示全部楼层
    有前途,但话不能这么讲

    该用户从未签到

    2446

    回帖

    6474

    金币

    0

    精华

    5级 Honorable Hero

    Rank: 5Rank: 5

    积分
    3313

    退役版主

    发表于 2012-3-18 23:53:00 | 显示全部楼层
    这脚本天书一般啊

    该用户从未签到

    15

    回帖

    4510

    金币

    0

    精华

    1级 Hired Hero

    Rank: 1

    积分
    116
    发表于 2012-3-19 00:52:21 | 显示全部楼层
    这脚本。。 辛苦了 顶下先
    ahome_bigavatar:guest
    ahome_bigavatar:welcomelogin
    您需要登录后才可以回帖 登录 | 英雄注册|Register

    本版积分规则

    捐赠
    关注我们,英3Mod一网打尽!

    WoG中文站 ( 辽B2-20210485-10 )|辽公网安备 21128202000228 号

    GMT+8, 2024-12-28 11:01 , Processed in 0.682162 second(s), 14 queries , Gzip On, File On.

    Powered by Discuz! X3.4

    Copyright © 2004-2022, Beijing Second Sight Technology Co., LTD.

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