collapse

Author Topic: How can you adjust AI's cpu level?  (Read 2147 times)

0 Members and 1 Guest are viewing this topic.

Offline TGM

  • Yours truly
  • Infinity Regular
  • ****
  • Posts: 732
  • Country: United States us
  • Last Login:January 26, 2022, 03:46:39 AM
  • Knowledge is power but enthusiasm pulls the switch
    • starrich55
How can you adjust AI's cpu level?
« on: April 29, 2011, 02:13:12 AM »
I just wanna know how can ya change the difficulty of the cpu's level cause I got tired of evil homer and I wanna change it like evil ken ya know?



Offline SanjiSasuke

  • Wannabe Disciple of Master Lee
  • Infinity Faithful
  • ****
  • Posts: 2963
  • Last Login:July 04, 2018, 10:39:08 PM
  • Vega: Master of the Claw (along with Wolverine)
    • SanjiSasuke's Lair
    • Email
Re: How can you adjust AI's cpu level?
« Reply #1 on: April 29, 2011, 11:56:18 PM »
Well in 1.0 Compatible Chars (like the re-releases of E. Ken, E. Ryu and Dragon Claw) the AI will change with difficulty level in the options menu.

On old WinMUGEN you're stuck.

Offline TGM

  • Yours truly
  • Infinity Regular
  • ****
  • Posts: 732
  • Country: United States us
  • Last Login:January 26, 2022, 03:46:39 AM
  • Knowledge is power but enthusiasm pulls the switch
    • starrich55
Re: How can you adjust AI's cpu level?
« Reply #2 on: April 30, 2011, 11:54:01 AM »
But is there another way to replace them and paste it?

Offline SanjiSasuke

  • Wannabe Disciple of Master Lee
  • Infinity Faithful
  • ****
  • Posts: 2963
  • Last Login:July 04, 2018, 10:39:08 PM
  • Vega: Master of the Claw (along with Wolverine)
    • SanjiSasuke's Lair
    • Email
Re: How can you adjust AI's cpu level?
« Reply #3 on: April 30, 2011, 02:12:39 PM »
I don't know if E. Homer is exactly like E Ken, if any tweaks were made (on either side) or if he is a straight sprite swap.

If the latter is true you could try copying all the files except SFF and AIR from ken to Homer but I'd backup first. See how that works.

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: How can you adjust AI's cpu level?
« Reply #4 on: May 02, 2011, 04:59:44 PM »
Nope, there is not much copy and paste available for AI, because every aspect of AI is deeply involved with the rest of the code for the character.

Offline TGM

  • Yours truly
  • Infinity Regular
  • ****
  • Posts: 732
  • Country: United States us
  • Last Login:January 26, 2022, 03:46:39 AM
  • Knowledge is power but enthusiasm pulls the switch
    • starrich55
Re: How can you adjust AI's cpu level?
« Reply #5 on: May 03, 2011, 02:26:02 AM »
Then how can ya modify the difficulty of the AI's level  /:O

cause I'm tired playing with the evil homer that just respond in a minute just to make a move or a combo  <_<|...|

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: How can you adjust AI's cpu level?
« Reply #6 on: May 03, 2011, 08:20:29 AM »
Coding the AI , is one of the most difficult things to code.

Usually the Ai is coded in these way

[State AI, Crouch weak punch]
type = ChangeState
triggerall = var(0)   ;Ai activation variable, it can be a different number
triggerall = statetype = C  ;activate if you are crouching
triggerall = p2bodydist y <-65 ; activate if you are 64 or less pixels away
trigger1 = random <= 200  ; the random is used to make the Ai hard to predict
trigger1 = p2movetype != A  ; activate when the enemy is not in the air
value = 400

Triggerall, means that the character can only change to state 400 if you fulfill the trigerall requirements.


sig made by shullbocka

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: How can you adjust AI's cpu level?
« Reply #7 on: May 03, 2011, 12:05:11 PM »
@ Fallen Angle, there are new docs for Mugen 1.0

! = var(59)
= (AILevel = 4) || (AI Level >0) || (AILevel * 10)... etc...

AILevel = [1,8]

and

(AILevel = 0) = No AI

Offline SanjiSasuke

  • Wannabe Disciple of Master Lee
  • Infinity Faithful
  • ****
  • Posts: 2963
  • Last Login:July 04, 2018, 10:39:08 PM
  • Vega: Master of the Claw (along with Wolverine)
    • SanjiSasuke's Lair
    • Email
Re: How can you adjust AI's cpu level?
« Reply #8 on: May 03, 2011, 08:33:49 PM »
Nope, there is not much copy and paste available for AI, because every aspect of AI is deeply involved with the rest of the code for the character.

I was just thinking because they are nearly the exact same char (wither E Ryu or E Ken is the original base for E Homer) the codes may be exactly alike aside from the new AI.

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: How can you adjust AI's cpu level?
« Reply #9 on: May 03, 2011, 08:45:49 PM »
I was just thinking because they are nearly the exact same char (wither E Ryu or E Ken is the original base for E Homer) the codes may be exactly alike aside from the new AI.

Nope  :-??

Offline C.R.O.M. - ManoloStyle

  • Proud MvC3 Pet Owner - Beware my Dog's Bite - Winner of Bonus Round Page 420 LPTPW - Awesome Signatures of my MvC3 Stable Courtesy of TGM - Caution !!! Don't mess with he who wears glasses...
  • Infinity Regular
  • ****
  • Posts: 1260
  • Last Login:June 01, 2015, 10:02:57 PM
  • Proud Member of C.R.O.M. Visit My YouTube Channel
    • Visit My YouTube Channel
Re: How can you adjust AI's cpu level?
« Reply #10 on: May 03, 2011, 10:16:27 PM »
Then how can ya modify the difficulty of the AI's level  /:O

cause I'm tired playing with the evil homer that just respond in a minute just to make a move or a combo  <_<|...|


If you are going to get into Mugen for the long run, I suggest you at least learn to re-code AI to your liking so you can "balance" your roster. It's time consuming and not easy, and even after you learn, it takes time to do the edits and test specific behaviors, but it can be very rewarding. I still don't know how to create AI from scratch, mainly because I have never tried, but I learned how to edit it. It could take me hours or even days per character, but it's worth it when you are building a roster. Here are two basic tutorials to get you started. You can find many on the internet. Just google "Mugen AI" or "Mugen trigger tutorial" or "Mugen trigger definitions" or something related. You can even find videos on YouTube. I hope this helps...  :thumbsup:

http://mugenguild.com/forumx/index.php?topic=108420.0

http://www.elecbyte.com/wiki/index.php/AI



                                                                                        
                                                  

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 AM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 [15] 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal