collapse

Author Topic: How can you adjust AI's cpu level?  (Read 1851 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

[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]


D2TD VS Showcase Thread by D2TD
[May 31, 2024, 11:44:23 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[May 26, 2024, 07:39:11 PM]


TMNT Hong Kong Stage for 1.0 & 1.1 Re-Release by LightFlare
[May 24, 2024, 01:44:07 PM]


Captain Commando Stage Pack by Vegaz by LightFlare
[May 24, 2024, 09:20:05 AM]


Street Fighter 1 Ultimate Ryu by ELECTRO
[May 22, 2024, 03:58:25 PM]


China Town (Revenge of Shinobi) by Lord_Enemil
[May 22, 2024, 03:02:10 PM]


Neon Light Force Demo by Uche_of_IMT
[May 22, 2024, 10:21:37 AM]

* IMT Calendar

June 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