Hey, NFITC1... I went into the Physical Accuracy thing a little but ran into a problem. Also cross checked the assembly with terence guide
http://www.gamefaqs.com/ps/197341-final-fantasy-vii/faqs/22395
5DDBB0
Any of the following will give an automatic 255 Hit%:
* Back Attacking an enemy
* Using an Element that the target has Death Weakness to
* Using an Element that the target has Auto Hit Weakness to
* Using an Element that the target is Immune to
* Using an Element that the target Absorbs
* If the target has any of the following statuses:
Death, Sleep, Confusion, Stop, Petrify, Manipulate, Paralysed
* If the target is Covering someone
Code: [Select]
Code:
5DDD38Hit% = ([Attacker's Dex / 4] 5DDD47+ At%) UNSURE. Also unsure why there are more divisions by 4 in function immediately after.+ Attacker's Df% - Target's Df%
Code: [Select]
Code:
5DDD8E(If Fury status)Hit% = Hit% - [Hit% * 3 / 10]
Code: [Select]
Code:
5DDD9F if (Hit% < 1) then Hit% = 1
Code: [Select]
Code:
5DDDDBif Random (0..99) < (Attacker'sLuck / 4) then Hit% = 255 (Lucky Hit)
Code: [Select]
Code:
5DDE22 (uses same random number as above. Will only reach this stage if enemy does not get a Lucky Hit. only characters can Lucky Evade.)if Random(0..99) < (CharacterLuck / 4) then Hit% = 0 (Lucky Evade )
Code: [Select]
Code:
5DDE29Random = [Rnd(0..65535) * 99 / 65535] + 1
Code: [Select]
Code:
5DDE37If (Random < Hit%) Then Attack Hits
1. Need to know which part deals with the UNSURE part...
2. compiler mistake 5DDD2C (mov [ebp-10],eax and then mov eax,[ebp-10])??
3. why "and edx,03" at 5DDD33
Also Magic Accuracy:
if target's M_Evade > rand_0 OR
acc + acc_bonus < rand_1 then
is this
if target's M_Evade > rand_0 OR
acc + acc_bonus > rand_1 then