[StateDef -2]
;=========================================================================
[state ];オートAI   0[off],1[on] (デフォルト：7,8,11,12Pon)
type=varset
trigger1=0
trigger1=palno=1
trigger2=0
trigger2=palno=2
trigger3=0
trigger3=palno=3
trigger4=0
trigger4=palno=4
trigger5=0
trigger5=palno=5
trigger6=0
trigger6=palno=6
trigger7=1
trigger7=palno=7
trigger8=1
trigger8=palno=8
trigger9=0
trigger9=palno=9
trigger10=0
trigger10=palno=10
trigger11=1
trigger11=palno=11
trigger12=1
trigger12=palno=12
var(59)=1
ignorehitpause=1
;=========================================================================
;デバッグ表示
[state ]
type = DisplayToClipboard
trigger1 = !IsHelper
text = "%d,%d,%d,%d,%d"
params = var(20),var(52),numhelper(1),var(41),hitpausetime
ignorehitpause = 1
[state ]
type = appendToClipboard
trigger1 = !IsHelper
text = "%d,%d,%d,%d,%d"
params = var(53),var(54),var(55),(movetype=A),(movetype=I)
ignorehitpause = 1
[state ]
type = appendToClipboard
trigger1 = !IsHelper
text = "\n%f,%d,%d,%d,%d"
params = fvar(7),var(59),var(58),var(57),var(26)
ignorehitpause = 1
;=========================================================================
;モード判定
[state ];攻撃proj化の使用可否(1で使用)
type=varset
trigger1=!ishelper
trigger1=palno>=9
var(5)=1
ignorehitpause=1
[state ];hitoverrideの使用可否(1で使用)
type=varset
trigger1=!ishelper
trigger1=palno<9||palno=12
var(9)=1+(palno%2=1)
ignorehitpause=1
[state ];弄ると多分動かなくなる。
type=varset
trigger1=!ishelper
var(6)=1
ignorehitpause=1
;=========================================================================
;現在状況分析
[state ]
type = NULL
trigger1=fvar(1):=enemynear,pos x||1
trigger1=fvar(2):=enemynear,pos y||1
trigger1=fvar(3):=pos x||1
trigger1=fvar(4):=pos y||1
trigger1=fvar(7):=abs(fvar(1)-fvar(3)) ||1
trigger1=fvar(8):=abs(fvar(1)-fvar(3)) ||1
trigger1=var(3):=((pos x<fvar(1)&&facing=1)||(fvar(1)<pos X&&facing=-1))||1
trigger1=var(3):=ifelse(var(3)=0,(pos x=fvar(1)),1)||1
trigger1=var(4):=(!win&&!lose&&roundstate=2)||1
ignorehitpause = 1
;=========================================================================
;本体管理
[state ];振り向くな
type=assertspecial
trigger1=1
flag=noautoturn
ignorehitpause=1
[state ];ガードすな
type=assertspecial
trigger1=!ishelper
trigger1=var(6)
flag=nostandguard
flag2=nocrouchguard
flag3=noairguard
ignorehitpause = 1
[state ];ピカピカ
type=palfx
trigger1=!ishelper
trigger1=var(2):=var(2)+ifelse(gametime%60>30,5,-5)||1
trigger1=var(2):=ifelse(var(2)<-50,-50,ifelse(var(2)>100,100,var(2)))||1
add=(palno=12)*60+var(2),(palno=12)*60+var(2),(!var(9))*50+var(2)
mull=140+116*(palno=[9,11]),256,256
time=1
color=(palno<9&&palno%2=1)*256
ignorehitpause = 1
[state ];若干透明気味
type=trans
trigger1=!ishelper
trans=addalpha
alpha=256,180
ignorehitpause=1
[state ];押されない
type=playerpush
trigger1=1
value=0
ignorehitpause=1
[state ];試合終了無敵
type = nothitby
triggerall=!ishelper
triggerall=var(6)
trigger1=life=0
trigger2=roundstate>2
value=SAC
time=1
ignorehitpause = 1
[state ];hitpausetime解除用
type=hitby
trigger1=!ishelper
trigger1=hitpausetime>20
value=SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
ignorehitpause=1
[state 1];アーマー
type=hitoverride
trigger1=var(9)=1
trigger1=!ishelper
time=1
attr=SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno=1
ignorehitpause=1
[state ];コントロール制御
type=ctrlset
trigger1=!ishelper
trigger1=var(26):=ifelse(ctrl,1,var(26))||var(26)
trigger1=var(6)
trigger1=anim=0||(anim=[10,12])||(anim=[20,21])||anim=50||(anim=52&&animelemTime(1)>2)
trigger1=roundstate=2
trigger1=!win&&!lose
value=1
ignorehitpause=1
[state ];無敵処理
type=varadd
trigger1=1
var(40)=-1
ignorehitpause=1
[state ];体力管理
type=lifeset
trigger1=!ishelper
trigger1=var(6)=1
value=700-var(41)
ignorehitpause=1
[state ];ダメージ
type=varadd
trigger1=roundstate=2
trigger1=!win&&!lose
trigger1=life>1||(life=1&&anim!=2000)
trigger1=(enemy,projcontacttime(0)=1||enemy,movecontact)||stateno=1
trigger1=var(40)<1
trigger1=var(40):=50+(life<lifemax/2)*30
var(41)=(life>lifemax/2)*10+(life>10)*10+(life<=10)
ignorehitpause=1
[state ];時止め
type=superpause
trigger1=roundstate!=2
anim=-1
time=2147483647
movetime=2147483647
darken=0
unhittable=0
ignorehitpause=1
[state ]
type=pause
trigger1=roundstate!=2
time = 2147483647
movetime = 2147483647
ignorehitpause = 1
[state ];反撃
type=projectile
trigger1=movereversed
projid=2002
projanim=2002
projremove=0
projremovetime=5
projhitanim=-1
postype=p1
offset=0,0
attr=S,NA
damage=38, 0
getpower=61,61
animtype=light
guardflag=
hitflag=MAF
priority=3,hit
pausetime=0,10
sparkno=-1
sparkxy=-5,-89
hitsound=-1;s300,random%3
guard.sparkno=-1
guardsound=s120,0
ground.type=high
ground.slidetime=9
ground.hittime=9
ground.velocity=-6
airguard.velocity=-1.9,-2
air.type=low
air.velocity=-1.4,-3
air.hittime=12
;p2getp1state=0
;p2stateno=5110
;fall=1
;fall.recover=0
;fall.damage=-9999999999999999999999999999999999999999
ignorehitpause=1
;========================================================================
;サポートヘルパー
[state ]
type=assertspecial
triggerall=ishelper(1)
trigger1=root,anim=2000
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1
[state ];永続タゲ
type=reversaldef
trigger1=ishelper(1)
reversal.attr=SCA,AA,AT,AP
hitflag=M-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=ishelper(99998)
value=99998
ignorehitpause=1
;========================================================================
;混線（未搭載）
[state ]
type=null;helper
trigger1=!ishelper
;trigger1=root,
helpertype=player
name="bolt"
id=2
postype=p1
pos=0,0
stateno=3100
ownpal=1
ignorehitpause=1
[state ];永続タゲ
type=null;reversaldef
trigger1=ishelper(2)
reversal.attr=SCA,AA,AT,AP
hitflag=M-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=5150
ignorehitpause=1
;========================================================================
;禁じ手
[state ]
type=assertspecial
trigger1=!ishelper
trigger1=var(9)!=1
trigger1=var(41)<lifemax
trigger1=life=0
flag=noko
ignorehitpause=1
;========================================================================
;敗北動作
[state ];エフェクト消す
type=removeexplod
trigger1=loseko
ignorehitpause=1
[state ];タゲステで変なところにいかないように
type=posset
trigger1=var(6)
trigger1=loseko
trigger1=!ishelper&&(stateno!=[5050,5151])&&life=0
y=0
ignorehitpause=1
[state ];吹っ飛ぶ
type=velset
trigger1=var(6)
trigger1=loseko
trigger1=!ishelper&&(stateno!=[5050,5151])&&life=0
x=-3
y=-6
ignorehitpause=1
[state ];吹き飛ぶ
type=selfstate
trigger1=var(6)
trigger1=loseko
trigger1=var(20)=0
trigger1=!ishelper&&(stateno!=[5050,5151])&&life=0
value=5050
ignorehitpause=1
[state ];ありえん（悔）
type=playsnd
trigger1=!ishelper
trigger1=loseko
trigger1=var(20)=0
trigger1=var(20):=1
value=s11,10
ignorehitpause=1
;=======================================================================
;target〜
[state ]
type=targetstate
triggerall=roundstate=2
triggerall=numtarget
triggerall=!target,ishelper
trigger1=anim=2000&&animelemtime(1)>52
trigger1=(gametime%3) = 1
trigger2=ishelper(1)
trigger2=stateno=3001
trigger2=(gametime%3) = 1
value=2003
[state ]
type=targetlifeadd
triggerall=roundstate=2
triggerall=numtarget
triggerall=!target,ishelper
trigger1=anim=2000
trigger2=ishelper(1)
trigger2=stateno=3001
value=-999999999999999
absolute=1
;=======================================================================
;selfstate
[state ]
type=selfstate
trigger1=!ishelper
trigger1=!loseko
value=151
ignorehitpause=1
[state ]
type=selfstate
trigger1=ishelper(1)
value=3000+(root,anim=2000&&root,animelemtime(1)>52)
ignorehitpause=1