• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Code: ASM Resource Thread

Trainer 781

Guest
0
Posts
    I did replace the command. It was this pointer: CD 2C 02 08 and I changed it to YY+1 YY YY 08.

    Okk, then VM/PM me the offsets. I'll then able to see thd problem.

    To fix thd damage berry routine just, change the .hword in the second last line to .word. (The error was due to some issues in Hackmew's compiler)
     

    daniilS

    busy trying to do stuff not done yet
    409
    Posts
    10
    Years
    • Seen Jan 29, 2024
    Okk, then VM/PM me the offsets. I'll then able to see thd problem.

    To fix thd damage berry routine just, change the .hword in the second last line to .word. (The error was due to some issues in Hackmew's compiler)

    Actually, you can never load a relative halfword.
     

    mariomaniac432

    Shuckle Master
    46
    Posts
    13
    Years
  • I've been having some trouble getting the Berry System to work. For some reason, the script crashes when it gets to the first instance of the Get Tree Data routine. I know this is where the problem is because if I remove it from the script, it doesn't crash until it gets to the Berry Bag Selection routine, which for some reason crashes the game if I have a berry in the bag, but that could be a result of removing the Get Tree Ddata routine. I thought that maybe the problem was I installed JPAN's Save Block hack wrong (instructions seemed a little confusing at first, but I'm pretty sure I did it right), so I found this patch with the hack, applied it a clean FireRed 1.0 ROM, and then put all the other routines in, and had the same problem.

    My script was a simple copy/paste from this thread, which the offsets filled in properly of course. All the ASM rotuines were also unmodified, and copied directly from this thread, I also tried compiling them myself and inserting them that way, but nothing seems to work.
     
    Last edited:

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • I've been having some trouble getting the Berry System to work. For some reason, the script crashes when it gets to the first instance of the Get Tree Data routine. I know this is where the problem is because if I remove it from the script, it doesn't crash until it gets to the Berry Bag Selection routine, which for some reason crashes the game if I have a berry in the bag, but that could be a result of removing the Get Tree Ddata routine. I thought that maybe the problem was I installed JPAN's Save Block hack wrong (instructions seemed a little confusing at first, but I'm pretty sure I did it right), so I found this patch with the hack, applied it a clean FireRed 1.0 ROM, and then put all the other routines in, and had the same problem.

    My script was a simple copy/paste from this thread, which the offsets filled in properly of course. All the ASM rotuines were also unmodified, and copied directly from this thread, I also tried compiling them myself and inserting them that way, but nothing seems to work.

    The berry tree routine is bugged. I will go ahead and redo it sometime in the future. Sorry.
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • Hi FBI, first of all thanks for your work! You've been really helpful.
    My question regards your battle routine https://www.pokecommunity.com/showthread.php?p=8527650#8527650 .
    I've been trying it without success in my Ruby rom hack hoping it would work just like in Fire Red.
    Is there any way to remove the whiteout after losing a battle in a Ruby hack rom?

    No clue. I have not even looked at a Ruby ROM since 2008.

    Can we have run-like speed for surf and mach bike speed in FR? Even better would be an arbitrary speed value!

    That's actually very easy. There's a bit in RAM somewhere which controls this. I vaguely remember posting about it here, but I'll get back to you with more content.

    I'd like to say that this thread has been really helpful for me as my ASM skills are far worse than sub-par and, also, the Chain-Fishing one in particular is really cool to me. (◕‿◕✿)

    I'd also like to request something for Fire Red BPRE v1.0 (adding to the infinite list of requests...):
    Stance Change.
    Basically, where a Pokémon uses an offensive move and changes its form to a more offensive Pokémon (or, rather, just a different index-number Pokémon entirely). However, when it uses a certain move (or just a status move would be fine, too), it reverts back to the old form.
    EDIT: Oh, and it would also have to revert to the other form outside of battle.
    What I was thinking was two separate abilities in order to accomplish this, but if one is possible, then that's great too!
    Thanks in advance!

    God I sound so rude I am so sorry

    EDIT: Also, should I go to DaniilS with this? I noticed that he had his own thread for form(e)s...

    EDIT EDIT: Okay, I just noticed something while I was trying to get the Male-only and Female-only evolution methods working on Burmy.
    But ALL of the Pokémon generated by your routine are Male unless if they have more of an 82 percent chance of being female, in which case they are, and the Pokémon already caught turn into females. This is also shown in you post showcasing it, as the Tyranitar are also all Male.
    Just wanted to say this, haha...

    Yes, go to daniilS with this. He should be done by now, 4 or so months ago he said he was working on forms and mega evolutions. He should have everything worked out now if he isn't slacking ;D

    Few simple questions on breeding, egg groups and all that. You said it's all doable via a Pokémon Editor. What I want, actually is that Charizard evolutionary line breeds only with its line and/or Ditto. No Dragon/Monster egg groups. Will I have to make an egg group for each evolutionary family?
    Also, how can I make Ditto breeds with himself too, not only all other Pokémon? And genderless Pokémon, like Magnemite? How can I make them breed?
    Finally, for Nidorans and Volbeat/Illumise, I wanna make the male breed with the female, but not breedable with Ditto. How can I do it?



    Here, I just want to know if I can make all Pokémon to be Docile as default or if I can change all natures' data, so all natures behave like Docile. Is either of these possible?
    Thanks in advance!

    For something specific like this it's better to just add in the exceptions yourself. The game will at some point check species for Ditto :)

    If you give up, I can give you hints. My policy about strictly specific routines still stand however.
     

    leyn09

    Truant Trainer
    84
    Posts
    13
    Years
  • Well done on that KDS !

    Same routine with Emerald offset !

    Here :
    Spoiler:


    Bonus, Life Orb boost (lightball updated included). UPDATE for Emerald : I added a routine to make a new item that boost a certain type of attack. If you have a fairy type in your hack rom, you can now have an item that boost that type. You can adjust the boost the same way than miracle seed and such in G3T. I also implemented the TimeSpace orb in the routine :

    Spoiler:




    Yep, it is now updated

    How should I use both the recoil and boost effect? Should it be separately compiled and just put the same held item byte effect in each routines?
     
    218
    Posts
    10
    Years
    • Seen Nov 12, 2021
    How should I use both the recoil and boost effect? Should it be separately compiled and just put the same held item byte effect in each routines?

    Recoil and boost work indeed seperatly, as you can see the branch aren't done at the same places. So yeah you have to give the same effect in both routine as well as assembling them to have both recoil/boost effects.
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • OAM routines


    The first hackathon was probably the worst thing that could have happened for this thread. It completely killed my motivation for hacking and made me quit for a few months. There are some good things that came out of it, I was able to do a lot of research on things I hadn't before including field moves, OAM, trainer generation and such. I was looking around my older routines for OAM manipulation, and I had trouble understanding and ripping my own code! I had lost the source code, so I decided to rip as much as I can and redo the jibberish including some clean up.

    Similar routines to these ones I'm presenting were used for the custom intro in team 4's hackoff ROM :)


    Generating OAMs


    This routine is only to generate OAMs which are trainer or Pokemon sprites. I've modified it to be usable with a script, but honestly, setting the values yourself via ASM would've been faster (not that this is noticeably slow, just comparatively). I will have to do more research on making it portray an arbitrary image, but with the expansion work on the Pokedex and such, I don't see it as very necessary anymore.

    How to insert:
    Compile and insert the following routine into a free word aligned offset.

    Spoiler:


    Usage:
    The usage is quite simple, but it takes up a lot of temporary variables :P

    Code:
    @var 0x8000 - Slot #. Set 0x6 for shiny.
    @var 0x8001 - X-pos
    @var 0x8002 - Y-pos
    @var 0x8003 - Unoccupied Pal ID number. See OAM viewer.
    @var 0x8004 - Occupacity silluette set 1
    @var 0x8005 - species/trainer sprite ID
    @var 0x8006 - Front (1) or Back (0)
    @var 0x8007 - Toggle trainer or Pokemon

    Some quick notes about these variables.

    Variable 0x8000 is to determine the Pokemon's shinyness. If you're showing a Pokemon in your party just use that Pokemon's party slot. If you're showing a shiny Pokemon go ahead and use 0x6. Basically 0x6 = shiny, anything else (must be lower) depends on party slot.

    Variable 0x8003 plays a key role. Make sure in the OAM viewer the sprite ID is free.
    ASM Resource Thread

    Here sprite number 0 is taken by Oak's OAM. Click the Arrow until you find something not occupied, and set this variable to that value!

    Variable 0x8007 is a switch of sorts. It determines whether to show a trainer sprite or a Pokemon sprite.

    I think the rest of the variables are self explanatory. Mess around with them a little :)


    OAM tracking


    So I'm sure you can imagine, that at some point in time you want your OAM to disappear. You can't have it on the screen forever, maybe even make it disappear temporarily and reshow it without having to do the painfully expensive creation call again. I made a routine which will take into account the last OAM ID which you created and stores it in var 0x8008. Note that this is an ID assigned by the game code, not the same ID as the one we assigned on creation. Therefore it's important to track this.

    How to insert

    Compile and insert the following routine into free space.
    Spoiler:


    Navigate to 080070B0 and insert the following byte changes:
    Code:
    00 49 08 47 XX XX XX 08
    Where XX XX XX is the location your inserted your routine in reverse hex +1. The trailing "08" may change to 09 or something depending on where you inserted it. Remember to stay word aligned!

    Usage:
    This routine doesn't really do anything by itself. It's more of a routine which works in the background. It just writes to variable 0x8008 the last displayed OAM's ID. Basically, just insert it and do nothing :3


    A quick explanation of how OAMs are shown/hidden in FireRed.


    There's a neat RAM structure in FireRed which controls whether or not to show or unshow an OAM on the screen. This OAM's ID needs to be present in said structure. The structure, for some unknown reason, is 40 bytes in size. It looks like this:

    [OAM ID (1 byte)] [OAM ID (1 byte)] [OAM ID (1 byte)] ... [Byte 0x3F] [Filler bytes] ...[40th filler byte]

    In case you don't understand by now, it's basically a table of X entries where each entry is an OAM's ID to display. Every entry after the byte 0x3F is not read by game code, and is therefore nothing more than filler bytes!

    The reason as to why I'm confused the structure is 40 bytes is because the routines which use this structure restrict themselves by using another structure. This second structure only holds 13 OAMs at a time, which is why we can only have 13 OAMs present in FR on screen at once WITHOUT fully customized code. For the most part you'll never go over 13 anyways. I used 9 in total for the custom intro and the screen was cluttered :X

    My guess as to why it's 40 bytes is because it's used for animation frames as well. I'm not sure, I haven't researched that.
    This structure is located at 0x2021800.

    Hiding OAMs created


    Now that you understood the data structure, you need to remove your OAM's byte ID from the table. But how do you know which byte is your OAM's byte? That was what the previous tracker routine was for. Right after you create your OAM the corresponding table ID will be in var 0x8008. Copy this value into somewhere you won't lose it (i,e a non-temporary variable), from there you can callasm this routine with the appropriate parameters :)

    How to insert:

    Compile and insert the following routine to free space:
    Spoiler:



    Usage:

    In a script, set variable 0x8000 to the OAM ID you want to vanish, then simply callasm this routine. This data structure is updated every frame from what I was able to see, so the results should be immediate.


    Show OAM


    Sometimes you want to hide an OAM but only temporary. This routine will show an OAM which has already been loaded, but flagged as hidden or similar.

    How to insert:

    Compile and insert into free space the following routine:
    Spoiler:


    Usage:

    In a script, set variable 0x8000 to the OAM ID you want to reappear, then simply callasm this routine. This data structure is updated every frame from what I was able to see, so the results should be immediate.

    Closing notes:


    I may or may not update these with animations as well. One I'm particularly interested in doing is a slow fade. The biggest thing I want to address is how to use these in a script. I think it's fairly intuitive, but a quick example may help :)

    Spoiler:


    Play around with it. It can be fun, and hopefully this will open more doors for hackers. I've made it as friendly as possible even opening up the potential to use it in scripts, but if you have any questions you can direct them to me at the ASM help thread or something :D
     
    275
    Posts
    9
    Years
  • Preventing TMs from being consumed on use


    Quick research:
    TMs are deleted in two places. The first place is in their own function. When called from the bag, after use the TM has it's own deletion mechanism. The second way is from the bag, after you use a TM the bag attempts to delete it as well. Well, the solution is quite simple. There's two ways to do this, either go to 0809A1D8 call your own function there which checks if the item is a TM, and if it is, just jump to the end. Or much more simply you just remove the parts from the bag and tm function that deletes the TM (Which is what I did). The former way is a way you can make another item you have unconsumable.

    To insert:
    Do the byte changes below
    0x124F78: 00 00 00 00
    0x125C80: 00 00 00 00

    Make it Ungivable:
    insert that at 0x1326B8: 00 00 17 E0

    Make it consumable after animation:
    Insert: 00 00 00 00 at 0x124F78

    To remove the quantities showing up in the bag:

    Compile and insert into free space:
    Spoiler:


    Here's a compiled version:
    Code:
    00 2D 01 D1 05 4B 18 47 38 1C 08 21 22 1C 04 4E 00 F0 02 F8 01 4B 18 47 30 47 C0 46 FF 1E 13 08 B1 35 13 08

    Now navigate to 0x131EF4 and insert:
    Code:
    00 48 00 47 XX XX XX 08
    Where XX XX XX is the pointer to where you assembled the routine +1

    Now navigate to 0x131EA5 and change the byte to E0

    Unsellable:
    Basically for the TMs, you can still sell them to vendors. To change this, you need to modify each TM individually. It's unfortunate, but the game checks if an item can be sold my comparing it's market price to zero. If it's strictly greater than zero, then you can sell it to a vendor, seems to be the rule. So to make TMs unsellable you need to set their market prices individually to zero.
    I can't use my own checks to disguise the TMs as unique because the sell routine in shops are used for ALL items including potions, berries, TMs, and other items like nuggets.


    Present :3
    ASM Resource Thread

    I've got a HUGE problem with this!!!!
    I was playing and normally using TMs for 20k Pokémon (not a number, I'm exaggerating). I'm after the league now, and I was giving Toxic to some Pokémon, to help me catch others, so I could get the 60 Pokémon to get National Dex and be able to go to Four Island.
    Problem is, when I was going to give Toxic to my Chansey, it was gone! Then I looked for the Psychic TM (other move I give to her, I took it out briefly for Rock Smash), and it was gone too. What the hell happened?
    Is there a limit for this?
    I got my save back, from the GBA in-game save, and I had Toxic yet. I tested giving it to one Pokémon and it didn't disappear. Then I gave it to other and then it wasn't there anymore. Is there a limited amout of times I can use a TM? Or there's something incomplete about this hack?
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • I've got a HUGE problem with this!!!!
    I was playing and normally using TMs for 20k Pokémon (not a number, I'm exaggerating). I'm after the league now, and I was giving Toxic to some Pokémon, to help me catch others, so I could get the 60 Pokémon to get National Dex and be able to go to Four Island.
    Problem is, when I was going to give Toxic to my Chansey, it was gone! Then I looked for the Psychic TM (other move I give to her, I took it out briefly for Rock Smash), and it was gone too. What the hell happened?
    Is there a limit for this?
    I got my save back, from the GBA in-game save, and I had Toxic yet. I tested giving it to one Pokémon and it didn't disappear. Then I gave it to other and then it wasn't there anymore. Is there a limited amout of times I can use a TM? Or there's something incomplete about this hack?

    No, there shouldn't be a limit. Can anyone else confirm this bug? Also can you give me a specific case for when the TM disappears? There was a bug where it can get consumed if 4 moves were already learned. I fixed that already (it's in a separate post).
     
    275
    Posts
    9
    Years
  • No, there shouldn't be a limit. Can anyone else confirm this bug? Also can you give me a specific case for when the TM disappears? There was a bug where it can get consumed if 4 moves were already learned. I fixed that already (it's in a separate post).

    I'll confirm this second bug. Also, if you want, I can record a video of me making the TM move magically disappear. HAHAHAHA

    EDIT: Second bug not confirmed!
    When I noticed this, I used it in my Abra, which only had Teleport. Then it was gone after I used it in my Ekans, which had 4 moves learned.
    But now, I used in an Ekans with 4 moves learned first, and I kept the TM. Then I used in my Abra, which had only one, and then the TM disappeared.
    So, 4 moves learned bug is not my problem, so it seems.
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • Frontier Routines - Opponent Party generation


    I've been meaning to implement a frontier of sorts into FireRed for some time but never really got a good opportunity to do so. Today I got a little bored and decided that I might as well start up. The first problem is obviously to generate a pseudo random party for the opposing trainer. That's what I've done today!

    I had made a generation routine in the past as well, but it was incomplete and a little buggy. This one, as far as I can tell in my tests, should work fine :)


    Setting up some prerequisites:
    When making the routine for Pokemon generation, it was important that the hacker had some customization about which Pokemon were allowed into the opponents party (to prevent legendary Pokemon, or some specific Pokemon into the competition). The best way to do that is to either make a table of the Pokemon allowed to be in the opponent's party, or a table of the Pokemon not allowed to be in it. I decided to make the hacker do a table of all the Pokemon species allowed to be in the opponent's party.

    It's important to remember that Pokemon Species ID takes 2 bytes per species, and that each entry in the table is in reverse hex. Bulbasaur for example would be: "01 00" in the table. The size of the table is up to you. The biggest reason I made the table be a table of all the Pokemon allowed is because this allows you to put more than 1 entry of the same Pokemon (thus increasing it's likelihood to be selected) ==> not all Pokemon species have the same chance of being selected!

    Find some half-word aligned free space (offset divisible by 2) and fill up your table with as many entries as you'd like in this format:
    Code:
    [2 bytes (ID)] [2 bytes (ID)] ...

    Write down how many entries you have, and where the start of the table is.


    How to insert:

    First take a look at the routine in the spoiler. Scroll to the very bottom, and you will see two fields which need filling. The first is called "Table". Table is supposed to be a location to the table of IDs we made earlier, replace 0x8750000 with your table location. Tsize is supposed to be the amount of Pokemon your table has in it, adjust that accordingly as well.

    Finally, the routine is flag toggled. If flag 0x205 is set, the opponent is generated a random party. To adjust this change these lines accordingly:
    Code:
    	mov r0, #0xFF
    	lsl r0, r0, #0x1 @0xFF * 2
    	add r0, r0, #0x7 @ 0x1FE + 7

    Once the adjustments are complete, compile and insert into free space.
    Spoiler:


    Finally, in a hex editor insert the following byte changes at 0x112F8:
    Code:
    00 48 00 47 XX XX XX 08

    Where XX XX XX is the place you inserted the routine +1. Note that the trailing 08 may change depending on where you placed the routine.


    Usage:

    The routine is flag toggled. Set flag 0x205 before entering battle, and the rest is done automatically.
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • I'll confirm this second bug. Also, if you want, I can record a video of me making the TM move magically disappear. HAHAHAHA

    EDIT: Second bug not confirmed!
    When I noticed this, I used it in my Abra, which only had Teleport. Then it was gone after I used it in my Ekans, which had 4 moves learned.
    But now, I used in an Ekans with 4 moves learned first, and I kept the TM. Then I used in my Abra, which had only one, and then the TM disappeared.
    So, 4 moves learned bug is not my problem, so it seems.

    Try the fix I posted for the 4 move bug. I'm pretty sure it's the same fix for both problems.
     
    417
    Posts
    9
    Years
    • Seen Nov 20, 2016

    Frontier Routines - Opponent Party generation


    I've been meaning to implement a frontier of sorts into FireRed for some time but never really got a good opportunity to do so. Today I got a little bored and decided that I might as well start up. The first problem is obviously to generate a pseudo random party for the opposing trainer. That's what I've done today!

    I had made a generation routine in the past as well, but it was incomplete and a little buggy. This one, as far as I can tell in my tests, should work fine :)


    Setting up some prerequisites:
    When making the routine for Pokemon generation, it was important that the hacker had some customization about which Pokemon were allowed into the opponents party (to prevent legendary Pokemon, or some specific Pokemon into the competition). The best way to do that is to either make a table of the Pokemon allowed to be in the opponent's party, or a table of the Pokemon not allowed to be in it. I decided to make the hacker do a table of all the Pokemon species allowed to be in the opponent's party.

    It's important to remember that Pokemon Species ID takes 2 bytes per species, and that each entry in the table is in reverse hex. Bulbasaur for example would be: "01 00" in the table. The size of the table is up to you. The biggest reason I made the table be a table of all the Pokemon allowed is because this allows you to put more than 1 entry of the same Pokemon (thus increasing it's likelihood to be selected) ==> not all Pokemon species have the same chance of being selected!

    Find some half-word aligned free space (offset divisible by 2) and fill up your table with as many entries as you'd like in this format:
    Code:
    [2 bytes (ID)] [2 bytes (ID)] ...

    Write down how many entries you have, and where the start of the table is.


    How to insert:

    First take a look at the routine in the spoiler. Scroll to the very bottom, and you will see two fields which need filling. The first is called "Table". Table is supposed to be a location to the table of IDs we made earlier, replace 0x8750000 with your table location. Tsize is supposed to be the amount of Pokemon your table has in it, adjust that accordingly as well.

    Finally, the routine is flag toggled. If flag 0x205 is set, the opponent is generated a random party. To adjust this change these lines accordingly:
    Code:
    	mov r0, #0xFF
    	lsl r0, r0, #0x1 @0xFF * 2
    	add r0, r0, #0x7 @ 0x1FE + 7

    Once the adjustments are complete, compile and insert into free space.
    Spoiler:


    Finally, in a hex editor insert the following byte changes at 0x112F8:
    Code:
    00 48 00 47 XX XX XX 08

    Where XX XX XX is the place you inserted the routine +1. Note that the trailing 08 may change depending on where you placed the routine.


    Usage:

    The routine is flag toggled. Set flag 0x205 before entering battle, and the rest is done automatically.
    This is quite a useful routine. Are there any issues you imagine arising from extending the entries to include custom movesets, held items, ev/iv etc?
     
    275
    Posts
    9
    Years
  • Try the fix I posted for the 4 move bug. I'm pretty sure it's the same fix for both problems.

    It seemed to work. I'll report back if I find anything else.
    Bro, please update your Reusable TM post with this information.
    Not for me, I already have it working. For other people not to stumble in the same issue.
    Thanks for the help!
     
    3,830
    Posts
    14
    Years
    • Age 27
    • OH
    • Seen May 10, 2024
    It seemed to work. I'll report back if I find anything else.
    Bro, please update your Reusable TM post with this information.
    Not for me, I already have it working. For other people not to stumble in the same issue.
    Thanks for the help!

    Don't worry, they're both linked in the first post. :3
     

    GoGoJJTech

    (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
    2,475
    Posts
    11
    Years
  • I don't really feel like doing a challenge cup. Also some of your features can be achieved using the already created party checker routine. Species Clause, Evasion Clause, OHKO clause can all be done by it. Maybe if I feel like it in future :P


    Custom nicknames for enemy Pokemon


    So this works for any wild or trainer Pokemon. It basically allows you to nickname a Pokemon on the enemy team prior to battling. For those special trainers or maybe special Pokemon :)

    How to insert:

    There's actually a little bit of work before you can compile and insert routines. First look at the routine below. You'll notice at the last line there is a Pointer to something that I call "TABLE". This table is going to be a table full of nickname with each entry 0xB bytes long. Find some space in your ROM which you will use for this table and correct the offset accordingly.

    Spoiler:

    Once you've made the modification to the pointer, compile and insert the routine into freespace.
    Next navigate to offset 0x406DC and insert the following:
    Code:
    00 48 00 47 XX XX XX 08
    Where XX is the pointer to the above routine in reverse hex +1.

    Usage:
    First navigate to your table which will contain the nicknames (it should be the offset in the routine you changed). You need to keep the table formatted like this [10 bytes (Name in hex)] [1 byte (0xFF)]. Insert as many names as you'd like.

    Next, to activate the routine, you must setflag 0x270 AND you need to setvar 0x8000 0x[table starting index].
    If you're battling a trainer with 6 Pokemon, the nicknames will be determined from the table. It will read six nicknames starting from the starting index given by variable 0x8000. There is no need to callasm. :)

    ASM Resource Thread

    Danny told me to find this for Emerald, and so I did. 0x406DC is for Fire Red, 0x6AFA8 is for Emerald. I did not test this, but it should theoretically work. (Of course the offsets in the routine will have to be changed, I can start doing that but it's late and stuff)

    EDIT: If you ever want me to find the Emerald offsets for you, I'd be glad to.
    EDIT^2: Edited routine for Emerald (Changes in Red)

    Spoiler:
     
    Last edited:

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • Is it just me OR and the opponent/AI as well?

    Just your party.

    This is quite a useful routine. Are there any issues you imagine arising from extending the entries to include custom movesets, held items, ev/iv etc?

    Yeah that's not too hard, but I think you'd prefer to make your own trainer if you'd have something memorable like custom items and movesets no? It would mean more tables, and more work for the inserter. So much to the point that it wouldn't really be worth the effort, kind of like having 100 TMs.

    Don't worry, they're both linked in the first post. :3
    Thanks I was too lazy to edit my post anyways!

    Danny told me to find this for Emerald, and so I did. 0x406DC is for Fire Red, 0x6AFA8 is for Emerald. I did not test this, but it should theoretically work. (Of course the offsets in the routine will have to be changed, I can start doing that but it's late and stuff)

    EDIT: If you ever want me to find the Emerald offsets for you, I'd be glad to.
    My old routines make my eyes bleed my eyes X_X
    Someone who's keen can go back and make efficiency changes to some of these. A brave and unlazy soul!
     
    Back
    Top