Advertisement
SeedBorn

Action Swap Notes

Mar 14th, 2019
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. There's a pointer in Link's instance which gets set when you perform various actions, presumably pointing to a table of actions. When you use quickdraw to bypass the takeout animation for an item, this pointer is not updated like it normally would be. For instance, taking out Deku Stick when you have bow in hand would normally update the action pointer. With quickdraw it doesn't. As far as I'm aware the game uses a combination of this pointer and the action value associated with your held item to determine which action to perform. So in the above example, the action pointer retains the value it would have if you have a shooting item in hand, but the action parameter is now that of a deku stick.
  2.  
  3. After performing the quick draw but before taking out the stick, Link still has bow in hand. For some reason with a shooting item in hand this value does not change when you do things like roll, take damage, etc. But after pulling out stick those actions will change the pointer value, which is why you lose action swap so easily.
  4.  
  5.  
  6. ---MM 1.0---
  7.  
  8. Action pointer at Link's instance + 0xAC4 (0x80400A64)
  9. Action parameter at Link's instance + 0x14A (0x804000EA)
  10.  
  11. ---OoT 1.0---
  12.  
  13. Action Pointer at Link's instance + 0x81C (0x801DB24C)
  14. Action Parameter at Link's instance + 0x144 (0x801DAB74)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement