Infinity MUGEN Team

IMT Main => M.U.G.E.N Guides & Tutorials => Topic started by: shootYr. on August 18, 2007, 02:04:48 AM

Title: How to make A.I codes
Post by: shootYr. on August 18, 2007, 02:04:48 AM
Ummmm....... Theres not much to it. Just find a code like,

;-| CPU |--------------------------------------------------------
[Command]
name = "cpu1"
command =D,D,D,D,D,D,D,D
time = 0

[Command]
name = "cpu2"
command =F,F,F,F,F,F,F
time = 0

[Command]
name = "cpu3"
command =U,U,U,U,U,U,U,U
time = 0

[Command]
name = "cpu4"
command = B,B,B,B,B,B,B
time = 0

and post it at the Top Of The CMD

then at the top of the bottom of the CMD You put something like.....

[State -1]
Type = ParentVarSet
triggerall = command = "cpu1'
triggerall = command = "cpu2"
triggerall = command = "cpu3"
triggerall = command = "cpu4"
triggerall = command = 'cpu5"
triggerall = command = "cpu6"
triggerall = command = "cpu7"
var(59) = 1

Thats not a definate code but play with it. You can find a definate code in the CMD Of SpeeD on my filefront.

Now heres where things get annoying. X(

you have to copy all of the CMD statedef -1 Codes and repost them at either the bottom or the top. Just Make sure they aren't bunched together. So Then You start. Find a state.

[State -1, Llmma Chicken Fish Stick]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = ctrl

Redo it Specifiying P2's Conditions.

[State -1, Llmma Chicken Fish Stick]
type = ChangeState
value = 400
triggerall = P2BodyDist x >25
triggerall = PrevStateNo = 200
triggerall = PrevStateNo != 220
triggerall = P2StateNo = [5000,5021]
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = ctrl

To further make the character harder edit the CNS or the AIr to make him invinsible in certain states, add damage, more hitdefs, and increase the amount of default air juggle points.

Thats pretty much it.
SimplePortal 2.3.5 © 2008-2012, SimplePortal