ROM Hacking Help Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Ad Content
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 12th, 2018 (7:12 AM).
xizqu's Avatar
xizqu xizqu is offline
    Join Date: Feb 2018
    Location: California
    Gender: Male
    Nature: Adamant
    Posts: 82
    Hello, I am trying to get JPAN's special cb to work. Maybe I'm just not understanding what's going on. In the spoiler is JPAN's information on it.

    I insert the hack(via the hacked tool) and insert the script provided by JPAN. I imagine you would then change the pointer of a key to point to the new script but I can't figure out where that pointer is, if it exists. I'm trying to map L+R to the new script.


    Special 0xcb – Place Key Script

    Receives Arguments? Yes
    0x8004 is the keys that need for it to be called, in the same format as before
    Pointer loaded with LoadPointer 0x0, the pointer to the script to be called

    This code allows you to run a determined script if you press a determined set of keys. This works before any changes were made, so it can be used with the above special to create specialized menus. Note that it will only activate the script if the exact keys given were pressed (plus any others), so if you place 0x300 as the keyset, only if both L+R are pressed will it call the script. If you want to perform a set of menus, all based on the same key combination, try placing only one or two of the keys, and check for the rest using the key specials, and jumping to the respective menu.
    EX: L+A goes to one menu, L+R goes to another, So we place only 0x200 as the keyset, and check in the script for the rest.

    Special2 0x8004 0x2b
    Compare 0x8004 0x1
    If 0x1 goto @my_menu_A
    Special 0x8004 0x2e
    If 0x1 goto @my_menu_R

    That way, you can have as many menus as you like, as long as they have one key in common.
    One small detail, this script will only run if the key was pressed in the OW mode, the one where scripts usually run. So this will not activate scripts in-battle, or during a menu.
    Reply With Quote

    Quick Reply

    Join the conversation!

    Create an account to post a reply in this thread, participate in other discussions, and more!

    Create a PokéCommunity Account
    Ad Content
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump

    All times are GMT -8. The time now is 8:54 PM.