Advertisement
izu000

HYP/Pikachu Escape Trigger

May 14th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. This is a copy of my note which I wrote 2 years ago. Some of the information might not be correct. Needs to be looked into more...
  2.  
  3. Important Address Values:
  4. ・0x800F6C2F
  5. An Adress that stores how many days have passed since a certain point (I call it "Escape Counter").
  6. 2 is added to this counter every day (at sunset)
  7. (actually the value to be added is 0x20, not 0x02. This is because for some reason the game wants to use the upper nybble for the evaluation. But I will describe it as 2 instead of 0x20 in this note, because it is not very important for understanding how the trigger works.)
  8.  
  9. ・0x80027D84
  10. A flag. When this flag sets, Pikachu escapes and you will get a megaphone on the following day.
  11.  
  12. --------
  13. When you unlock the Level 3 Area (West Gate), the Escape Counter sets to 0.
  14. After unlocking the Level 3, as you already know, you will be forced to spend a whole day for oak's training. You go through the training, go to bed, and now you will finally be free. At this point, the Escape Counter should be 4. (+2 on the day you unlocked the level 3, +2 on the day when you finished the oak's training)
  15. From now on, the game will do "Escape Check" every day (at sunset). Even if you go home via start menu, this Escape Check still occurs (So Going out -> Go home via menu repeatedly is a good way to trigger an escape quickly).
  16.  
  17. * * * * * *
  18. The Escape Check works like this:
  19. if ((RNG % EscapeCounter) >= 8)Escape_FLG == TRUE;
  20.  
  21. "RNG" means a random number from 0 to 15, in other words, a random 1 digit number in hex.
  22. ・For example, if your Escape Counter is 6 and you get 9 of RNG, the game will calculate 9 mod 6, and the remainder is 3. This is smaller than 8, so the Escape check will fail and pikachu won't escape on the following day.
  23. ・For example, if your Escape Counter is 10 and you get 9 of RNG, the game will calculate 9 mod 10, and the remainder is 9. This is bigger than 8, so Escape check will pass and pikachu will escape on the following day.
  24.  
  25. (At sunset, both "Escape Counter adding up process" and "Escape Check process" will happen. But Escape Counter process will be handled first, following the Escape Check process.)
  26.  
  27. * * * * * *
  28. So, in order to trigger a pikachu escape, you need to complete the oak's training, and then spend at least 3 days. After this, you will have a chance to trigger an escape at a certain probability. As far as I know, It basically depends on the luck (possibly manipilatable?). But the probability goes up as the Escape Counter adds up.
  29.  
  30. * * * * * *
  31. The possibility of triggering the escape is as follows.
  32. ・The training day ... 0%. You will never get megaphone on the following day. (Escape Counter: 4)
  33. ・The 1st day of Level 3 ... 0%. You will never get megaphone on the following day. (Escape Counter: 6)
  34. ・The 2nd day of Level 3 ... 0%. You will never get megaphone on the following day. (Escape Counter: 8)
  35. ・The 3rd day of Level 3 ... 12.5% (2/16). Pikachu Escape can happen on the following day. (Escape Counter: 10)
  36. ・The 4th day of Level 3 ... 25% (4/16). Pikachu Escape can happen on the following day. (Escape Counter: 12)
  37. ・The 5th day of Level 3 ... 37.5% (6/16). Pikachu Escape can happen on the following day. (Escape Counter: 14)
  38. ・The 6th day of Level 3 ... 50% (8/16). Pikachu Escape can happen on the following day. (Escape Counter: 15)
  39. ・The 7th day of Level 3 ... Looks like Escape will 100% happen here if you didn't get any Escape by this day. (Escape Counter: 16)
  40.  
  41. --------
  42. When the 1st Pikachu Escape is done, the Escape Counter sets to 0 again.
  43. From now on, Escape Counter will be added by 1 every day, instead of 2 (So 2nd Escape takes more days than the 1st one does).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement