English (American)  中文(简体)
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Spt] Modifying Ai's Behaviour
#1
Modifying Ai's Behaviour
The "behavior" of a computer player, Ai, can be modified in the Spt of that character e.g, when to perform a move.

In performing a move by Ai, the distance is an important factor to consider, setting a range of distance values for a specific move will reduce the tendency of Ai performing moves randomly, thereby, increasing the Ai's skill.

1. How to make Ai use a move at a given range of distance;

This is the ICECOL of Iczzy
"81": {
            "__AMF0_OBJECT_CLASSNAME__": "Data.Action",
            "selfLoop": false,
            "nextAi": -1.0,
            "allowTurnFace": false,
            "nextAti": -1.0,
            "frame": null,
            "aiz2": 250.0,
            "special": 0.0,
            "landAti": -1.0,
            "landAi": -1.0,
            "nextAgi": -1.0,
            "name": "ICECOL",
            "a_keyTgr": null,
            "landAgi": -1.0,
            "frameIndex": 231.0,
            "aix1b": -750.0,
            "mpBurn": 0.0,
            "index": 81.0,
            "aix2": 750.0,
            "aiz1": -250.0,
            "nextActionName": null,
            "type": -1.0,
            "aix2b": 750.0,
            "aix1": -750.0,
            "landActionName": null
        },


"aiz2","aix1b","aix2","aiz1","aix2b" and "aix1" are the parameters governing the distance at which Com will decide to attack. An enemy withing this range is in the territory of Com, so Ai will attack.

We can see that aiz2 = 250, which means; if an enemy is within the range of 1 - 250μm in the positive direction, ie. facing the Ai, Com Iczzy will use the ICECOL in the presence of sufficient mp. (i used μm  as the unit of measurement, this may not be the unit used in the game) Perhaps, at 300μm, enemy won't be affected by the attack, so Com wont use the ICECOL.

aix1b = -750, means; if enemy is within the range of -750 to -1, in the negative direction, i.e behind Ai, Com Iczzy will perform the ICECOL if there's enough mp.

Normal Com Iczzy

2. To make Ai not make use of a particular skill.

Since the distance assists Ai in deciding when to attack, it can be modified in a way that Com won't use this skill.
If the values of "aiz2","aix1b","aix2","aiz1","aix2b" and "aix1" are set to 0, Com Iczzy won't use the ICECOL at any distance.

"81": {
            "__AMF0_OBJECT_CLASSNAME__": "Data.Action",
            "selfLoop": false,
            "nextAi": -1.0,
            "allowTurnFace": false,
            "nextAti": -1.0,
            "frame": null,
            "aiz2": 0.0,
            "special": 0.0,
            "landAti": -1.0,
            "landAi": -1.0,
            "nextAgi": -1.0,
            "name": "ICECOL",
            "a_keyTgr": null,
            "landAgi": -1.0,
            "frameIndex": 231.0,
            "aix1b": 0.0,
            "mpBurn": 0.0,
            "index": 81.0,
            "aix2": 0.0,
            "aiz1": 0.0,
            "nextActionName": null,
            "type": -1.0,
            "aix2b": 0.0,
            "aix1": 0.0,
            "landActionName": null
        },


Simple explanation; Since matter occupies "Space", it's impossible for two things to occupy the same position at a given time, similar reasoning shows that, when those values are set to 0, it means Com will only use that skill when the enemy is standing exactly where Com is, which is not possible.


Thanks to BuEBaiDi, more will be added with time.
[Image: Jack-E-s-Signature.png]
The following 1 user says Thank You to Almighty Jack E for this post:
  • MangaD
Reply
  


Messages In This Thread
Modifying Ai's Behaviour - by Almighty Jack E - 29-04-2024, 11:14 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)