[ai辅助]检测对手helper型飞行道具ai教程(低配版)

这个方法的思路与“简单粗暴的飞行道具ai检测教程”这篇文章相似,不同之处在于我这个不需要使用到helper,也不使用changestate循环,只用一个null和两个本体变量就可以完成。 话不多说,贴代码


;================================================================================================

;敌方helper型飞道检测

;var(57) Check the Helper Attack of Enemy

;================================================================================================

;敌方helper型飞道检测

[state ,普通来车:helper的hitdef攻击]

type=null

triggerall = 1||fvar(20):=0

triggerall = 1||var(57):=0

trigger1 = fvar(20):=fvar(20)+1 

trigger2 = fvar(20):=fvar(20)+1 

trigger3 = fvar(20):=fvar(20)+1 

trigger4 = fvar(20):=fvar(20)+1 

trigger5 = fvar(20):=fvar(20)+1 

trigger6 = fvar(20):=fvar(20)+1 

trigger7 = fvar(20):=fvar(20)+1 

trigger8 = fvar(20):=fvar(20)+1 

trigger9 = fvar(20):=fvar(20)+1 

trigger10 = fvar(20):=fvar(20)+1 

trigger11 = fvar(20):=fvar(20)+1 

trigger12 = fvar(20):=fvar(20)+1 

trigger13 = fvar(20):=fvar(20)+1 

trigger14 = fvar(20):=fvar(20)+1 

trigger15 = fvar(20):=fvar(20)+1 

trigger16 = fvar(20):=fvar(20)+1 

trigger17 = fvar(20):=fvar(20)+1 

trigger18 = fvar(20):=fvar(20)+1 

trigger19 = fvar(20):=fvar(20)+1 

trigger20 = fvar(20):=fvar(20)+1 

trigger21 = fvar(20):=fvar(20)+1 

trigger22 = fvar(20):=fvar(20)+1 

trigger23 = fvar(20):=fvar(20)+1 

trigger24 = fvar(20):=fvar(20)+1 

trigger25 = fvar(20):=fvar(20)+1 

trigger26 = fvar(20):=fvar(20)+1 

trigger27 = fvar(20):=fvar(20)+1 

trigger28 = fvar(20):=fvar(20)+1 

trigger29 = fvar(20):=fvar(20)+1 

trigger30 = fvar(20):=fvar(20)+1 

trigger31 = fvar(20):=fvar(20)+1 

trigger32 = fvar(20):=fvar(20)+1 

trigger33 = fvar(20):=fvar(20)+1 

trigger34 = fvar(20):=fvar(20)+1 

trigger35 = fvar(20):=fvar(20)+1 

trigger36 = fvar(20):=fvar(20)+1 

trigger37 = fvar(20):=fvar(20)+1 

trigger38 = fvar(20):=fvar(20)+1 

trigger39 = fvar(20):=fvar(20)+1 

trigger40 = fvar(20):=fvar(20)+1 

trigger41 = fvar(20):=fvar(20)+1 

trigger42 = fvar(20):=fvar(20)+1 

trigger43 = fvar(20):=fvar(20)+1 

trigger44 = fvar(20):=fvar(20)+1 

trigger45 = fvar(20):=fvar(20)+1 

trigger46 = fvar(20):=fvar(20)+1 

trigger47 = fvar(20):=fvar(20)+1 

trigger48 = fvar(20):=fvar(20)+1 

trigger49 = fvar(20):=fvar(20)+1 

trigger1 = playeridexist(floor(id+fvar(20))) 

trigger2 = playeridexist(floor(id+fvar(20))) 

trigger3 = playeridexist(floor(id+fvar(20))) 

trigger4 = playeridexist(floor(id+fvar(20))) 

trigger5 = playeridexist(floor(id+fvar(20))) 

trigger6 = playeridexist(floor(id+fvar(20))) 

trigger7 = playeridexist(floor(id+fvar(20))) 

trigger8 = playeridexist(floor(id+fvar(20))) 

trigger9 = playeridexist(floor(id+fvar(20))) 

trigger10 = playeridexist(floor(id+fvar(20))) 

trigger11 = playeridexist(floor(id+fvar(20))) 

trigger12 = playeridexist(floor(id+fvar(20))) 

trigger13 = playeridexist(floor(id+fvar(20))) 

trigger14 = playeridexist(floor(id+fvar(20))) 

trigger15 = playeridexist(floor(id+fvar(20))) 

trigger16 = playeridexist(floor(id+fvar(20))) 

trigger17 = playeridexist(floor(id+fvar(20))) 

trigger18 = playeridexist(floor(id+fvar(20))) 

trigger19 = playeridexist(floor(id+fvar(20))) 

trigger20 = playeridexist(floor(id+fvar(20))) 

trigger21 = playeridexist(floor(id+fvar(20))) 

trigger22 = playeridexist(floor(id+fvar(20))) 

trigger23 = playeridexist(floor(id+fvar(20))) 

trigger24 = playeridexist(floor(id+fvar(20))) 

trigger25 = playeridexist(floor(id+fvar(20))) 

trigger26 = playeridexist(floor(id+fvar(20))) 

trigger27 = playeridexist(floor(id+fvar(20))) 

trigger28 = playeridexist(floor(id+fvar(20))) 

trigger29 = playeridexist(floor(id+fvar(20))) 

trigger30 = playeridexist(floor(id+fvar(20))) 

trigger31 = playeridexist(floor(id+fvar(20))) 

trigger32 = playeridexist(floor(id+fvar(20))) 

trigger33 = playeridexist(floor(id+fvar(20))) 

trigger34 = playeridexist(floor(id+fvar(20))) 

trigger35 = playeridexist(floor(id+fvar(20))) 

trigger36 = playeridexist(floor(id+fvar(20))) 

trigger37 = playeridexist(floor(id+fvar(20))) 

trigger38 = playeridexist(floor(id+fvar(20))) 

trigger39 = playeridexist(floor(id+fvar(20))) 

trigger40 = playeridexist(floor(id+fvar(20))) 

trigger41 = playeridexist(floor(id+fvar(20))) 

trigger42 = playeridexist(floor(id+fvar(20))) 

trigger43 = playeridexist(floor(id+fvar(20))) 

trigger44 = playeridexist(floor(id+fvar(20))) 

trigger45 = playeridexist(floor(id+fvar(20))) 

trigger46 = playeridexist(floor(id+fvar(20))) 

trigger47 = playeridexist(floor(id+fvar(20))) 

trigger48 = playeridexist(floor(id+fvar(20))) 

trigger49 = playeridexist(floor(id+fvar(20))) 

trigger1 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger2 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger3 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger4 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger5 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger6 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger7 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger8 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger9 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger10 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger11 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger12 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger13 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger14 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger15 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger16 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger17 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger18 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger19 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger20 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger21 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger22 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger23 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger24 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger25 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger26 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger27 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger28 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger29 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger30 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger31 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger32 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger33 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger34 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger35 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger36 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger37 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger38 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger39 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger40 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger41 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger42 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger43 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger44 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger45 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger46 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger47 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger48 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger49 = playerid(floor(id+fvar(20))),ishelper&&playerid(floor(id+fvar(20))),teamside!=teamside&&playerid(floor(id+fvar(20))),hitdefattr=sac,aa,at,ap&&playerid(floor(id+fvar(20))),movetype=A

trigger1 = var(57):=1 

trigger2 = var(57):=1 

trigger3 = var(57):=1 

trigger4 = var(57):=1 

trigger5 = var(57):=1 

trigger6 = var(57):=1 

trigger7 = var(57):=1 

trigger8 = var(57):=1 

trigger9 = var(57):=1 

trigger10 = var(57):=1 

trigger11 = var(57):=1 

trigger12 = var(57):=1 

trigger13 = var(57):=1 

trigger14 = var(57):=1 

trigger15 = var(57):=1 

trigger16 = var(57):=1 

trigger17 = var(57):=1 

trigger18 = var(57):=1 

trigger19 = var(57):=1 

trigger20 = var(57):=1 

trigger21 = var(57):=1 

trigger22 = var(57):=1 

trigger23 = var(57):=1 

trigger24 = var(57):=1 

trigger25 = var(57):=1 

trigger26 = var(57):=1 

trigger27 = var(57):=1 

trigger28 = var(57):=1 

trigger29 = var(57):=1 

trigger30 = var(57):=1 

trigger31 = var(57):=1 

trigger32 = var(57):=1 

trigger33 = var(57):=1 

trigger34 = var(57):=1 

trigger35 = var(57):=1 

trigger36 = var(57):=1 

trigger37 = var(57):=1 

trigger38 = var(57):=1 

trigger39 = var(57):=1 

trigger40 = var(57):=1 

trigger41 = var(57):=1 

trigger42 = var(57):=1 

trigger43 = var(57):=1 

trigger44 = var(57):=1 

trigger45 = var(57):=1 

trigger46 = var(57):=1 

trigger47 = var(57):=1 

trigger48 = var(57):=1 

trigger49 = var(57):=1 

trigger1 = 0 

trigger2 = 0 

trigger3 = 0 

trigger4 = 0 

trigger5 = 0 

trigger6 = 0 

trigger7 = 0 

trigger8 = 0 

trigger9 = 0 

trigger10 = 0 

trigger11 = 0 

trigger12 = 0 

trigger13 = 0 

trigger14 = 0 

trigger15 = 0 

trigger16 = 0 

trigger17 = 0 

trigger18 = 0 

trigger19 = 0 

trigger20 = 0 

trigger21 = 0 

trigger22 = 0 

trigger23 = 0 

trigger24 = 0 

trigger25 = 0 

trigger26 = 0 

trigger27 = 0 

trigger28 = 0 

trigger29 = 0 

trigger30 = 0 

trigger31 = 0 

trigger32 = 0 

trigger33 = 0 

trigger34 = 0 

trigger35 = 0 

trigger36 = 0 

trigger37 = 0 

trigger38 = 0 

trigger39 = 0 

trigger40 = 0 

trigger41 = 0 

trigger42 = 0 

trigger43 = 0 

trigger44 = 0 

trigger45 = 0 

trigger46 = 0 

trigger47 = 0 

trigger48 = 0 

trigger49 = 0 

ignorehitpause = 1


这里的fvar(20)用于检测递进就不用我多说了,把这一段放在ai文段的最上面,然后下面的ai只要写triggerall=var(57)=1就相当于“triggerall=对手拥有攻击性的helper”了。

 这两个变量和人物已使用的冲突的话记得换变量。

漆黑处的光亮 评论于
神子厨X号

z?为什么不排版?(XD)

@Neil 十分抱歉,之前用手机发的,然后排版出了bug,我现在改了

神子厨X号 评论于

z?为什么不排版?(XD)

根据相关规定,发布评论前必须绑定手机前往绑定
你,确定要这么做吗?
正在处理中...