查看完整版本: 随机地图加入堕落小屋, 菜鸟版

yunings 2006-3-12 22:13

随机地图加入堕落小屋, 菜鸟版

[align=center]原贴作者:wuxiaomi  发表于:06年3月1日 11:34
原贴链接:[url]http://www.gamerhome.net/main/index.php?showtopic=198592[/url][/align]

使用了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/[color=Blue]32[/color]:T222;

!#VR$Quantity$:S5;

!?OB63/[color=Blue]32[/color];
[color=Red]!!OW:C?v429;
!!OW:Iv429/?y1;
!!FU&y1=1:E;[/color]
!!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]
改[color=Red]40[/color]为你希望的数目。
注意这行也是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/ 代表什么?

感谢论坛的各位高手

lysfox 2006-3-21 12:46

再狠一点把
[Price]
!!VR$Price$:S$Quantity$+1*20;
改成
[Price]
!!VR$Price$:S$Quantity$+1*0;
也就是只要有Quantity钱就够了(好像初始值是5吧)

再修改扣钱语句
!!VR$GoldHave$&1:-$Price$;
改成
!!VR$GoldHave$&1:-0;(不知道是不是这样改,云斯、木瓜帮我看看)

这样无需花钱了,再无耻一点,把它改成
!!VR$GoldHave$&1:+n;(就是说把-号改为+号,同时n可以为任意自然数)
这样的话,每打一次,钱会越来越多,是不是很爽啊!!!!!!!!

只是好玩,随便写写

快乐BOY 2008-3-14 17:03

如果直接在地图中拖一个堕落小屋,行不行?:buxie:
页: [1]
查看完整版本: 随机地图加入堕落小屋, 菜鸟版