本帖最后由 丝域 于 2014-3-27 19:05 编辑
#name 剑纯智能爆发代码
#tip 剑纯智能爆发测试
#hello 欢迎$name使用本宏
#varnum v_爆发,3,tip_1:智能爆发,tip_2:进站斗爆发,tip_3:关闭,icon:1502,icon_1:1502,icon_2:5363,icon_3:3658
#delay 1
/if[v_爆发=1]
/if[tar:无名,0.5<tlife<0.65;tar:乌蒙贵,tlife>0.6,tnobuff:虚弱;tar:李倓,tlife<0.3,tnobuff:虚弱]
/var[1]v_预留爆发
/end
/if[nofight;fight<60;tbuff:光照|锁神|虚弱;fight,!mapc:皇宫|大明宫|烛龙殿]
/var[0]v_预留爆发
/end
/var[((1-sklv:物我两忘)*10;0)+(bufftime:4759;0)+(buff:碎星辰,5;0)+(buff:期声,10;0)+(bufftime:风·斩铁;0)+(bufftime:韬光养晦;0)]v_自身因素
/var[(tbuff:光照|锁神|虚弱,200;0)+(tbuff:盾|壁垒,tnobuff:锁神,-50;0)+(tar:乾坤剑意|贪吃的老鼠|屋顶漏洞|追魂戟真气,400;0)]v_目标因素
/var[(buff:伏虎*5;0)+(buff:朝圣,10;0)+(bufftime:激雷*3;0)+(buff:香梅,10;0)]v_队友因素
/var[(tar:无名,tlife>0.65,tnobuff:盾,30;0)+(!tar:boss,tlifeleft<1000000,-30;0)+(tbuff:影遁,-300;0)+(mapc:华清宫|一线天|流离岛,10;0)]v_其他因素
/var[(v_自身因素+v_目标因素+v_队友因素+v_其他因素)*(1-v_预留爆发)]v_总分
/end
/if[(fight;!fight,!v_非战斗不开怪),tarisem,!(tar:追命箭|???),!(tpre:星斗剑法)]
/skill [(v_总分>=40,v_爆发=1;v_爆发=2),fight,state:stand]韬光养晦
/skill [(v_总分>=52,v_爆发=1;v_爆发=2),fight,state:stand]紫气东来
/use [(v_总分>=45,v_爆发=1;v_爆发=2),fight,state:stand]特效腰坠
/if [tlife<0.2]
/skill [tmbufftime:叠刃>11]八荒归元
/elseif [tlife<0.4]
/skill [tmbuff:叠刃>3,tmbufftime:叠刃>12] 八荒归元
/end
/skill [tlife<0.4,cdtime:八荒归元<4,tmbuff:叠刃<4,nav>3]无我无剑
/skill [nav>7]无我无剑
/if [nav<8,nobuff:1915]
/if [tlife>0.4,nav<3]
/skill 三环套月
/elseif [tlife>0.41]
/skill 八荒归元
/end
/skill [cd:三环套月;v_风逝天地,tbuff:无相]天地无极
/skill 三环套月
/skill 三柴剑法
/end
/skill [dis>5]八荒归元
/end