Qhimm.com Forums
Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: vayneruel 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
-
Hmm, have you tried using WallMarket to see how Vincent's AI manages this (as his MainAI makes him use Limit Breaks)?
-
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.
-
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?
-
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.
-
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.
-
No no, i put the correct ID for limit character
-
Strange. Do you have any mods installed?
-
No, i work with the PSX version, can be the version of game a problem?
-
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).
-
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.
-
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.
-
I write a tutorial on first reply.