Advertisement
dragonbane

TP Flags and Stuff

Jan 27th, 2017 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Trigger Loading (Code): 1014A604
  2.  
  3. 7FCF0039
  4. 7FCF0039
  5. 7FCF0039
  6.  
  7. Flags to find:
  8.  
  9. Event Flag Section Ptr: 0x10647D38
  10.  
  11. HD Links Health: 10647B4D, SD: 4061c3. HD Cemu: 10015d4d
  12.  
  13. -MS Owned (=0x10647D58 - Bit 6 (32) is switched to ON)
  14. -Links Name (=0x10647CFC)
  15. -Current Form (0x4061de) (=0x10647B68) (0 = Human, 1 = Wolf)
  16. -Ooccoo in Forest (0x1064895D)
  17.  
  18. -Transform/Warp Midna Option (4069bd) (0x10647D45) (add 4)
  19.  
  20. -Sense (4069f3) (HD: 0x1064837D, actually at 0x10647D7B = -0x602) (add 8)
  21. -Midna on Z and on Back in Twilight (4069bc) (0x10647D44) (add 16)
  22.  
  23. -Midna Z Warping/Map Marping unlocked (4069b6) (0x10647D3E) (check for bit 4)
  24. -Midna Healed State/Z Warping (4069ce) (0x10647D56) (check for bit 8)
  25.  
  26. -Heroes Clothes worn (4061d3) (0x10647B5D) (set to 47, 46 is ordon clothes)
  27. -Wooden Sword (equipped) (4061d4) (0x10647B5E) (set to 63, 40 is ordon sword, 41 is MS)
  28. -Lantern in Inventory (40625d) (0x10647BE5) (is set to 72 = 0x48)
  29. -Fishing Rod in Inventory (406270) (0x10647BF8) (is set to 74 = 0x4A or 92)
  30.  
  31. -Midna on Z Locked Away (406a11) (0x10647D99) (constantly check if bit 64 is set, if so subtract 64)
  32. -Midna Charge/Flag (4069b5) (0x10647D3D) (add 16 for unchained in Prison)
  33. -Epona Tamed Flag (4069b6) (0x10647D3E) (add 1)
  34.  
  35.  
  36.  
  37. hook into query01 and activate queryCheckEventFlag. In isEventBit once flag is set, check for address D45 and return 1 if Wolf and no MS
  38. hook into query44 and if normal return is 0 (would allow a warp) check if Wolf and no MS and if Midna warp is unlocked yet and if not return 1/disable warp
  39.  
  40.  
  41. query01 (checks event flag, returns 1 if no MS, returns 0 if MS)
  42. query02 (check isBoarRide and isHorseRide and something else. returns 1 if Link is busy and 0 if not)
  43. query36 (only on end)
  44. query44 (returns 0 if you are allowed to theoretically warp in your current location. 1 when not)
  45. query52 (returns 1 or 0 depending on some Link variables. Usually 0)
  46. event009
  47. event013
  48.  
  49. order is (have all 3 options)
  50.  
  51. query52 (response is 0)
  52. query01 (response is 0)
  53. query02 (response is 1)
  54. query44 (response is 0)
  55.  
  56. order is (have 2 options before ms)
  57.  
  58. 1, 1, 1, 0
  59.  
  60. query52 (response is 0)
  61. query01 (response is 1)
  62. query02 (response is 1)
  63. query44 (response is 0)
  64.  
  65. order is (have 0 options inside dungeon)
  66.  
  67. query52 (response is 0)
  68. query01 (response is 1)
  69. query13 (response is 1)
  70.  
  71. 1, 1, 1, 1 , 1, 1, 1
  72.  
  73. order is (have 0 options outside dungeon)
  74.  
  75. query52 (response is 0)
  76. query01 (response is 1)
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement