The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Code Library => Topic started by: 2OS on June 12, 2012, 09:01:54 pm

Title: Necessary triggeralls for redirects and some sctrls for debug
Post by: 2OS on June 12, 2012, 09:01:54 pm
enemy,  enemynear,  has no ##-th enemy                                          →  numenemy
partner,                    has no ##-th partner                                         →  numpartner
helper,                     has no helper (id##)                                          →  numhelper
parent,  root,            has no parent, has no root                                 →  ishelper
target,                      has no target with hit id (id##)                            →  numtarget
playerid,                   tried to access player with non-existent id (id##)  →  playeridexist


has no 0-th (nearest) enemy  ;;  ""congratulations !!"" screens

triggerall=numenemy

trigger1=enemy,stateno||enemynear,stateno


has no 1-th (nearest) enemy  ;; detecting p3 or p4 in simul mode

triggerall=numenemy
trigger1=enemy(1),stateno >>>>> enemy(numenemy=2),stateno


has no 0-th partner

triggerall=numpartner

trigger1=partner,stateno


has no target with hit id (id##)

triggerall=numtarget

trigger1=target,stateno


has no helper (id##)

triggerall=numhelper

trigger1=helper,stateno


has no parent / has no root

triggerall=ishelper

trigger1=parent,stateno||root,stateno


tried to access non-existent player with id (id##)

triggerall=playeridexist(var(2))

trigger1=playerid(var(2)),stateno


[State ]
type=targetbind
triggerall=numtarget


[State ]
type=targetdrop
triggerall=numtarget


[State ]
type=targetlifeadd
triggerall=numtarget


[State ]
type=targetstate
triggerall=numtarget


[State ]
type=targetveladd
triggerall=numtarget


has no parent for bindtoparent

[State ]
type=bindtoparent
triggerall=ishelper


has no root for bindtoroot

[State ]
type=bindtoroot
triggerall=ishelper


has no target for bindtotarget

[State ]
type=bindtotarget
triggerall=numtarget


destroyself called for non helper

[State ]
type=destroyself
triggerall=ishelper
Title: Re: Necessary triggeralls for redirects and some sctrls for debug
Post by: MGMURROW on June 16, 2012, 11:32:25 pm
has no 0-th (nearest) enemy  ;;  ""congratulations !!"" screens

triggerall=numenemy
trigger1=enemy,stateno||enemynear,stateno

does this go in every instance or in a certain stateno??

thanks

MGMURROW
Title: Re: Necessary triggeralls for redirects and some sctrls for debug
Post by: 2OS on June 17, 2012, 02:40:28 am
anything with ""enemy,"" or ""enemynear,"" needs triggerall=numenemy.

stateno was just a ""fill in the blank"".
Title: Re: Necessary triggeralls for redirects and some sctrls for debug
Post by: BoyBoyz on July 21, 2012, 09:00:01 pm
Thanks!