I have found the locations of the moves. Thanks for your information:)Pointers to trainer data are at 0x39D3B in Red; the actual data appear a little later.
There are two types of trainers.
If the first byte is $FF, then every next two bytes are a level and species. These trainers will use special moves.
If the first byte is not $FF, then it represents the level and all following bytes are species.
How the game adds special moves to a team is more complicated, and I won't go into it in this post. However, it is much easier in Yellow than in Red. You can read more details here, here, and here.
I have found the locations of the moves. Thanks for your information:)
There is another question. Special trainers like gym leaders may also use items in a battle. For example, Misty will give her pokemon X Defends when battling. Is there an easy way to change the items that the trainers use?
BrockAI:
; if his active monster has a status condition, use a full heal
ld a,[W_OPPONENTSTATUS]
and a
ret z
jp AIUseFullHeal
AIUseFullHeal:
call $669B
call AICureStatus
ld a,FULL_HEAL
jp AIPrintItemUse
Use the Lips[ Lunar Ips ] program to patch the ips file onto a clean rom[ of what the hack stated ]Please, no one laugh at me, as this is my first post on the site but, when I look at the bottom of the page and I want to download the attatchments, why are they in .ips format? What do I do with these? I'm trying to put Pokemon Ruby Destiny: Reign of Legends on my psp gba emulator, and I'm pretty sure that I need the file to be in .gba format.
Can anyone help me?
Question solved. Thanks for your great help:)There is a way, but it is probably not easy for a beginner.
Trainer AI (which affects how they switch Pokémon and use items) is written in Z80 assembly, the programming language Game Freak used to write the game. Here is an excerpt from a link I posted earlier:Code:BrockAI: ; if his active monster has a status condition, use a full heal ld a,[W_OPPONENTSTATUS] and a ret z jp AIUseFullHeal
This is a routine named "BrockAI" that checks the status of his active Pokémon. If it has no status conditions, nothing happens. Otherwise, it goes to this routine:This routine goes to a routine that cures the status condition, then comes back and goes to a different routine that prints the name of an item: in this case, Full Heal.Code:AIUseFullHeal: call $669B call AICureStatus ld a,FULL_HEAL jp AIPrintItemUse
It's extremely easy to change the name of the item being used—just use a different constant instead of FULL_HEAL here. Changing what actually happens means using some programming logic to change what routines get called when. This is not hard if you know what you're doing.
The above code exists in the ROM. E.g., the "AIRecoverHP" routine is at offset 0x3a6da and looks like "ea 05 cf 21 e7 cf 7e ea eb ce 80 32 ea ed ce 7e ea ec ce ea ee ce 30 05 3c 77 ea ee ce 23…" in a hex editor.
You need to change the save type from 64kb Flash to 128kb Flash.Im using VBA w/ wireless adapter update/patch, w.e, and I cant save Fire Red In game (start/save), only save Shft+F1? Why & how can i fix it?
You should tell us what operating system you're running.I've posted this before but didn't get the help required so i'll ask it again..
My advanced text will not open. I've watched various videos on youtube on 'how to get advanced textto work' but none have worked.
I would greatly appreciate any help given.
Thanks in advance,
TurkishDelight.
Is there a way to accurately implement the PokéGear function(including radio, phone, map, and time functions) in Pokémon LF/FR?
Ok, well thanx. By looking into the Research and Development forum in this section. My best bet for Pokégear emulation would be: Use PKMN Emerald(or possibly use JPAN's Hacked FR engine?)