If the dude in the video told you to do what you've actually done, please don't use any more of his videos.
^ Disregard this
I learned AI from that particular video, actually watch the entire thing and take your time, you'll eventually get it
The little bit that I learned from this video enabled me to do variant adjustable AI levels with WINmugen [ Which I'm still using cos 1.0's sound system disappoints the everloving shit out of me ]
Part of the video says to make a fuckload of ""Impossible commands"" [ 35 to 50 will do ]
Spoiler: AI Commands (click to see content)
[Command]
name = "CPU_001"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_002"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_003"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_004"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_005"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_006"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_007"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_008"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_009"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_010"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_011"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_012"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_013"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_014"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_015"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_016"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_017"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_018"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_019"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_020"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_021"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_022"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_023"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_024"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_025"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_026"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_027"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_028"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_029"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_030"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_031"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_032"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_033"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_034"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_035"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_036"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_037"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_038"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_039"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_040"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_041"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_042"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_043"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_044"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_045"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_046"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_047"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_048"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_049"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
[Command]
name = "CPU_050"
command = y,a,B,b,a, D,a,B,b,a, D,U,U
time = 1
Then, make a variable using those commands
Spoiler: AI Variable (click to see content)
[State 2OS]
type=varset
triggerall=roundstate=2&&!ishelper
trigger1=command="CPU_001"||command="CPU_002"||command="CPU_003"||command="CPU_004"||command="CPU_005"||command="CPU_006"||command="CPU_007"||command="CPU_008"||command="CPU_009"||command="CPU_010"
trigger2=command="CPU_011"||command="CPU_012"||command="CPU_013"||command="CPU_014"||command="CPU_015"||command="CPU_016"||command="CPU_017"||command="CPU_018"||command="CPU_019"||command="CPU_020"
trigger3=command="CPU_021"||command="CPU_022"||command="CPU_023"||command="CPU_024"||command="CPU_025"||command="CPU_026"||command="CPU_027"||command="CPU_028"||command="CPU_029"||command="CPU_030"
trigger4=command="CPU_031"||command="CPU_032"||command="CPU_033"||command="CPU_034"||command="CPU_035"||command="CPU_036"||command="CPU_037"||command="CPU_038"||command="CPU_039"||command="CPU_040"
trigger5=command="CPU_041"||command="CPU_042"||command="CPU_043"||command="CPU_044"||command="CPU_045"||command="CPU_046"||command="CPU_047"||command="CPU_048"||command="CPU_049"||command="CPU_050"
var(9)=3 ;; Re-Evaluate the variable number to whatever number you desire between 0 and 59, Re-Evaluate it's value to anything
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999
THEN start creating your AI
Spoiler: Powercharge for AI (click to see content)
[ Values used are for example, obviously Re-Evaluate them to suit you ]
[State 2OS]
type=changestate
value=3000
triggerall=var(9) ;; AI Variable is active ^
triggerall=statetype!=a&&ctrl ;; Not in an aerial state and has control [ Control = States where you have actual control ( Walk and Crouch states being examples ) ]
triggerall=power!=powermax ;; Power isn't at maximum
triggerall=enemy,vel x<2||enemy(enemy,teammode=simul),vel x<2 ;; Players 2 and 4 are not too aggressive in terms of horizontal speed
triggerall=enemy,numproj<=0||enemy(enemy,teammode=simul),numproj<=0 ;; Players 2 and 4 have no existing projectiles on screen
triggerall=p2movetype!=a ;; Players 2 and 4 are not in an attack state
trigger1=p2dist x>=175 ;; Players 2 and 4 are distant enough for you to charge safely
EDIT — With Mugen 1.0 you can skip the first two spoilers [ Holy shit right ? ], but only if you choose to [ You probly will ], since my own personal AI Code and Levels are more complex than average, I choose not to use this feature / method / w.e
You'd first need to add or edit a line in your .DEF
[Info]
name = "Name"
displayname = "DisplayName"
versiondate = 10/11/2010
mugenversion = 1.0
author = "2OS"
pal.defaults = 1,2
Spoiler: Powercharge for AI ( Mugen 1.0+ Only ) (click to see content)
[ Values used are for example, obviously Re-Evaluate them to suit you ]
[State 2OS]
type=changestate
value=3000
triggerall=ailevel>=0 ;; Self Explanatory
triggerall=statetype!=a&&ctrl ;; Not in an aerial state and has control [ Control = States where you have actual control ( Walk and Crouch states being examples ) ]
triggerall=power!=powermax ;; Power isn't at maximum
triggerall=enemy,vel x<2||enemy(enemy,teammode=simul),vel x<2 ;; Players 2 and 4 are not too aggressive in terms of horizontal speed
triggerall=enemy,numproj<=0||enemy(enemy,teammode=simul),numproj<=0 ;; Players 2 and 4 have no existing projectiles on screen
triggerall=p2movetype!=a ;; Players 2 and 4 are not in an attack state
trigger1=p2dist x>=175 ;; Players 2 and 4 are distant enough for you to charge safely