使用了GB的魔法学院加强[wiki]ERM[/wiki]后觉得可以利用战争学院的选项来在随机地图添加堕落小屋:
将script16备份改名,建立新的script#如下 (# 必须大于78 )
script 来自GB, 加入红色部分是为了不让AI访问。blue part is changing the object type.
_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.6.29.918
ERMS_ScriptDate=28.2(February).2006
!#MCz222:S@Name@;
!#MCv222:S@Quantity@;
!#MCv223:S@RandomUnit@;
!#MCv224:S@CurrentPlayer@;
!#MCv225:S@x@;
!#MCv226:S@y@;
!#MCv227:S@z@;
!#MCv228:S@IsComp@;
!#MCv229:S@temp@;
!#MCp:S@Price@;
!#MCq:S@GoldHave@;
!#VRz222:S^Battle Academy^; (个人认为比较贴切,练兵)
!#HT63/32:T222;
!#VR$Quantity$:S5;
!?OB63/32;
!!OW:C?v429;
!!OW:Iv429/?y1;
!!FU&y1=1:E;
!!HE-1:W0; [No move points]
[Price]
!!VR$Price$:S$Quantity$+1*20;
[Enough Gold]
!!OW:C?$CurrentPlayer$;
!!OW:R$CurrentPlayer$/6/?$GoldHave$;
[Set flag 1 to 0]
!!IF:V1/0;
[Is this comp?]
!!OW:I$CurrentPlayer$/?$IsComp$;
[Random Unit]
!!VR$RandomUnit$:S0R173;
!!VR$temp$:S0;
!!VR$temp$&$RandomUnit$>=160/$RandomUnit$<=163:S1;
!!VR$temp$&$RandomUnit$>=145/$RandomUnit$<=149:S1;
!!VR$temp$&$RandomUnit$=122:S1;
!!VR$temp$&$RandomUnit$=124:S1;
!!VR$temp$&$RandomUnit$=126:S1;
!!VR$temp$&$RandomUnit$=128:S1;
!!VR$RandomUnit$&$temp$=1:S159;
[Question]
!!IF&$Price$>$GoldHave$/$IsComp$=0:Q1/6/$Price$/1^You don't have enough money!^;
!!IF&$Price$<=$GoldHave$/$IsComp$=0:Q1/21/$RandomUnit$/6/$Price$/2^Do you wish to get experience?^;
[Change RandomUnit]
!!VR$temp$&1/$RandomUnit$<>159:S0R100;
!!VR$RandomUnit$&1/$temp$>66:S159;
!!IF&1/$IsComp$=0/$temp$>66:Q1/21/$RandomUnit$/1^Beware! An evil being opens his Pandora's Box and ghosts fly out from it.^;
[Assigning]
!!VR$Quantity$&1:+1;
!!HE-1&1:P?$x$/?$y$/?$z$;
!!VR$GoldHave$&1:-0;
!!VR$GoldHave$&1:-$Price$;
!!OW&1:R$CurrentPlayer$/6/$GoldHave$;
[Battle]
!!HE-1&1:T$x$/$y$/$z$/$RandomUnit$/$Quantity$;
!!HE-1:W0; [No move points]
因为在xl地图里会有太多的建筑,所以接下来改出现的频率,如果你不心疼损失的龙宫或玩小,中地图就不用麻烦了。
备份script00.erm
打开 script00.erm, search for "C63/32"
在下一行:
!!FU671&y20>0:P25/-1/4/y20/40; [replace 40% of dragon utopias]
改40为你希望的数目。
注意这行也是place of dream 的 龙宫 replacement。
我的笨办法是:
copy "!!VRy20:S0; [initialize object counter to 0]" (在上面一点的地方),
paste 在 “!!VRvy10&y3=1:C63/33/4/-1/0/1/0; [palace of dreams] [table of large objects]"
和
!!UN:P16/?y3; [check if Battle Academy script is enabled]
之间
copy
!!FU671&y20>0:P25/-1/4/y20/40; [replace 40% of dragon utopias]
paste after
!!VRvy10&y3=1:C63/33/4/-1/0/1/0; [palace of dreams] [table of large objects]
这样就把本来程序和在一起置换的梦堂和战院分开,改为你希望的出现频率。
利用类似的方法可以更换甚至添加一些新的自定义建筑和宝物在随机地图里。
求助一:为什么我做成script16不行,一定要在78后?
二:在
!!FU671&y20>0:P25/-1/4/y20/40
/-1/4/ 代表什么?
感谢论坛的各位高手 |