- 积分
- 2052
- 威望
- 16
- 魅力
- 16
- 经验
- 1195
- 热心度
- 0
- 注册时间
- 2009-11-16
- 最后登录
- 2024-11-8
- 主题
- 24
- 回帖
- 353
- 精华
- 1
- 阅读权限
- 90
TA的每日心情 | 无聊 2016-8-14 22:42 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]投石矮人
论坛嘉宾
- 积分
- 2052
|
楼主 |
发表于 2017-11-24 22:38:12
|
显示全部楼层
这个代码我看了不是很明白,官方好像有按照魔法编号判定的,也有按照d敌方英雄施法对象是否自身部队判定的,我把代码摘录如下
** start of pre-action trigger
!?BG0&v7187=1; [Continue trigger if eagle eye is enabled]
!!FU&v7018=0/v7019=0:E; [exit if no one has eagle eye]
!!VRy-1:S-1; [initailize variables]
!!VRy-3:S-1;
!!VRy-5:S-1;
!!VRy-7:S0;
!!VRy-9:S0;
!!VRy-6:S0 T99; [random roll]
!!BG:E?y-1 A?y-2 Q?y-3 S?y-4 N?y-11; [get destination stack, action type, side, spell, acting stack]
!!BMy-1&y-1>-1/y-2=1:I?y-5 P?y-8; [if hero casting, get side, position of target stack]
!!BMy-1&y-1>-1/y-2=10:I?y-5 P?y-8; [if monster casting, get side, position of target stack]
!!VRy-10&y-4>=27/y-4<=33:S1;
!!VRy-10|y-4=37/y-4=41/y-4=43/y-4=44/y-4=46/y-4=48/y-4=49/y-4=51/y-4=53/y-4=58:S1; [check for beneficial (mass) spells]
!!VRy-9&y-1=-1/y-10=1:S1; [if hero cast spell with no target (mass) set to 1]
!!VRy-9&y-1>-1/y-3=y-5:S1; [if caster is targeting own side set to 1]
!!VRy-7&y-9=1/y-3=0/v7019>0/y-6<v7019:S1; [if attacker cast, check against defender Eagle Eye rating]
!!VRy-7&y-9=1/y-3=1/v7018>0/y-6<v7018:S1; [if defender cast, check against attacker Eagle Eye rating]
!!BMy-11&y-1>-1/y-7=1/y-2=10:C0/y-8/0/0/1 E?y-12; [have current stack cast summon boat (for sound effect), get # of spells remaining]
!!VRy-12&y-1>-1/y-7=1/y-2=10:-1; [reduce spell count by 1]
!!BMy-11&y-1>-1/y-7=1/y-2=10:V32 V32 V32 Ey-12; [show animation (caster), reset spell count]
!!BG&y-1>-1/y-2=10/y-7=1:A2; [make unit move (cancel action)]
!!BG&y-7=1/y-2=1:S0; [reset spell to summon boat]
!!BMy-11&y-7=1/y-2=1:V60 V60 V60; [show animation (hero)]
!!VRz2&y-7=1:Sz148004; [set combat message]
!!MM&y-7=1:Sz2; [display combat message]
** end of pre-action trigger
中间这段判断施放魔法的check for beneficial (mass) spells这一段,并没有镜像和瞬移,但我测试了镜像和瞬移都可以档,只是镜像不会跳出瞬移一定会跳出。不知道如何修改这个判定万望大大指导 |
|