collapse

Author Topic: A.I. hitflag strategy  (Read 582 times)

0 Members and 1 Guest are viewing this topic.

Offline I.E.T. Arcade

  • Contributor
  • ****
  • Posts: 344
  • Country: United Kingdom gb
  • Last Login:May 15, 2020, 01:18:02 PM
A.I. hitflag strategy
« on: September 25, 2016, 10:28:14 PM »
Ok so far the A.I in my project is pretty solid but I'd like the A.I to have an additional human /natural like response. So
in this instance I'd like the cpu to crouch under standing moves that hit high. So in my case moves that have the "hitflag = HAF"  How do I get the cpu to crouch and avoid those attacks in that category? I know a few ways but that involves listing the specific P2attack states  which would be far too many.

Any suggestions would be greatly appreciated.
« Last Edit: September 25, 2016, 10:54:46 PM by S2G »



Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12459
  • Country: Brazil br
  • Last Login:April 01, 2024, 11:02:34 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: A.I. hitflag strategy
« Reply #1 on: September 26, 2016, 10:00:56 AM »
The closest thing I can think is GetHitVar but it will work only when you are already in a hit state:
http://mugenarchive.com/docs/1.1/trigger.html#gethitvar

Because HitDefAttr doesn't has any option to get it.

Probably, Elecbyte had extended it with Lua scripting, but there is no trace of documentation about it.

Offline I.E.T. Arcade

  • Contributor
  • ****
  • Posts: 344
  • Country: United Kingdom gb
  • Last Login:May 15, 2020, 01:18:02 PM
Re: A.I. hitflag strategy
« Reply #2 on: September 27, 2016, 02:37:02 PM »
The closest thing I can think is GetHitVar but it will work only when you are already in a hit state:
http://mugenarchive.com/docs/1.1/trigger.html#gethitvar

Because HitDefAttr doesn't has any option to get it.

Probably, Elecbyte had extended it with Lua scripting, but there is no trace of documentation about it.

Ah I see. Well that wont be very useful for me.

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

* IMT Calendar

April 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