Posted by M.U.G.E.N.P.E.R.V
in Help coding helper move for AI (Started by M.U.G.E.N.P.E.R.V December 08, 2009, 11:08:08 pmBoard: M.U.G.E.N Development Help
[State -1, xxx] <-------state of the grab
type = ChangeState
value = 9999
triggerall = NumHelper(7350) = 0
triggerall = NumHelper(1150) = 0
triggerall = var(51) = 1
triggerall = var(53) = 1
triggerall = p2bodydist x = [-5,10]
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = p2statetype != S
triggerall = ctrl
trigger1 = random < 30
trigger1 = p2movetype = A
[State -1, xxx2] <-------state of one of the attacks after the grab
type = ChangeState
value = 9998
triggerall = NumHelper(7350) = 0
triggerall = NumHelper(1150) = 0
triggerall = var(51) = 1
triggerall = var(53) = 1
triggerall = p2bodydist x = [-5,10]
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = p2statetype != S
triggerall = p2stateno = xxxx(state p2 will be when move hits)
triggerall = ctrl
trigger1 = random < 20
Can this work? Apologies if this looks like turd coding
but this is the first time Im actually making a custom Ai code, usually I just copy existing code of similar moves and just add different triggers to suit my needs but this one if alot more tricky cause of the helper aspect and having no experience in this type of command grabs. My main worry here is creating clones which in my experience tends to happen alot when dealing with helpers.......partly due to my suckyness
Btw Im using the other Ai coding method that is not Winane's. As explained here http://mugenguild.com/forumx/index.php?topic=108420.msg1012378;boardseen#new

