; move ids
	const_def
	const MOVE_NONE         ; 00
	const MOVE_POUND        ; 01
	const MOVE_KARATE_CHOP  ; 02
	const MOVE_DOUBLESLAP   ; 03
	const MOVE_COMET_PUNCH  ; 04
	const MOVE_MEGA_PUNCH   ; 05
	const MOVE_PAY_DAY      ; 06
	const MOVE_FIRE_PUNCH   ; 07
	const MOVE_ICE_PUNCH    ; 08
	const MOVE_THUNDERPUNCH ; 09
	const MOVE_SCRATCH      ; 0a
	const MOVE_VICEGRIP     ; 0b
	const MOVE_GUILLOTINE   ; 0c
	const MOVE_RAZOR_WIND   ; 0d
	const MOVE_SWORDS_DANCE ; 0e
	const MOVE_CUT          ; 0f
	const MOVE_GUST         ; 10
	const MOVE_WING_ATTACK  ; 11
	const MOVE_WHIRLWIND    ; 12
	const MOVE_FLY          ; 13
	const MOVE_BIND         ; 14
	const MOVE_SLAM         ; 15
	const MOVE_VINE_WHIP    ; 16
	const MOVE_STOMP        ; 17
	const MOVE_DOUBLE_KICK  ; 18
	const MOVE_MEGA_KICK    ; 19
	const MOVE_JUMP_KICK    ; 1a
	const MOVE_ROLLING_KICK ; 1b
	const MOVE_SAND_ATTACK  ; 1c
	const MOVE_HEADBUTT     ; 1d
	const MOVE_HORN_ATTACK  ; 1e
	const MOVE_FURY_ATTACK  ; 1f
	const MOVE_HORN_DRILL   ; 20
	const MOVE_TACKLE       ; 21
	const MOVE_BODY_SLAM    ; 22
	const MOVE_WRAP         ; 23
	const MOVE_TAKE_DOWN    ; 24
	const MOVE_THRASH       ; 25
	const MOVE_DOUBLE_EDGE  ; 26
	const MOVE_TAIL_WHIP    ; 27
	const MOVE_POISON_STING ; 28
	const MOVE_TWINEEDLE    ; 29
	const MOVE_PIN_MISSILE  ; 2a
	const MOVE_LEER         ; 2b
	const MOVE_BITE         ; 2c
	const MOVE_GROWL        ; 2d
	const MOVE_ROAR         ; 2e
	const MOVE_SING         ; 2f
	const MOVE_SUPERSONIC   ; 30
	const MOVE_SONICBOOM    ; 31
	const MOVE_DISABLE      ; 32
	const MOVE_ACID         ; 33
	const MOVE_EMBER        ; 34
	const MOVE_FLAMETHROWER ; 35
	const MOVE_MIST         ; 36
	const MOVE_WATER_GUN    ; 37
	const MOVE_HYDRO_PUMP   ; 38
	const MOVE_SURF         ; 39
	const MOVE_ICE_BEAM     ; 3a
	const MOVE_BLIZZARD     ; 3b
	const MOVE_PSYBEAM      ; 3c
	const MOVE_BUBBLEBEAM   ; 3d
	const MOVE_AURORA_BEAM  ; 3e
	const MOVE_HYPER_BEAM   ; 3f
	const MOVE_PECK         ; 40
	const MOVE_DRILL_PECK   ; 41
	const MOVE_SUBMISSION   ; 42
	const MOVE_LOW_KICK     ; 43
	const MOVE_COUNTER      ; 44
	const MOVE_SEISMIC_TOSS ; 45
	const MOVE_STRENGTH     ; 46
	const MOVE_ABSORB       ; 47
	const MOVE_MEGA_DRAIN   ; 48
	const MOVE_LEECH_SEED   ; 49
	const MOVE_GROWTH       ; 4a
	const MOVE_RAZOR_LEAF   ; 4b
	const MOVE_SOLARBEAM    ; 4c
	const MOVE_POISONPOWDER ; 4d
	const MOVE_STUN_SPORE   ; 4e
	const MOVE_SLEEP_POWDER ; 4f
	const MOVE_PETAL_DANCE  ; 50
	const MOVE_STRING_SHOT  ; 51
	const MOVE_DRAGON_RAGE  ; 52
	const MOVE_FIRE_SPIN    ; 53
	const MOVE_THUNDERSHOCK ; 54
	const MOVE_THUNDERBOLT  ; 55
	const MOVE_THUNDER_WAVE ; 56
	const MOVE_THUNDER      ; 57
	const MOVE_ROCK_THROW   ; 58
	const MOVE_EARTHQUAKE   ; 59
	const MOVE_FISSURE      ; 5a
	const MOVE_DIG          ; 5b
	const MOVE_TOXIC        ; 5c
	const MOVE_CONFUSION    ; 5d
	const MOVE_PSYCHIC      ; 5e
	const MOVE_HYPNOSIS     ; 5f
	const MOVE_MEDITATE     ; 60
	const MOVE_AGILITY      ; 61
	const MOVE_QUICK_ATTACK ; 62
	const MOVE_RAGE         ; 63
	const MOVE_TELEPORT     ; 64
	const MOVE_NIGHT_SHADE  ; 65
	const MOVE_MIMIC        ; 66
	const MOVE_SCREECH      ; 67
	const MOVE_DOUBLE_TEAM  ; 68
	const MOVE_RECOVER      ; 69
	const MOVE_HARDEN       ; 6a
	const MOVE_MINIMIZE     ; 6b
	const MOVE_SMOKESCREEN  ; 6c
	const MOVE_CONFUSE_RAY  ; 6d
	const MOVE_WITHDRAW     ; 6e
	const MOVE_DEFENSE_CURL ; 6f
	const MOVE_BARRIER      ; 70
	const MOVE_LIGHT_SCREEN ; 71
	const MOVE_HAZE         ; 72
	const MOVE_REFLECT      ; 73
	const MOVE_FOCUS_ENERGY ; 74
	const MOVE_BIDE         ; 75
	const MOVE_METRONOME    ; 76
	const MOVE_MIRROR_MOVE  ; 77
	const MOVE_SELFDESTRUCT ; 78
	const MOVE_EGG_BOMB     ; 79
	const MOVE_LICK         ; 7a
	const MOVE_SMOG         ; 7b
	const MOVE_SLUDGE       ; 7c
	const MOVE_BONE_CLUB    ; 7d
	const MOVE_FIRE_BLAST   ; 7e
	const MOVE_WATERFALL    ; 7f
	const MOVE_CLAMP        ; 80
	const MOVE_SWIFT        ; 81
	const MOVE_SKULL_BASH   ; 82
	const MOVE_SPIKE_CANNON ; 83
	const MOVE_CONSTRICT    ; 84
	const MOVE_AMNESIA      ; 85
	const MOVE_KINESIS      ; 86
	const MOVE_SOFTBOILED   ; 87
	const MOVE_HI_JUMP_KICK ; 88
	const MOVE_GLARE        ; 89
	const MOVE_DREAM_EATER  ; 8a
	const MOVE_POISON_GAS   ; 8b
	const MOVE_BARRAGE      ; 8c
	const MOVE_LEECH_LIFE   ; 8d
	const MOVE_LOVELY_KISS  ; 8e
	const MOVE_SKY_ATTACK   ; 8f
	const MOVE_TRANSFORM    ; 90
	const MOVE_BUBBLE       ; 91
	const MOVE_DIZZY_PUNCH  ; 92
	const MOVE_SPORE        ; 93
	const MOVE_FLASH        ; 94
	const MOVE_PSYWAVE      ; 95
	const MOVE_SPLASH       ; 96
	const MOVE_ACID_ARMOR   ; 97
	const MOVE_CRABHAMMER   ; 98
	const MOVE_EXPLOSION    ; 99
	const MOVE_FURY_SWIPES  ; 9a
	const MOVE_BONEMERANG   ; 9b
	const MOVE_REST         ; 9c
	const MOVE_ROCK_SLIDE   ; 9d
	const MOVE_HYPER_FANG   ; 9e
	const MOVE_SHARPEN      ; 9f
	const MOVE_CONVERSION   ; a0
	const MOVE_TRI_ATTACK   ; a1
	const MOVE_SUPER_FANG   ; a2
	const MOVE_SLASH        ; a3
	const MOVE_SUBSTITUTE   ; a4
	const MOVE_STRUGGLE     ; a5
	const MOVE_SKETCH       ; a6
	const MOVE_TRIPLE_KICK  ; a7
	const MOVE_THIEF        ; a8
	const MOVE_SPIDER_WEB   ; a9
	const MOVE_MIND_READER  ; aa
	const MOVE_NIGHTMARE    ; ab
	const MOVE_FLAME_WHEEL  ; ac
	const MOVE_SNORE        ; ad
	const MOVE_NAIL_DOWN    ; ae CURSE
	const MOVE_FLAIL        ; af
	const MOVE_CONVERSION2  ; b0
	const MOVE_COIN_HURL    ; b1 *AEROBLAST
	const MOVE_COTTON_SPORE ; b2
	const MOVE_REVERSAL     ; b3
	const MOVE_SPITE        ; b4
	const MOVE_POWDER_SNOW  ; b5
	const MOVE_PROTECT      ; b6
	const MOVE_MACH_PUNCH   ; b7
	const MOVE_SCARY_FACE   ; b8
	const MOVE_FAINT_ATTACK ; b9
	const MOVE_SWEET_KISS   ; ba
	const MOVE_BELLY_DRUM   ; bb
	const MOVE_SLUDGE_BOMB  ; bc
	const MOVE_MUD_SLAP     ; bd
	const MOVE_OCTAZOOKA    ; be
	const MOVE_SPIKES       ; bf
	const MOVE_ZAP_CANNON   ; c0
	const MOVE_FORESIGHT    ; c1
	const MOVE_DESTINY_BOND ; c2
	const MOVE_PERISH_SONG  ; c3
	const MOVE_SYNCHRONIZE  ; c4 *ICY_WIND
	const MOVE_DETECT       ; c5
	const MOVE_BONE_LOCK    ; c6 BONE_RUSH
	const MOVE_LOCK_ON      ; c7
	const MOVE_OUTRAGE      ; c8
	const MOVE_SANDSTORM    ; c9
	const MOVE_GIGA_DRAIN   ; ca
	const MOVE_ENDURE       ; cb
	const MOVE_CHARM        ; cc
	const MOVE_ROLLOUT      ; cd
	const MOVE_FALSE_SWIPE  ; ce
	const MOVE_SWAGGER      ; cf
	const MOVE_MILK_DRINK   ; d0
	const MOVE_SPARK        ; d1
	const MOVE_FURY_CUTTER  ; d2
	const MOVE_STEEL_WING   ; d3
	const MOVE_STALKER      ; d4 MEAN_LOOK
	const MOVE_ATTRACT      ; d5
	const MOVE_SLEEP_TALK   ; d6
	const MOVE_BELL_CHIME   ; d7 HEAL_BELL
	const MOVE_RETURN       ; d8
	const MOVE_PRESENT      ; d9
	const MOVE_FRUSTRATION  ; da
	const MOVE_SAFEGUARD    ; db
	const MOVE_PAIN_SPLIT   ; dc
	const MOVE_SACRED_FIRE  ; dd
	const MOVE_MAGNITUDE    ; de
	const MOVE_DYNAMICPUNCH ; df
	const MOVE_MEGAPHONE    ; e0 *MEGAHORN
	const MOVE_DRAGONBREATH ; e1
	const MOVE_BATON_PASS   ; e2
	const MOVE_ENCORE       ; e3
	const MOVE_PURSUIT      ; e4
	const MOVE_RAPID_SPIN   ; e5
	const MOVE_TEMPT        ; e6 SWEET_SCENT
	const MOVE_IRON_TAIL    ; e7
	const MOVE_ROCK_HEAD    ; e8 *ROCK_HEAD
	const MOVE_VITAL_THROW  ; e9
	const MOVE_MORNING_SUN  ; ea
	const MOVE_SYNTHESIS    ; eb
	const MOVE_MOONLIGHT    ; ec
	const MOVE_HIDDEN_POWER ; ed
	const MOVE_CROSS_CUTTER ; ee CROSS_CHOP
	const MOVE_TWISTER      ; ef
	const MOVE_RAIN_DANCE   ; f0
	const MOVE_SUNNY_DAY    ; f1
	const MOVE_F2           ; f2 *CRUNCH
	const MOVE_F3           ; f3 *MIRROR_COAT
	const MOVE_F4           ; f4 *PSYCH_UP
	const MOVE_UPROOT       ; f5 *EXTREMESPEED
	const MOVE_WIND_RIDE    ; f6 *ANCIENTPOWER
	const MOVE_WATER_SPORT  ; f7 *SHADOW_BALL
	const MOVE_STRONG_ARM   ; f8 *FUTURE_SIGHT
	const MOVE_BRIGHT_MOSS  ; f9 *ROCK_SMASH
	const MOVE_WHIRLPOOL    ; fa
	const MOVE_BOUNCE       ; fb *BEAT_UP
DEF NUM_ATTACKS EQU const_value - 1

	const MOVE_OR_ANIM_FC ; fc
	const MOVE_OR_ANIM_FD ; fd
	const MOVE_OR_ANIM_FE ; fe

; Battle animations use the same constants as the moves up to this point
	const ANIM_TEMPT_2           ; ff
	const ANIM_THROW_POKE_BALL   ; 100
	const ANIM_SEND_OUT_MON      ; 101
	const ANIM_RETURN_MON        ; 102
	const ANIM_CONFUSED          ; 103
	const ANIM_SLP               ; 104
	const ANIM_BRN               ; 105
	const ANIM_PSN               ; 106
	const ANIM_SAP               ; 107
	const ANIM_FRZ               ; 108
	const ANIM_PAR               ; 109
	const ANIM_IN_LOVE           ; 10a
	const ANIM_IN_SANDSTORM      ; 10b
	const ANIM_IN_NIGHTMARE      ; 10c
	const ANIM_IN_WHIRLPOOL      ; 10d
; battle anims
	const ANIM_MISS              ; 10e
	const ANIM_ENEMY_DAMAGE      ; 10f
	const ANIM_ENEMY_STAT_DOWN   ; 110
	const ANIM_PLAYER_STAT_DOWN  ; 111
	const ANIM_PLAYER_DAMAGE     ; 112
	const ANIM_WOBBLE            ; 113
	const ANIM_SHAKE             ; 114
	const ANIM_HIT_CONFUSION     ; 115

; wNumHits uses offsets from ANIM_MISS
	const_def
	const BATTLEANIM_NONE
	const BATTLEANIM_ENEMY_DAMAGE
	const BATTLEANIM_ENEMY_STAT_DOWN
	const BATTLEANIM_PLAYER_STAT_DOWN
	const BATTLEANIM_PLAYER_DAMAGE
	const BATTLEANIM_WOBBLE
	const BATTLEANIM_SHAKE
	const BATTLEANIM_HIT_CONFUSION
