ZoriaRPG

Link Lift and Push

Jan 10th, 2017
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Lifting should be assigned to a button that need not be unique?
  2.  
  3. //link.cpp
  4.  
  5. fix liftedobjecttile;
  6. bool liftingobject;
  7.  
  8. link action LA_CARRY
  9.  
  10. void liftObject(fix obj);
  11. fix liftedObject();
  12. void throwObject();
  13.  
  14. LinkClass::liftedObject(){ return liftedobjecttile;}
  15. void liftObject(fix obj){
  16.     liftedobjecttile = obj;
  17.     liftingobject = true;
  18. }
  19.  
  20. LinkClass::throwObject(){
  21.     //make a weapon, set the object tile to it and throw it, setting a temp attack action
  22.     liftingObject = false;
  23.     //change link action
  24. }
  25.  
  26. //lifting srites for link
  27.  
  28. /*
  29. Meaningless for versions <= 0x250, so we don;t need to worry about forwarding
  30. Set link's sprite to this when lifting stuff. Same indices as walksprite
  31.  
  32. */
  33.  
  34. //link also needs pushing sprites
  35. /*
  36.  Same indices as walksprite
  37. We can make a new sprite set, and assign the ordinary walk sprites to it for quests with a zc version <= 0x250
  38. For versions higher, whenever link tries to push blocks, or the user sets LA_PUSHING, use this sprite.
  39.  
  40. */
  41. //combo type lift
  42. //combo type slash or lift
  43.  
  44. //weapons.cpp
  45.  
  46. //weapon type liftobject
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×