有没有高人做个这样的脚本啊?
就是可以禁止电脑行动的脚本,发现混战地图兵一多就容易卡死,还有电脑在几个传送门转来转去也会卡死。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;
!!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;
!!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:12481632
* v2:1234 56
!?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
!#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
!#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
!#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
!#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
!#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
!#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
这个是亚历山大大帝的一个禁止电脑行动的脚本,就是哪个电脑发疯就禁止掉,之后还可以还原,我把这个放到别的地图里好像不行,会报错,能修改下让它适用于所有地图吗? 我记得寻梦人以前写过一个关于混战的控制因为AI而引起的死机问题的脚本,但是印象不是很深了,毕竟很久了。不知道有没有这方面的内容?你可以去搜索一下寻梦人的帖子找找。 把地图里所有AI玩家的活动范围设置为0不就可以了?用地图编辑器就能做到了哇,为啥考虑使用脚本这么复杂;yowe; 原帖由 YY你 于 2012-3-18 12:23 发表 http://www.wogcn.net/images/common/back.gif
把地图里所有AI玩家的活动范围设置为0不就可以了?用地图编辑器就能做到了哇,为啥考虑使用脚本这么复杂;yowe;
这个脚本还是有用的
你总不能一概而论把电脑限死吧,因为你不知道哪个电脑英雄可能出现这样的情况,如果全限死了那地图是什么概念!!
回复 3# 的帖子
哈哈哈,混战图啊,设置为0? 原帖由 兽哥哥 于 2012-3-18 12:16 发表 http://bbs.h3wog.com/images/common/back.gif我记得寻梦人以前写过一个关于混战的控制因为AI而引起的死机问题的脚本,但是印象不是很深了,毕竟很久了。不知道有没有这方面的内容?你可以去搜索一下寻梦人的帖子找找。
刚刚搜了下,好像没有哦 原帖由 YY你 于 2012-3-18 12:23 发表 http://bbs.h3wog.com/images/common/back.gif
把地图里所有AI玩家的活动范围设置为0不就可以了?用地图编辑器就能做到了哇,为啥考虑使用脚本这么复杂;yowe;
混战地图把AI活动范围设为0?哪还有意思吗?
回复 6# 的帖子
不是在导航栏那里搜索,而是直接点击寻梦人的名字,看他的详细资料,上面有个搜索帖子。点击就可以看到寻梦人的全部帖子。 哪位高人能做个这样类似的脚本啊? 混战图必备啊!否则混战图根本玩不了,玩一下就卡死了,;dao; ;dao; 原帖由 兽哥哥 于 2012-3-18 12:33 发表 http://bbs.h3wog.com/images/common/back.gif不是在导航栏那里搜索,而是直接点击寻梦人的名字,看他的详细资料,上面有个搜索帖子。点击就可以看到寻梦人的全部帖子。
对啊,我就是你说的这样搜的,她没有这样的贴啊 有是有,但是标题肯定不是那样写,而且时间有点久远,我忘了他的帖子是什么内容了,不知道有没有你要的这个。要不就等那些ERM高手们来帮你解决吧,可能要明天了;sw; 不知是宝物典当行,还是老实猪9合1,有缠住电脑一回合的指令。 已经自己解决了,这年头靠谁都没用,自己动手,丰衣足食,终于不怕死机了,哈哈哈 有前途,但话不能这么讲 这脚本天书一般啊 ;tl; 这脚本。。 辛苦了 顶下先
页:
[1]