Author Topic: Character counterattacks with limits break  (Read 6345 times)

vayneruel

  • *
  • Posts: 161
    • View Profile
Character counterattacks with limits break
« on: 2013-12-29 20:55:05 »
Warning: this code only work if the character have the desire limit learn and his level is selected in main menu. For example if Cloud level is 1 and we write in his AI perform Meteorain, the game freeze. If Cloud´s limit level is 1 only perform Braver and Cross-slash.
1º In first place we need the ID of desire limit and his level (1,2,3,4)
2º Mark the desire character in his AI using the formation number code. You can write special condition to realize the limit ( Self HP /2, action index or battle ID).

12 2070                                                          List of character    ID         HEX
01 4060                                                          Cloud                    16         10
80                                                                   Barret                   17         11
60 XXXx (ID of character)                                Tifa                       18         12
90                                                                   Aeris                     19         13
                                                                       Red XIII                20         14
                                                                       Yuffie                    21         15
                                                                       Caith Sith             22         16
                                                                       Vincent                 23         17
                                                                       Cid                       24          18
3ºSelect the limit level:
11 2038
60 XXXX---------------> 01, 02, 03, 04
90

4ºTarget and perform attack:
12 2070
02 XXXX------------------------->Desire target
82
90
60 14----------------------> Id of limit command
60 XXXX -------------------> Id of desire limit break
92
73

EXAMPLE: Cid perfrom Boost jump when enemy hits him (only if we select the limit level 1 in main menu)
12 2070
01 4060
80
60 18
90
11 2038
60 01
90
12 2070
02 20A0
82
90
60 14
60 9C
92
73
« Last Edit: 2014-01-04 21:18:44 by vayneruel »

NxK

  • *
  • Posts: 130
  • In AI I Trust
    • View Profile
    • YT
Re: Character counterattacks with limits break
« Reply #1 on: 2013-12-31 15:32:02 »
Hmm, have you tried using WallMarket to see how Vincent's AI manages this (as his MainAI makes him use Limit Breaks)?


vayneruel

  • *
  • Posts: 161
    • View Profile
Re: Character counterattacks with limits break
« Reply #2 on: 2013-12-31 17:28:31 »
Yes i see the Vincent´s AI and try this code. Basically save the id of limit in local var and then perform local var with the index of limit command. I based in this AI write this code:
11 0000
60 70  ----------> index of berserk dance (Galian beast limit)
01 2038  -----------> Limit level(?)
60 02
32
30
90
12 2070
02 2040 -------> Unknowm target
90
60 14
01 0000
92
73
And Yes! the character counterattacks with the berserk dance limit, but only apperas the limit animation, then the games freeze. I tried with others ID of limits and appears a empty text box.

Bosola

  • Fire hazard!
  • *
  • Posts: 1752
    • View Profile
    • My YouTube Channel
Re: Character counterattacks with limits break
« Reply #3 on: 2014-01-02 18:43:28 »
Eyeballing the code doesn't suggest you've done anything obviously wrong, though I'm working without any references or access to ProudClod/WM.

What is the exact issue you're having? Is the limit executing properly but without the attack name in the battle dialog, or... what?

vayneruel

  • *
  • Posts: 161
    • View Profile
Re: Character counterattacks with limits break
« Reply #4 on: 2014-01-02 21:48:57 »
The character no realizes the limit attack, only appears a empty battle dialog. The only limit what realizes animation (red aura) is berserk dance (ID 70) but the games frezze, its very strange.

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Character counterattacks with limits break
« Reply #5 on: 2014-01-02 22:16:12 »
You can only make characters perform the limits they were intended to use.
eg. Barret can't do Doom of the Living nor can Cid perform Great Gospel.
This sounds like you're trying to get some character to perform a limit they aren't supposed to and the animation script doesn't like that.

vayneruel

  • *
  • Posts: 161
    • View Profile
Re: Character counterattacks with limits break
« Reply #6 on: 2014-01-02 23:30:03 »
No no, i put the correct ID for limit character

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Character counterattacks with limits break
« Reply #7 on: 2014-01-03 13:39:14 »
Strange. Do you have any mods installed?

vayneruel

  • *
  • Posts: 161
    • View Profile
Re: Character counterattacks with limits break
« Reply #8 on: 2014-01-03 18:06:45 »
No, i work with the PSX version, can be the version of game a problem?

Bosola

  • Fire hazard!
  • *
  • Posts: 1752
    • View Profile
    • My YouTube Channel
Re: Character counterattacks with limits break
« Reply #9 on: 2014-01-04 11:03:34 »
Has anyone got limits to activate on characters outside normal conditions on the first place? Knowing how hacky and brittle most of FFVII's code is, it wouldn't surprise me if the attacks themselves had some kind of limit-specific function calls baked in directly. These might fail gracefully and cause the attack to pass (you won't necessarily get a data error - I think that only happens due to a null pointer check on animation reads).
« Last Edit: 2014-01-04 11:05:23 by Bosola »

vayneruel

  • *
  • Posts: 161
    • View Profile
Re: Character counterattacks with limits break
« Reply #10 on: 2014-01-04 18:27:15 »
You´re right Bosola, limits break needs a special code, so i write a new AI and it´s works! At this moment i´m occuped but later i edit my first reply and create a tutorial for all.
Thanks for your replys.

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Character counterattacks with limits break
« Reply #11 on: 2014-01-04 19:33:50 »
Has anyone got limits to activate on characters outside normal conditions on the first place? Knowing how hacky and brittle most of FFVII's code is, it wouldn't surprise me if the attacks themselves had some kind of limit-specific function calls baked in directly. These might fail gracefully and cause the attack to pass (you won't necessarily get a data error - I think that only happens due to a null pointer check on animation reads).

Yes and no. I know Limits can be activated via scripts. The problem with Berserk Dance is it's not exactly a limit attack that Vincent performs. That's something Galian Beast does. I'm not sure why Cloud couldn't do Omnislash whenever he wants, though.

vayneruel

  • *
  • Posts: 161
    • View Profile
Re: Character counterattacks with limits break
« Reply #12 on: 2014-01-04 21:19:56 »
I write a tutorial on first reply.