|
楼主 |
发表于 2008-7-3 15:24:35
|
显示全部楼层
ZVSE
** Variables Used: v490-v492, w49
** Flags Used: 490
** Functions Used: FU491-FU494
** Variables v490, v491 and Flag 490 must not be modified by other programs!
** check wogify options
!!VRv491:S1 ** v491=1 if Karmic Battles is enabled
** monster stack trigger
!?OB54&v491=1;
!!IF:V490/1; ** set Flag 490 to True to show that a monster stack is visited
!$OB54&v491=1;
!!IF:V490/0; ** reset Flag 490 to False after the monster stack visit is done
** before battle
!?BA0&1000/490/v491=1;
!!VRv490:S0 T9; ** set random parameter for battle script (0-9): v490
!!IF:W-1;
!!VRw49&w49=0:S1; ** prevent 0-stacks if hero gets attacked by Tim`s WM
!!VRw49&v490<>0:+1; ** count w49 up, if battlescript called
!#VRv84:C153; 初始化变量(将你所希望的[wiki]英雄[/wiki]代码写入此处,此处153表示dragon king)
;---------------------------战斗开始-------------------------------------------
!?BA0&1000;
!!BA:H0/?v9555; 保存进攻方英雄到v9555
!!BA:H1/?v9560; 防守方hero到v9560
!?BF&1000; 战场生成后
!!DO7055/0/20/1&v9555=v84:P;本方数据
!!DO7055/21/41/1&v9560=v84:P;
!!DO7056/21/41/1&v9555=v84:P; 敌方数据
!!DO7056/0/21/1&v9560=v84:P;
;---------------------------新英雄特长--------------------------------
!?FU7055; 己方触发
!!VRy20:Sw49;
!!HEv84:E?y21/?y22; 取得英雄的等级y22
!!BMx16:T?y-30;
!!FU&y-30=145:E; 下列几行都是排除攻城武器
!!FU&y-30=146:E;
!!FU&y-30=147:E;
!!FU&y-30=148:E;
!!FU&y-30=149:E;
!!BMx16:H?y-31; 每级增加部队5%的生命
!!VRy-31::20;
!!VRy-32:Sy-31 *y20;
!!VRy-32&y-32=0:S1;
!!BMx16:Hdy-32;
!!BMx16:A?y-33; 每级增加部队2%的攻击
!!VRy-33::50;
!!VRy-34:Sy-33 *y20;
!!VRy-34&y-34=0:S1;
!!BMx16:Ady-34;
!!BMx16:D?y-35; 每级增加部队2%的防御
!!VRy-35::50;
!!VRy-36:Sy-35 *y20;
!!VRy-36&y-36=0:S1;
!!BMx16:Ddy-36;
!!BMx16:U1/?y-37; 每级增加部队2%的最低伤害
!!VRy-37::50;
!!VRy-38:Sy-37 *y20;
!!VRy-38&y-38=0:S1;
!!BMx16:U1/dy-38;
!!BMx16:U2/?y-39; 每级增加部队2%的最高伤害
!!VRy-39::50;
!!VRy-40:Sy-39 *y20;
!!VRy-40&y-40=0:S1;
!!BMx16:U2/dy-40;
!!VRy23&y22<11:S0; 按等级增加1-5点速度
!!VRy23&y22>10/y22<21:S1;
!!VRy23&y22>20/y22<31:S2;
!!VRy23&y22>30/y22<41:S3;
!!VRy23&y22>40/y22<51:S4;
!!VRy23&y22>50:S5;
!!BMx16:Sdy23;
!!BMx16:M27/3/2 M46/3/2; +护盾,石肤
!?FU7056; 敌方触发
!!BMx16:S?y32;
!!FU&y32=0:E;
!!VRy33&y32<8:S-1; 根据敌方怪物速度减少其速度
!!VRy33&y32>7/y32<15:S-2;
!!VRy33&y32>14/y32<20:S-3;
!!VRy33&y32>=20:S-4;
!!BMx16:Sdy33;
!!BMx16:M52/3/2 M50/3/2; +大难,悲伤
** after battle - give AI bonus experience equal to 50 x number of Karmic Battles fought]
!?BA1&-1000/490/v491=1;
!!VRw49:+1; [Increment Karmic Battle counter for AI hero]
!!IF:V490/0; [Reset Flag 490 to False] |
|