Nessuna descrizione

close_combat_scripts.s 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #include <battle_script.h>
  2. .align 2
  3. .thumb
  4. .text
  5. .global bs_close_combat
  6. bs_close_combat:
  7. attackcanceler
  8. accuracycheck 0x081D695E 0
  9. attackstring
  10. ppreduce
  11. calculatedamage
  12. attackanimation
  13. waitanimation
  14. missmessage
  15. cmd5c 0
  16. waitstate
  17. graphicalhpupdate 0
  18. datahpupdate 0
  19. critmessage
  20. waitmessage 0x40
  21. resultmessage
  22. waitmessage 0x40
  23. faintpokemon 0 0 0
  24. callasm close_combat_choose_script+1
  25. bs_lower_def:
  26. setbyte 0x02023FDF 0
  27. playstatchangeanimation 1 0x20 1
  28. setbyte 0x02023FDE 0x95
  29. statbuffchange 0x41 0x081D694E
  30. jumpifbyte 0 0x02023FDE 0x2 0x081D694E
  31. printfromtable 0x083FE588
  32. waitmessage 0x40
  33. goto 0x081D694E
  34. bs_lower_sdef:
  35. setbyte 0x2023FDF 0x0
  36. playstatchangeanimation 0x1 0x4 0x1
  37. setbyte 0x2023FDE 0x92
  38. statbuffchange 0x41 0x081D694E
  39. jumpifbyte 0x0 0x02023FDE 0x2 0x081D694E
  40. printfromtable 0x83FE588
  41. waitmessage 0x40
  42. goto 0x081D694E
  43. bs_lower_both:
  44. setbyte 0x2023FDF 0x0
  45. playstatchangeanimation 0x1 0x24 0x1
  46. setbyte 0x2023FDE 0x92
  47. statbuffchange 0x41 0x081D694E
  48. jumpifbyte 0x0 0x02023FDE 0x2 0x081D694E
  49. printfromtable 0x83FE588
  50. waitmessage 0x40
  51. setbyte 0x2023FDE 0x95
  52. statbuffchange 0x41 0x081D694E
  53. jumpifbyte 0x0 0x02023FDE 0x2 0x081D694E
  54. printfromtable 0x83FE588
  55. waitmessage 0x40
  56. goto 0x081D694E
  57. .global bs_cc_lower_def
  58. bs_cc_lower_def:
  59. .word bs_lower_def
  60. .global bs_cc_lower_sdef
  61. bs_cc_lower_sdef:
  62. .word bs_lower_sdef
  63. .global bs_cc_lower_both
  64. bs_cc_lower_both:
  65. .word bs_lower_both
  66. .global as_close_combat
  67. as_close_combat:
  68. .byte 0x14, 0x09, 0x17, 0x03, 0x2D, 0xB8, 0x0B, 0x08, 0x05, 0x04, 0x00, 0xF7, 0x00, 0x00, 0x01, 0x00
  69. .byte 0xFF, 0xFF, 0x00, 0x97, 0x27, 0x00, 0x9F, 0x27, 0x0A, 0x03, 0x0C, 0x0C, 0x08, 0x03, 0x7D, 0x90
  70. .byte 0x09, 0x08, 0x02, 0x05, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04
  71. .byte 0x02, 0x08, 0x7C, 0x3E, 0x08, 0x02, 0x04, 0xF1, 0xFF, 0x12, 0x00, 0x01, 0x00, 0x00, 0x00, 0x19
  72. .byte 0x74, 0x00, 0x3F, 0x04, 0x01, 0x03, 0xF9, 0x89, 0x09, 0x08, 0x02, 0x05, 0x01, 0x00, 0x05, 0x00
  73. .byte 0x00, 0x00, 0x19, 0x00, 0x01, 0x00, 0x02, 0x10, 0x67, 0x3E, 0x08, 0x03, 0x05, 0xF1, 0xFF, 0x12
  74. .byte 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x03, 0x02, 0x08, 0x7C, 0x3E, 0x08, 0x02, 0x04
  75. .byte 0x00, 0x00, 0xFC, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x19, 0x74, 0x00, 0x3F, 0x04, 0x01, 0x02, 0x10
  76. .byte 0x67, 0x3E, 0x08, 0x03, 0x05, 0x00, 0x00, 0xFC, 0xFF, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04
  77. .byte 0x03, 0x02, 0x08, 0x7C, 0x3E, 0x08, 0x02, 0x04, 0x0F, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00
  78. .byte 0x19, 0x74, 0x00, 0x3F, 0x04, 0x01, 0x02, 0x10, 0x67, 0x3E, 0x08, 0x03, 0x05, 0x0F, 0x00, 0x09
  79. .byte 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x05, 0x02, 0x84, 0x4E, 0x3D, 0x08, 0x02, 0x03
  80. .byte 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x0B, 0x03, 0x0D, 0x0E, 0xC7, 0x59, 0x1D, 0x08, 0x08