|
就是可以禁止电脑行动的脚本,发现混战地图兵一多就容易卡死,还有电脑在几个传送门转来转去也会卡死。
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
这个是亚历山大大帝的一个禁止电脑行动的脚本,就是哪个电脑发疯就禁止掉,之后还可以还原,我把这个放到别的地图里好像不行,会报错,能修改下让它适用于所有地图吗? |
|