daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Jan 29th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -18 : status of actor
  2. -0c: status of target
  3.  
  4. 5DDC10
  5. Hitvar:= -1
  6.  
  7. 5DDC17
  8. if 0x1 on Unknown Var then
  9. Hitvar:= 255;
  10.  
  11. 5DDC31
  12. if unknownvar = 99 then
  13. HitVar:= 255;
  14.  
  15. 5DDC4B
  16. if TargetStatus is Death, Sleep, Confusion, Stop, Petrify, Manip, Paralysis then
  17. Begin
  18.   if TargetStatus = Sleep then
  19.   Set 0x4 on Unknown Var
  20.  
  21.   if TargetStatus = Confusion then
  22.   Set 0x40 on Unknown Var
  23.  
  24.   if TargetStatus = Manip then
  25.   Set 0x400000 on Unknown Var
  26.  
  27.   HitVar:= 255
  28. End;
  29.  
  30. 5DDCF7
  31. if 0x20 on unknownvar then
  32. HitVar:= 255
  33.  
  34. 5DDD11
  35.  
  36. [edx+00000260] = Attack%
  37. ebp[-28] = (Attacker's Dex / 4) + Attack%.
  38. ebp[-20] = attacker's defence rate
  39. ebp[-1c] = target's defence rate
  40.  
  41. 5DDD78
  42. if HitVar  <> 255 then
  43. begin
  44. HitVar = (Attacker's Dex / 4) + Attack% + ( Attacker's Df% - Target's Df%)
  45. FuryCheck
  46. end
  47.  
  48. 5DDD99
  49. if HitVar < 1 then
  50. Hitvar:= 1
  51.  
  52. 5DDDA6
  53. RandomVar:= Random (0..99)
  54.  
  55. 5DDDB5
  56. [Lucky Hit]
  57. If RandomVar < Luck /4
  58.  then HitVar = 255.
  59. Skips the Lucky Evade check.
  60.  
  61. 5DDDEF
  62. [Lucky Evade.  Ally only.]
  63. if user is enemy and target is ally then
  64. if RandomVar < Luck /4 then
  65. HitVar is 0.
  66.  
  67. 005DDE29
  68. RandomVar2  (1..100).  Unknown mechanism.
  69.  
  70. 5DDE31 :  
  71. if Randomvar2 < HitVar then
  72. unknown
  73. else
  74. Set Miss flag.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top