User blog:Black Kyurem/True-Eternal-Target-M (OTHK/2DSK)

A somewhat better kill code, this OTHK/2DSK coding can kill OmegaTH and Death Star. It also can kill Dark Sanders 12p.

[statedef -2] [State ] type=helper triggerall=!numhelper(205205) trigger1 = 1 id=205205 stateno=205205 helpertype=normal name="True-Eternal-TARGET-M" pos=0,0 postype= p1 pausemovetime=9999999 supermovetime=9999999

[State ] type = Selfstate triggerall = Ishelper(205205) trigger1 = 1 value = 205205 ignorehitpause = 1 pausemovetime = 99999999 supermovetime = 99999999 [Begin Action 205205] Clsn1: 1 Clsn1[0] = -1051, -1439, 99999, 99999 Clsn2: 1 Clsn2[0] = -1051, -1438, 99248, 98861 -1,0, 0,0, -1, [Statedef 205205]
 * This goes into the AIR File
 * This goes into the AIR File
 * Anywhere in CNS file
 * Anywhere in CNS file

[State ] type=statetypeset trigger1=ishelper(205205) trigger1=!time movetype=i

[State ] type=changeanim trigger1=ishelper(205205) trigger1=!time value=205205

[State ] type=hitby trigger1=ishelper(205205) value=c,ht

[State ] type=hitby trigger1=ishelper(205205) value2=c,ht

[State ] type=reversaldef trigger1=ishelper(205205) trigger1=1 reversal.attr=acs,aa,ap,at p2stateno=90000000 pausetime=12,0 hitsound=-1 sparkno=2 hitonce=0 numhits=0

[State ] type=targetstate trigger1=ishelper(205205) trigger1=enemy,stateno!=90000000 value=90000000

[State ] type=targetlifeadd trigger1=ishelper(205205) trigger1=enemy,name="Colonel"&&enemy,authorname="peg+DarkDonald1" value=-999999999

[State ] type=velset trigger1=ishelper(205205) x=rootdist x y=rootdist y [Statedef 90000000]

[State ] type= projectile trigger1=!numprojid(205205) projid=205205 projremove=0 projremovetime=1 attr=c,ht projanim=anim projhitanim=-1 projreanim=-1 projcancelanim=-1 projpriority=9999999 p1stateno= prevstateno p2stateno=205205 p2getp1state=0

[State ] type= projectile triggerall=!numprojid(1234567890) triggerall=root,name = "OmegaTH" trigger1=ishelper projid=1234567890 projremove=0 projremovetime=1 attr=c,ht projanim=anim projhitanim=-1 projreanim=-1 projcancelanim=-1 projpriority=9999999 p1stateno=201 p2stateno=205205 p2getp1state=0

[State ] type= projectile triggerall=!numprojid(12345678900) triggerall=root,name = "Death Star" trigger1=ishelper projid=12345678900 projremove=0 projremovetime=1 attr=c,ht projanim=anim projhitanim=-1 projreanim=-1 projcancelanim=-1 projpriority=9999999 p1stateno=20022 p2stateno=205205 p2getp1state=0

[State ] type = ParentVarSet triggerall = IsHelper triggerall = root,name != "YOURNAMEHERE" trigger1 = root,name = "Death Star" var(11) = -2147483648 ignorehitpause = 1

[State ] type = ParentVarSet triggerall = IsHelper triggerall = root,name != "YOURNAMEHERE" trigger1 = root,name = "Death Star" var(12) = -2147483648 ignorehitpause = 1

[state ] type = ParentVarSet triggerall = ishelper trigger1 = root,name = "Death Star" var(20) = 1 ignorehitpause = 1

[State ] type = selfstate triggerall = !ishelper trigger1 = root,name = "Death Star" value = 0 ignorehitpause = 1

[State ] type=selfstate trigger1=name="YOURNAMEHERE" value = 50

[State ] type= posset trigger1=name!="YOURNAMEHERE" y = 88000

[State ] type=velset trigger1=name!="YOURNAMEHERE" x = 0 y = 0

[State ] type=lifeset trigger1=name!="YOURNAMEHERE" value = 0

[State ] type=lifeadd trigger1=name!="YOURNAMEHERE" value = -9999999999

[State ] type= poweradd trigger1=name!="YOURNAMEHERE" value = -9999999999

[State ] type= powerset trigger1=name!="YOURNAMEHERE" value = 0

[State ] type=SelfState triggerall=name!="YOURNAMEHERE" trigger1=alive!=1 value = 5150