- 积分
- 105777
- 威望
- 85
- 魅力
- 86
- 经验
- 92141
- 热心度
- 28
- 注册时间
- 1970-1-1
- 最后登录
- 2025-2-22
- 主题
- 33
- 回帖
- 5798
- 精华
- 9
- 阅读权限
- 200
成长值: 15640
TA的每日心情 | 郁闷 2024-8-28 13:33 |
---|
签到天数: 1611 天 连续签到: 1 天 [LV.Master]伴坛终老

管理员
ERA Project TeamWoG俄文论坛版主
  
- 积分
- 105777
      
|

楼主 |
发表于 2023-12-4 21:09:46
|
显示全部楼层
-1001 alt 8th mons.erm
(2.14 KB, 下载次数: 5)
- ZVSE2
- !?FU(OnAfterErmInited);
- !!if&i^eighth_on^;
- ; Customise here
- ; You will need to define your values from lines executing later than this.
- !!SN:Vi^eighth_dwellReqDwellsList^/0/43/43/43/43/43/43/43/43/43; [id of required buildings for each factions]
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_CASTLE)^/0/10/10/10/10/10/10/10000; [Wood, Mercury, Ore, Sulfur, Crystal, Gems, Gold]
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_RAMPART)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_TOWER)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_INFERNO)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_NECROPOLIS)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_DUNGEON)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_STRONGHOLD)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_FORTRESS)^/0/10/10/10/10/10/10/10000;
- !!SN:Vi^eighth_dwellCostsList_%(TOWN_CONFLUX)^/0/10/10/10/10/10/10/10000;
- !!en;
- !!SN:Vi^eighth_8thMonsList^/0/(MON_SERAPH)/(MON_SERAPH)/(MON_PURE_DIAMOND_DRAGON)/(MON_PURE_DIAMOND_DRAGON)/(MON_GUARDIAN_OF_ZEUS)/(MON_GUARDIAN_OF_ZEUS)/
- (MON_ANTICHRIST)/(MON_ANTICHRIST)/(MON_RED_BONES_DRAGON)/(MON_RED_BONES_DRAGON)/(MON_CHASM_DRAGON)/(MON_CHASM_DRAGON);
- !!SN:Vi^eighth_8thMonsList^/12/(MON_SPECTRAL_BEHEMOTH)/(MON_SPECTRAL_BEHEMOTH)/(MON_NIGHTMARE_HYDRA)/(MON_NIGHTMARE_HYDRA)/(MON_DIVINE_PHOENIX)/(MON_DIVINE_PHOENIX);
- !?FU(OnDetermineMonInfoDlgUpgrade_Quit);
- !#VA(monType:x) (upgType:x) (town:x) (hero:x);
- !!FU&(town)=(NO_TOWN):E;
- ; Upgrade level 8 to 8th mons
- !!if&i^tum_upgGuild_%(town)^/i^eighth_8thDwell_%(town)^/(monType)>=(MON_SUPREME_ARCHANGEL)/(monType)<=(MON_SACRED_PHOENIX)/(upgType)=(NO_MON);
- ; Upgrade only when the level 8 is the same town type with the town
- !!MA:O(monType)/?(monTownType:y);
- !!CA0/(town):T?(townType:y);
- !!if&(monTownType)=(townType);
- !!VR(index:y):S(townType) *2;
- !!SN:Mi^eighth_8thMonsList^/(index)/?(eighthMon:y);
- !!VR(upgType):S(eighthMon);
- !!en;
- !!en;
- ; Disable the ability to upgrade to the same creature
- !!VR(upgType)&(monType)=(upgType):S(NO_MON);
复制代码
我直接写了方案。
这里面“^/8/(MON_ENTOMBED_SPHINX)”中的“8”的意思是什么?第八生物脚本中开始的是“0”但后面又出现“12”,这又是什么意思?
这里的8和0和12都是“/”后边接的项目的序号。这里是在定义一个数组,从最开始的地方开始,就是“0”,墓园开始,就是8(前面有城堡、壁垒、塔楼、地狱x2种生物,一共8个,不改它们,所以忽略)。
这个脚本的要点在于要保证运行比现有的所有脚本都慢,所以文件名上有-1001前缀,保证比原有的脚本慢,才能覆盖它们。
|
评分
-
1
查看全部评分
-
|