暂无描述

core.h 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #ifndef CONFIG_S_
  2. #define CONFIG_S_
  3. #define MAGIC_BOUNCE_FLAG 0x0203FFFD
  4. #define OBJ_1_TEMP 0x0203FFFE
  5. #define OBJ_2_TEMP 0x0203FFFF
  6. /*Variables and Tags regarding mugshots*/
  7. #define MUGHSOT_1_TABLE 0x5000
  8. #define MUGSHOT_1_X 0x5001
  9. #define MUGSHOT_1_Y 0x5002
  10. #define MUGSHOT_1_TAG 0x1337
  11. #define MUGHSOT_2_TABLE 0x5003
  12. #define MUGSHOT_2_X 0x5004
  13. #define MUGSHOT_2_Y 0x5005
  14. #define MUGSHOT_2_TAG 0x1338
  15. /*Variable for special control*/
  16. #define CALLASM_VAR 0x5006
  17. /*Variables for camera control*/
  18. #define CAMERA_VAR_X 0x5007
  19. #define CAMERA_VAR_Y 0x5008
  20. /*Variables for walking script control*/
  21. #define WALK_SCRIPT_VAR 0x5009
  22. /*Variable for custom text*/
  23. #define TEXT_VAR 0x500C
  24. /*Variable for controlling evolutions*/
  25. #define EVO_VAR 0x500D
  26. #define HEALING_BANK_MAP_VAR 0x500E
  27. #define HEALING_X_VAR 0x500F
  28. #define HEALING_Y_VAR 0x5010
  29. /*Variables regarding battle background loading*/
  30. #define BATTLE_NORMAL_VAR 0x5011
  31. #define BATTLE_SEA_VAR 0x5012
  32. #define TEXT_ANIMATION_VAR 0x5013
  33. /*Variables to control the music overrides*/
  34. #define VAR_FROM_1 0x51FA
  35. #define VAR_FROM_2 0x51FB
  36. #define VAR_FROM_3 0x51FC
  37. #define VAR_TO_1 0x51FD
  38. #define VAR_TO_2 0x51FE
  39. #define VAR_TO_3 0x51FF
  40. /*Flag to enable the music overrides*/
  41. #define FLAG_SKIP_BATTLE_MUSIC 0x742
  42. /*Flag to deactivate transparent textboxes*/
  43. #define FLAG_ACTIVATE 0x900
  44. #define FLAG_WALK_SCRIPT 0x901
  45. #define FLAG_DEOXYS_AURA 0x902
  46. /*Effect IDs controlling various in-battle item effects etc.*/
  47. #define ITEM_EFFECT_SMOOTH_ROCK 0x48
  48. #define ITEM_EFFECT_DAMP_ROCK 0x49
  49. #define ITEM_EFFECT_HEAT_ROCK 0x4A
  50. #define ITEM_EFFECT_ICY_ROCK 0x4B
  51. #define ITEM_EFFECT_FLAME_ORB 0x4C
  52. #define ITEM_EFFECT_TOXIC_ORB 0x4D
  53. #define ITEM_EFFECT_EXPERT_BELT 0x4E
  54. /*Battlescript command definitions (Do not edit unless changing the command table [bs_command_table.S])*/
  55. #define BS_ATTACKSTRING 0x02
  56. #define BS_PPREDUCE 0x03
  57. #define BS_ATTACKANIMATION 0x09
  58. #define BS_WAITANIMATION 0x0A
  59. #define BS_PRINTSTRING 0x10
  60. #define BS_WAITMESSAGE 0x12
  61. #define BS_JUMPIFSTATUS 0x1C
  62. #define BS_JUMPIFABILITY 0x1E
  63. #define BS_JUMPIFSTAT 0x20
  64. #define BS_JUMPIFWORD 0x2B
  65. #define BS_GOTO 0x28
  66. #define BS_JUMPIFARRAYNOTEQUAL 0x2D
  67. #define BS_SETBYTE 0x2E
  68. #define BS_ORWORD 0x35
  69. #define BS_PAUSE 0x39
  70. #define BS_WAITSTATE 0x3A
  71. #define BS_RETURN 0x3C
  72. #define BS_END3 0x3F
  73. #define BS_CALL 0x41
  74. #define BS_PLAYANIMATION 0x45
  75. #define BS_PLAYSTATANIM 0x48
  76. #define BS_SWITCH1 0x4C
  77. #define BS_SWITCH2 0x4D
  78. #define BS_SWITCH3 0x4E
  79. #define BS_NOP3 0x83
  80. #define BS_STATBUFFCHANGE 0x89
  81. #define BS_CASTFORMSWITCH 0xE7
  82. #define BS_CALLASM 0xF8
  83. #define BS_CURESTATUS 0xF9
  84. #define BS_SETWORD 0xFA
  85. /*For hacking the miracle eye command into set foresight*/
  86. /*Comment out the first define to deactivate the miracleeye injection in the command table*/
  87. /*Some move effect IDs important for correct implementation*/
  88. #define MOVE_EFFECT_SACRED_SWORD 0xFF
  89. #endif