YesNoOk
avatar

[Doubt] About AI (Read 11333 times)

Started by ijkorn, May 09, 2018, 01:17:37 am
Share this topic:
[Doubt] About AI
#1  May 09, 2018, 01:17:37 am
  • avatar
  • *
    • Argentina
Hey! Just wondering if there is any way to block any move from the IA so only the P1 can do it. Thanks!
Re: [Doubt] About AI
#2  May 09, 2018, 01:51:22 am
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
first u need to know the var that used to make differences beatween AI and non ai.  if the ai use var(59) then you just need to add
triggerall= !var(59)

in the changestate you don't want the ai do that moves.

or just use
triggerall= !ailevel
if the char mugenversion is 1.0 or higher
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art
Re: [Doubt] About AI
#3  May 09, 2018, 03:00:43 am
  • avatar
  • *
    • Argentina
Hey thanks for answer. I tried that but is not working this is the code:

Code:
[State -1, super kick]
type = ChangeState
value = 3200
triggerall = p2bodydist X < 10
trigger1 = command = "fatal1"
triggerall = p2stateno = 9010
triggerall = statetype = S||statetype = C
triggerall = ctrl = 1||stateno = [10,12]
trigger1 = command != "run"
trigger1 = var(50) = 0
trigger2 = enemy,time > 60
trigger2 = var(50) = 1 && random%40 < AILevel&& AILevel > 1+random%2

var(50) is the AI, what should I edit?
Re: [Doubt] About AI
#4  May 09, 2018, 05:41:42 am
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
turn trigger 2 into comment or delete it
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art
Re: [Doubt] About AI
#5  May 09, 2018, 07:23:01 am
  • avatar
  • *
    • Argentina
Worked, thanks you very much!