News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: FF5 GBA ~ Expanding for Size?  (Read 2765 times)

Squall_FF8

  • Full Member
  • ***
  • Posts: 201
    • View Profile
Re: FF5 GBA ~ Expanding for Size?
« Reply #20 on: March 24, 2018, 05:20:48 am »
Sorry I wasn't around last 24h ...

You need a good tool to grasp the AI. I will strongly suggest to get my Viewer. It is the best tool for visualizing AI for FF5 (and probably in every other FF)

Open your ROM there. In 'Monsters' tab you will see every bit of info available in the ROM. On right is the AI panel. It has two ways of visualizations:
 - Structured - in each row you will see AI commands (great for fast grasping of what AI does)
 - Detail - every byte of AI is on separate row (good for detail info how each command is coded)
Please share how my Viewer parse your current script here!

Dueling Knight uses both counters you need. Here is his script:
Quote
00 00 00 00: Default:
FE:          {
80:            Attack
FF:          }

07 01 2B 00: React on: NOT Magic -
FE:          {
81:            Special
FE:          }

07 00 2B 00: React on:  Magic -
FE:          {
FD F7 09 F0:   {No Interupt for: 9}
FD F6 02 15:   {Display: Magic is forbidden here!}
80:            Attack
80:            Attack
80:            Attack
80:            Attack
FF:          }
So you need 07 01 2B 00 for physical and 07 00 2B 00 - for magical. Keep in mind that 06 and 07 reaction is considered the same (we never found is there any difference) so you may use 06 variant (as Skull Eater)

Unfortunately slick's Wiki has mistakes and many unknowns. I have done a lot of digging when I was codding my AI parser. It's much better but even it is not 100%. I will also suggest to try Detail for byte by byte parsing, while keeping the structures of commands. Here is the same script in Detail:
Quote
00: <Non condition block>
00:
00:
00:
FE: <Condition End>
80:   Attack
FF: <Block End>

07: <React on block>
01:   NOT
2B:   Magic - Fire Ice Poison Earth
00:
FE: <Condition End>
81:   Special
FE: <Condition End>

07: <React on block>
00:   
2B:   Magic - Fire Ice Poison Earth
00:
FE: <Condition End>
FD:   <Action Group>
F7:     No interupt for:
09:       09
F0:
FD:   <Action Group>
F6:     Display Text:
02:       02
15:       Magic is forbidden here!
80:   Attack
80:   Attack
80:   Attack
80:   Attack
FF: <Block End>
« Last Edit: March 24, 2018, 05:26:28 am by Squall_FF8 »
Welcome to the FF5 Den: https://discord.gg/9rM6vrj

Zeemis

  • Sr. Member
  • ****
  • Posts: 309
  • ジーミス
    • View Profile
Re: FF5 GBA ~ Expanding for Size?
« Reply #21 on: March 24, 2018, 10:57:51 am »
Is there a way to make it so an enemy will react 50% of the time instead of 100%, as well as target the one who attacked?