blackchaos Administrator
Number of posts : 137 Age : 41 Location : London,England Registration date : 2008-07-23
| Subject: AI trigger July 27th 2008, 5:11 pm | |
| http://uk.youtube.com/watch?v=iCi9Tta1_Bk
my tutorial on how to trigger AI and set up some triggers, its a little basic tho so i can note down better triggers here
this is my AI move for akumas super hadouken
[State -1,AI mesatsu gou hadouken] type = ChangeState value = 3000 triggerall = Var(7) = 1 && roundstate =2 ;when AI trigger = 1 and the round hasnt finished
triggerall = ctrl && statetype = S && power >= 1000 ;when p1 has ctrl and is standing and has 1 power lvl or more
trigger1 = p2statetype !=A && p2bodydist x = [40,160] ;when p2 isnt jumping and its between 40 and 160 pixels away from p1
trigger1 = p2movetype !=A && p2stateno = 20 ;when p2 isnt attacking and he is walking forward
trigger1 = random <= 100 ;random for all trigger 1, everything in trigger1 must happen for the move to work, and triggerall is the main conditions that must be met
trigger2 = stateno = 250 && movecontact ;after standing hard kick connects activate the super
trigger2 = random <= 90 ; but give it a random percentage, the percent here is 9% chance, but because it checks triggers every 60th of a second itll be higher
i wont show you the rest because thats my own stuff im keeping. | |
|