---------------------自动使用技能区块----------------------------------------------------------
if (GetV (V_SP,MyID) >= 25) then
if (type == AMISTR or type == AMISTR_H) then
if ((OHPp <= 0.25 or HPp <= 0.25) and MOTION_ATTACK == GetV(V_MOTION,GetMyEnemy (MyID))) then
MySkill = AutoSkillSet (MyID) -- 羊
MySkillLevel = 5 -- 技能等级请自行设定
SkillObject (MyID,MySkillLevel,MySkill,owner)
TraceAI ("OnAutoSkill")
end
elseif (type == FILIR or type == FILIR_H or type == VANILMIRTH or type == VANILMIRTH_H) then
if (HPp <= 0.25 or SPp <= 1) then
MySkill = AutoSkillSet (MyID) -- 飞里乐 和 布丁
MySkillLevel = 5 -- 技能等级请自行设定
SkillObject (MyID,MySkillLevel,MySkill,MyEnemy)
TraceAI ("OnAutoSkill")
end
end
MySkill = 0
end
应该是这样的 我没试过
我用的是hp小于100%用技能就是把HPp<=0.25改成HPp<=1