|
楼主 |
发表于 2011-7-27 07:12:27
|
显示全部楼层
** cleaving blow 霹雳斩
** pre-action trigger
!?BG&v7183=1; [continue if enabled]
!!FU7120:P; [do pre-action function]
** end of pre-action trigger **
** start of pre-damage trigger
!?MF1&v7183=1;
**牛头王
!!BMv7227&v7236=0/v7226=79/v7225=6:N?y-10 T?y-13; [if Minotaur King is Walking and Attacking, get target quantity, type]
!!BMv7224&v7236=0/v7226=79/v7225=6/y-10>0:I?y-11 N?y-12; [if Minotaur King is Walking and Attacking, get side, quantity]
!!FU7128&v7236=0/v7226=79/v7225=6/y-10>0/y-11=0:Pv7232/y-12/y-10/y-13; [do critical hit function - attacker]
!!FU7128&v7236=0/v7226=79/v7225=6/y-10>0/y-11=1:Pv7233/y-12/y-10/y-13; [do critical hit function - defender]
**深渊领主
!!BMv7227&v7236=0/v7226=51/v7225=6:N?y-10 T?y-13; [if Pit Lord is Walking and Attacking, get target quantity, type]
!!BMv7224&v7236=0/v7226=51/v7225=6/y-10>0:I?y-11 N?y-12; [if Pit Lord is Walking and Attacking, get side, quantity]
!!FU7127&v7236=0/v7226=51/v7225=6/y-10>0/y-11=0:Pv7232/y-12/y-10/y-13; [do critical hit function - attacker]
!!FU7127&v7236=0/v7226=51/v7225=6/y-10>0/y-11=1:Pv7233/y-12/y-10/y-13; [do critical hit function - defender]
** end of pre-damage trigger **
** function for pre-action trigger ** 前触发函数
!?FU7120;
!!VRv7224:C-1/-1/-1/-1/-1/-1; [reset variables]
!!BG:N?v7224 A?v7225 E?v7227; [get current stack #, action type, destination stack]
!!BMv7224&v7224>0:T?v7226 I?y1; [get acting monster type, side]
!!BMv7227&v7227>0:N?v7229; [get target quantity]
** 牛头王、深渊领主的必杀技**
!?FU7127; x1= hero level x2= # of catapults x3= target quantity x4= target type
!!VRy1:S0 T99; [random roll - 1% chance per level]
!!VRy2:S10 *x2 +x1; [chance = 10 per catapult + hero level]
!!VRy2&y2>50:S90; [cap at 90%]
!!VRy2&x4>173/x4<192::2; [halve chance if targeting commander]
!!VRy3&y2>y1:Sx3 -1; [reduce target quantity by 1]
!!BMv7227&y2>y1:V28 Ny3; [show animation, set target quantity] 屠龙动画
!!VRz2&y2>y1:S^霹雳斩!一个敌人死了!^;
!!MM&y2>y1:Sz2;
!?FU7128;
!!VRy1:S0 T99; [random roll - 1% chance per level]
!!VRy2:S5 *x2 +x1; [chance = 5 per catapult + hero level]
!!VRy2&y2>50:S60; [cap at 60%]
!!VRy2&x4>173/x4<192::2; [halve chance if targeting commander]
!!VRy3&y2>y1:Sx3 -1; [reduce target quantity by 1]
!!BMv7227&y2>y1:V28 Ny3; [show animation, set target quantity] 屠龙动画
!!VRz2&y2>y1:S^霹雳斩!一个敌人死了!^;
!!MM&y2>y1:Sz2;
** end of function |
|