A.I system - help with errors - fighter factory - Blaze mugen forums
Tuesday, 2009-11-24, 1:32 Pm
Welcome Guest

Blaze M.U.G.E.N

Blaze mugen forums

[New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Blaze mugen forums » fighter factory » help with errors » A.I system
A.I system
mastersDate: Saturday, 2007-09-15, 4:07 Pm | Message # 1
MuGeN General
Group: Administrator
Messages: 102
Reputation: 4
Status: Offline
code this in your commands

;-cup motions--------------------------------------------------------------
[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

[Command]
name = "cpu5"
command = a,a,a,a,a,a,a
time = 0

[Command]
name = "cpu6"
command = x,x,x,x,x,x,x
time = 0

[Command]
name = "cpu7"
command = y,y,y,y,y,y,y
time = 0

[Command]
name = "cpu8"
command = b,b,b,b,b,b,b
time = 0

[Command]
name = "cpu9"
command = c,c,c,c,c,c,c
time = 0

[Command]
name = "cpu10"
command = z,z,z,z,z,z,z
time = 0

[State -1, cup]
Type = ParentVarSet
triggerall = command = "cpu1'
triggerall = command = "cpu2"
triggerall = command = "cpu3"
triggerall = command = "cpu4"
triggerALL = Command = "cpu5"
triggerall = command = "cpu6"
triggerall = Command = "cpu7"
triggerall = Command = "cpu8"
triggerall = Command = "cpu9"
triggerall = Command = "cpu10"
var(59) = 1

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

[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
and there go your A.I system

and code this in your cns state def -2

[state -2]
type = changestate
triggerall = (stateno = 400 || stateno = 300) && (movehit || moveguarded)
trigger1 = command != "holddown"
trigger1 = command = "b"
ctrl = 0
value = 240

[state -2]
type = changestate
triggerall = (stateno = 400 || stateno = 300) && (movehit || moveguarded)
trigger1 = command != "holddown"
trigger1 = command = "c"
ctrl = 0
value = 250

[state -2]
type = changestate
triggerall = (stateno = 250 || stateno = 210 || stateno = 230 || stateno = 240) && (movehit || moveguarded)
trigger1 = command != "holddown"
trigger1 = command = "x"
ctrl = 0
value = 200

[state -2]
type = changestate
triggerall = (stateno = 250 || stateno = 240 || stateno = 200 || stateno = 230 || stateno = 220 || stateno = 420) && (movehit || moveguarded)
trigger1 = command != "holddown"
trigger1 = command = "y"
ctrl = 0
value = 210

[state -2]
type = changestate
triggerall = (stateno = 200 || stateno = 240 || stateno = 250 || stateno = 210 || stateno = 230 || stateno = 410 || stateno = 420 || stateno = 430) && (movehit || moveguarded)
trigger1 = command != "holddown"
trigger1 = command = "z"
ctrl = 0
value = 220

[state -2]
type = changestate
triggerall = (stateno = 200 || stateno = 240 || stateno = 250 || stateno = 210 || stateno = 220 || stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430 || stateno = 440) && (movehit || moveguarded)
trigger1 = command != "holddown"
trigger1 = command = "a"
ctrl = 0
value = 230
there you go an A.I system smile
this will make your character alot harder angry


Ture Gamer of capcom
vs


Message edited by masters - Saturday, 2007-09-15, 4:08 Pm
 
omegaDate: Tuesday, 2007-10-09, 12:44 Pm | Message # 2
Training
Group: Users
Messages: 25
Reputation: 2
Status: Offline
there are quiet a lot of errors with that code and i dont understand it thAT much sad
also somone els made a new topic about AI system help in the FAQ
 
Blaze mugen forums » fighter factory » help with errors » A.I system
Page 1 of 11
Search:

Login form
E-mail:
Password:
Site friends
Site Admins
Blazeinc (A.K.A UrOz)
Our poll
which character series are the best for mugen
Total of answers: 1007
Created By UrOz | Blazeinc