- 82
- Posts
- 7
- Years
- California
- Seen May 20, 2020
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
Release
end
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.
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.
Spoiler:
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
Release
end
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.