76
Scripting and Reverse Engineering / Re: Turned Poison into Disease through AI, but...
« on: 2011-05-18 18:55:08 »Who's to say Vgr doesn't know anything about AI editing? I don't know who does and doesn't.
But something tells me Vgr is no expert in this field :
Quote from: Vgr
I am pratically a n00b at AI-editing (did you remember AV? )
(and yes Vrg, I do remember)
Quote
The Local_Var:00E0 thing is a little confusing. We're not testing if it's greater than 0 in the beginning, we're testing if it's NOT greater than 0.
If ( !( Local_Var:00E0 > 0 ) )
That exclamation mark means that result is NOT'ed. So we're logically testing if that value is less than or equal to 0. Notice that in the AI, if Local_Var:00E0 is greater than 0, then we're skipping assigning a value to it.
Aaahhh, now that makes sense. Thanks !
Quote
Also, you can easily set the NullRestorative with poison by setting it to the same value as your posion status.
12 2060
10 42A9
80
02 2060
00 4003
80
90
Now when Cloud is poisoned, Restorative elemental attacks do nothing. Then when Poison is lifted, so does that nulling. No fancy ifs are needed.
*Brain asplodes* I'm in awe, sir. With my own vocabulary to decipher AI, this script means that you loaded the value of self+poison into the address of self+nullrestorative, huh. I find this concept hard to grasp, but I love the fact that it works ! Thank you very much ^^ When I understand it all, I could maybe write a "FFVII AI for the dummies" FAQ of sorts, with my own simple vocabulary (if that is even possible). ...But for now I still have to clean the gray matter that is dripping out of my right ear, and study more.
Quote from: Bosola
In fact, you can basically say, 'take a word of everyone's poison status, make that everyone's nullRestore status'. Put that on all player charactesr (or maybe one character with script links) and every monster experiences the same thing too.
This is really interesting. If I had known such a thing exists, I wouldn't have pasted the Seizure script into almost all enemies' AI scripts (because of this, my scene.bin grew to a whopping 304Ko).