No Description

config.h 3.5KB

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