Quoted By:
I'm having trouble adding a trainer to route 2 in Pokered, which originally didn't have any trainers. I literally copy and pasted what route 3 did, but then modified it for route 2. My trainer's sight range doesn't work despite giving her 3 sight range. Here is my code for the trainer:
scripts\route2.asm:
Route2TrainerHeader0:
dbEventFlagBit EVENT_BEAT_ROUTE_3_TRAINER_0
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_ROUTE_3_TRAINER_0
dw Route2BattleText3 ; TextBeforeBattle
dw Route2AfterBattleText3 ; TextAfterBattle
dw Route2EndBattleText3 ; TextEndBattle
dw Route2EndBattleText3 ; TextEndBattle
db $ff
data\mapObjects\route2.asm:
object SPRITE_LASS, 11, 11, STAY, NONE, 3, OPP_LASS, 1 ; person