Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. '---------------
  2. #dynamic 0x1655ED
  3.  
  4. #org @start
  5. lockall
  6. setvar 0x4001 0x0 (or 0x1 / 0x2 depending on where you walk down the 3-tile-stairs)
  7. goto 0x8165605
  8.  
  9. '---------------
  10. #org 0x165605
  11. setvar 0x8004 0x0
  12. setvar 0x8005 0x2
  13. special 0x174
  14. textcolor 0x0
  15. pause 0x1E
  16. playsong 0x12E 0x0
  17. preparemsg @1
  18. waitmsg
  19. pause 0x55
  20. closeonkeypress
  21. applymovement MOVE_PLAYER @Playerface
  22. waitmovement 0x0
  23. sound 0x15
  24. applymovement MOVE_PLAYER @NoticeOak
  25. waitmovement 0x0
  26. pause 0x1E
  27. showsprite 0x3
  28. compare 0x4001 0x0 (if you walk down the stairs on the left tile)
  29. if 0x1 call 0x81656B8
  30. compare 0x4001 0x1 (if you walk down the stairs on the middle tile)
  31. if 0x1 call 0x81656C3
  32. compare 0x4001 0x2 (if you walk down the stairs on the right tile)
  33. if 0x1 call @NewMovementIfRight (The script used to be on two tiles but I have three so I have an extra movement)
  34. pause 0x1E
  35. msgbox @2 MSG_KEEPOPEN
  36. closeonkeypress
  37. pause 0x1E
  38. compare 0x4001 0x0
  39. if 0x1 call 0x81656CE
  40. compare 0x4001 0x1
  41. if 0x1 call 0x81656E0
  42. compare 0x4001 0x2
  43. if 0x1 call @NewFollowIfRight (Same as above, 3 tiles instead of two so extra movement)
  44. setdooropened 0x17 0x19 (new coordinates of the door)
  45. doorchange
  46. applymovement 0x3 @OakEnterDoor
  47. applymovement MOVE_PLAYER @PlayerEnterDoor
  48. waitmovement 0x0
  49. setdoorclosed 0x17 0x19 (new coordinates of the door)
  50. doorchange
  51. setvar 0x4055 0x1
  52. clearflag 0x2B
  53. setvar 0x4050 0x1
  54. setflag 0x2C
  55. setflag 0x4001
  56. warp 0x4 0x3 0xFF 0x6 0xC (Everything from setdoorclosed down isn't changed from vanilla but it doesn't work?)
  57. waitstate
  58. releaseall
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement