Jump to content

[SOVLED][FE7] AI question


Avril Lavigne
 Share

Recommended Posts

How do you construct an AI for the unit to go to a specific place? Like the same as Hector chapter 15 (Talons Alight?) where you are to defend the throne. I was wondering how to do this. I disassembled the chapter to figure it out and I'm not really savvy with the AI format that I get when I disassemble a chapter event, and not only that I'm not entirely sure how I would use this AI to target a specific area or person.

Please help! Thanks.

Edited by Avril Lavigne
Link to comment
Share on other sites

http://feuniverse.us/t/fe7-the-official-ai-documentation-thread/348

Have a read through this thread and see whether or not you can follow on.

Essentially, each AI byte corresponds to a pointer within a table. These are located at:

Pointer table for primary AI: B98994 (20 entries)
Pointer table for secondary AI: B98908 (35 entries)

So AI1 0x01 corresponds to the first pointer etc.

That pointer goes to a set of data that designates what the AI does.

So you need to follow the "pointer trail" as it were to set an AI up to move to a certain location.

For example, AI byte 2 is this:

0x13 = Move to \[03,13] (B98718)

So you need to go to $B98908 and find the 0x13th pointer within there. Then you go to that address of the pointer and there should be a series of AI commands.

You will almost certainly not be able to decipher most of it but somewhere there you'll probably see a pair of bytes that are 03 0B (or 0B 03, I can't remember if they're reversed or not)

You would change those bytes to the coordinates you want that AI to go to, then change AI Byte 2 of the character (in your events) to 0x13

Occasionally these AI commands contain yet ANOTHER pointer, which is usually a pointer to a list of characters or classes. (One application of this would be "do not attack all characters listed at $FFFF00".)

Crazycolorz5 even made an extension of the event assembler which allows you to piece together your own custom AI. It's definitely work checking out, although I haven't had the opportunity to use it yet.

Does that make sense?

Edited by Agro
Link to comment
Share on other sites

http://feuniverse.us/t/fe7-the-official-ai-documentation-thread/348

Have a read through this thread and see whether or not you can follow on.

Essentially, each AI byte corresponds to a pointer within a table. These are located at:

Pointer table for primary AI: B98994 (20 entries)
Pointer table for secondary AI: B98908 (35 entries)

So AI1 0x01 corresponds to the first pointer etc.

That pointer goes to a set of data that designates what the AI does.

So you need to follow the "pointer trail" as it were to set an AI up to move to a certain location.

For example, AI byte 2 is this:

0x13 = Move to \[03,13] (B98718)

So you need to go to $B98908 and find the 0x13th pointer within there. Then you go to that address of the pointer and there should be a series of AI commands.

You will almost certainly not be able to decipher most of it but somewhere there you'll probably see a pair of bytes that are 03 0B (or 0B 03, I can't remember if they're reversed or not)

You would change those bytes to the coordinates you want that AI to go to, then change AI Byte 2 of the character (in your events) to 0x13

Occasionally these AI commands contain yet ANOTHER pointer, which is usually a pointer to a list of characters or classes. (One application of this would be "do not attack all characters listed at $FFFF00".)

Crazycolorz5 even made an extension of the event assembler which allows you to piece together your own custom AI. It's definitely work checking out, although I haven't had the opportunity to use it yet.

Does that make sense?

Hey thanks! I'll let you know soon. I appreciate this. I am kinda busy I'll look at this in a bit.

EDIT: Yup, already checked! At B98718 it shows "03 0D" which is essentially "3,13" so I would just edit that and then place it in my characters AI such as "0x00 0x13"?

And yeah, I'll check that custom AI thing out. Sorry for the lazy response. Just don't got all that much time to be testing stuff out haha

Edited by Avril Lavigne
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...