- 积分
- 42459
- 威望
- 523
- 魅力
- 525
- 经验
- 23493
- 热心度
- 0
- 注册时间
- 2007-10-20
- 最后登录
- 2021-11-30
- 主题
- 73
- 回帖
- 8815
- 精华
- 17
- 阅读权限
- 90
TA的每日心情 | 开心 2021-11-2 11:44 |
---|
签到天数: 754 天 连续签到: 1 天 [LV.10]圣龙
论坛嘉宾
寄蜉蝣于天地,渺沧海之一粟。
- 积分
- 42459
|
楼主 |
发表于 2009-6-2 17:34:58
|
显示全部楼层
自已动手,丰衣足食。
以下是从TDS摘抄的法师之戒可以增加生物施法次数50次的脚本(有些注释懒得翻译了。。。)
ZVSE
_WARNING_#1=IMPORTANT! This file is not in a plain text format. NEVER use any editor except [wiki]ERM[/wiki]_S for making any kind of changes!
ERMS_PoweredBy=ERM Scripter v. 2004.6.29.918
ERMS_ScriptDate=24.5(May).2009
!#VRv7182:S1; [使之能够作为独立使用]
!#VRz778&v7182=1:S^{魔力项圈}
状态魔法效应延长1回合、生物施法次数加1.^;
!#HT5/76&v7182=1:T778;
**
!#VRz779&v7182=1:S^{魔戒}
状态魔法效应延长2回合、生物施法次数加2.^;
!#HT5/77&v7182=1:T779;
**
!#VRz780&v7182=1:S^{魔法披风}
状态魔法效应延长3回合、生物施法次数加3.^;
!#HT5/78&v7182=1:T780;
**
!#VRz781&v7182=1:S^{法师之戒}
可以使状态魔法效应延长50回合并使生物施法次数加50.^;
!#HT5/139&v7182=1:T781;
** 设定初始代码结束
** 检查是否为人类玩家
!?FU7033; x1=人类玩家
!!HEv7057:C0/x16/?i/d; [获得人类玩家的位置]
!!VRv7058&v7058=-1/i=x1:Sx16; [作为人类玩家时有效]
** 功能设定结束
** 战斗开始时
!?BF&v7182=1;
!!BA:H0/?v7057; [作为进攻方时 #]
!!FU7034&v7057>-1:P-1/20;
!!BA:H1/?v7057; [作为防守方时 #]
!!FU7034&v7057>-1:P20/-1;
** 战斗开始设定结束
** 物品功能设定 (参数: x1=本方[wiki]英雄[/wiki], x2=敌方英雄)
!?FU7034;
!!VRy1:Sx1; [英雄的底部堆数]
!!VRy2:Sx2; [敌人的底部堆数]
!!HEv7057:A2/76/?y7/?y8; [检查英雄是否装备魔力项圈]
!!DO7036/0/20/1&y8>0:Py1/1/5; [prepare to add to spells remaining of hero's troops]
!!HEv7057:A2/77/?y7/?y8; [检查英雄是否装备魔戒]
!!DO7036/0/20/1&y8>0:Py1/2/5; [prepare to add to spells remaining of hero's troops]
!!HEv7057:A2/78/?y7/?y8; [检查英雄是否装备魔法披风]
!!DO7036/0/20/1&y8>0:Py1/3/5; [prepare to add to spells remaining of hero's troops]
!!HEv7057:A2/139/?y7/?y8; [检查英雄是否装备法师之戒]
!!DO7036/0/20/1&y8>0:Py1/56/5; [prepare to add to spells remaining of hero's troops]
** 物品功能设定结束
** function to spell troops (Parameters: x1=stack, x2=spell, x3=rounds, x4=level)
!?FU7035;
!!VRx1:+1; [increment stack number]
!!BMx1:Mx2/x3/x4; [cast spell on stack]
** end of function
** function to edit monster stats (Parameters: x1=stack, x2=stat bonus, x3=filter)
!?FU7036;
!!VRx1:+1; [increment stack number]
!!VRi:S1; [set i to 1]
!!BMx1&x3>0:F?i; [read flags if P3 is set]
!!VRi&x3=1:&16; [just look at alive bit]
!!VRi|x3=2/x3=3/x3=4:&262144; [just look at undead bit]
!!VRi&x3=6:&262160; [just look at alive & undead bits]
!!BMx1&i>0/x3=1:T?y2; [get monster type]
!!MA&i>0/x3=1/y2>-1:Ly2/?y3; [get monster level]
!!VRx2&i>0/x3=1/y2>-1/y3=0:S1; [level 1 = 1]
!!VRx2&i>0/x3=1/y2>-1/y3=1:S3; [level 2 = 3]
!!VRx2&i>0/x3=1/y2>-1/y3=2:S6; [level 3 = 6]
!!VRx2&i>0/x3=1/y2>-1/y3=3:S10; [level 4 = 10]
!!VRx2&i>0/x3=1/y2>-1/y3=4:S15; [level 5 = 15]
!!VRx2&i>0/x3=1/y2>-1/y3=5:S25; [level 6 = 25]
!!VRx2&i>0/x3=1/y2>-1/y3=6:S50; [level 7 = 50]
!!BMx1&i>0/x3=1:Hdx2; [set hit points]
!!BMx1&i>0/x3=2:Adx2; [set attack]
!!BMx1&i>0/x3=3:Ddx2; [set defence]
!!BMx1&i>0/x3=4:Sdx2; [set speed]
!!BMx1&i>0/x3=5:Edx2; [set spells remaining]
!!BMx1&i=0/x3=6:Hdx2; [set hit points]
** end of function
** function to check when artifacts are put on
!?FU7037; [artifacts on]
!!HE-1:S3/?y1; [get skill level]
!!HE-1&y1<>3:S3/d1; [set skill]
** end of function
** function to check when artifacts are taken off
!?FU7038; [artifacts off]
!!HE-1:S3/?y1; [get skill level]
!!HE-1&y1<>3:S3/d-1; [set skill]
** end of function
** start of object trigger - monsters
!?OB54; [物体引发-怪物]
!!HE-1:A2/67/?y7/?y8; [see if hero has a Diplomat's Ring]
!!MOv998/v999/v1000&y8>0:R?y1/1; [get aggression level]
!!VRy2&y8>0:Sy1 :2; [divide by 2]
!!MOv998/v999/v1000&y8>0:Ry2/1; [set aggression level] |
评分
-
1
查看全部评分
-
|