• 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.

Recent content by Koople

  1. K

    [ASM & Hex✓] Banning items in certain trainer battles.

    This won't work because you're trying to write an offset to the ROM (read-only memory). If you want a value to change throughout the game, you must write it to the RAM (read-access memory). In this specific instance, you will likely need some assembly or C routine to check if some value is set...
  2. K

    [Script] For loop

    Here is a script snippet that might help: setvar 0x8000 0 //initialize loop counter goto @loop #org @loop compare 0x8000 10 if 0x1 goto @exit_loop // do your loop stuff here addvar 0x8000 1 goto @loop That will loop through the section "#org @loop" 10 times. Hope this helps!
  3. K

    Code: Ability Resource Thread

    Yeah, it looks like that routine has Sniper's ability ID as 0x62, so there is a discrepancy in the actual engine and this routine. You can use a pokemon editor like PGE or G3T to check the ability indices just based on their names in the drop down menu.
  4. K

    Code: Ability Resource Thread

    Every ability has an index that is associated with its position in the ability name/descriptions table. For example, speed boost is ability 0x3. So, if you add an ability just after air lock, it would be ability 0x4F and you would assign that index to your pokemon's ability slot
  5. K

    [Other] Is it possible to find badges in RAM

    Badges are set via flags that are located in the save block data, which is dynamically allocated. The address 0x03005008 holds the pointer to this data, and the flags are stored as bits starting 0xee0 bytes from the start of that pointer (eg. [03005008] + 0xee0) in short-hand. The badges are...
  6. K

    [Battle] Skip Pokémon's Pokedex screen afther catching

    The battle script associated with catching pokemon is at 0x1d9a42. If you know what the battle script commands do, you could remove the ones concerning pokedex addition. Although it would probably involve understanding how to read game code (assembly) to understand what the commands are doing.
  7. K

    [Script] Alternate way to script trainerbattle in FireRed

    I think the area around sub_8080334 is what you're looking for?
  8. K

    [Script] [Pokeemerald] Calling C/ASM routines from inside scripts.inc?

    you can use callasm for custom assembly functions. Adding your function the special table would essentially be the same, unless you needed the special2 function with the extra argument.
  9. K

    [ASM & Hex] Trainer ID with ASM

    To load the trainer ID, you would do the following: .align 2 .thumb ldr r0, =(0x0300500c) ldr r0, [r0] ldrh r0, [r0, #0xa] The difference is "ldrh" vs. "ldr." The former loads a halfword (2 bytes) and can do so in multiplies of two bytes, whereas the latter loads a full word (4 bytes) and...
  10. K

    Quick Research & Development Thread

    The 08 prefix says that it is part of read-only memory (ROM). So if you see 08xxxxxx, it means you can find the offset in your hex editor by dropping the 08 in front. So you are correct, 06D5D0 would be the correct offset.
  11. K

    [ASM & Hex] Make the Elite Four, Gym Leaders, and Rival Set Battles in FireRed

    I would go back and make sure all the pointers are correct. This is not an assembly code hook so the pointer to your battle script should not have a +1. That would be my best guess as to what went wrong. You can use battle script pro to decompile the script and make sure it is working as normal.
  12. K

    [Script✓] Multichoice box (more than 7 options)(JPAN)

    The if 0xX is not related to the value you are trying to compare to. It is an inequality, using these values Lower Than (0x0) Equals (0x1) Greater Than (0x2) Lower than or Equal to (0x3) Greater than or Equal to (0x4) Not exactly equal to (0x5) So you want to do: compare 0x800d 0x0 if 0x1...
  13. K

    [Script✓] Multichoice box (more than 7 options)(JPAN)

    I believe you need to do a compare LASTRESULT 0xX if 0x1 goto @snip_x for every single option. An alternative would be to use this scrolling multichoice option
  14. K

    [Battle] Fire red

    If you're hacking Fire Red you can apply JPANs engine which has a wildbattle and trainerbattle level editor, so you can set the relevant variable (forget which one exactly off the top of my head) to a higher or lower value based on which starter the user picks to change the trainer's pokemon...
  15. K

    Tool to set permadeath on ROMs?

    Sorry, that routine is only for fire red. I'm not sure what tools exist for gen4+ hacking :(
Back
Top