Skip to content
drgoku282 edited this page May 21, 2017 · 1 revision

Introduced in version 3.4, this feature is used to create your own "mini-bots". Currently, you can do a script consisting on button, touch screen and control stick inputs, delays and looping blocks to perform a series of actions in-game.

Usage

  1. Start PKMN-NTR with InputRedirection as normal.
  2. Open the Script Builder.
  3. Build or load a script.
  4. Hit the Start script button to execute it.

Script Building

When you open this tool it will show a interface similar to the Remote Controls, clicking on them will insert the action in the list. Available commands are:

  • Buttons: Each button represents its counterpart on the 3DS. Home, ZL and ZR buttons will not be supported. Click the desired button to add the command.
  • Touch screen: The location of the touch is represented as a series of X,Y coordinates. The reference point is at the top left of the screen. Click on the Touch button to add the command.
  • Control stick: It is handled as a percentage of its full movement, it spans from -100% (down or left) to 100 (up or right). C-stick will not be supported. Click on the Control Stick button to add the command.
  • If you hold certain keys while clicking on the command, you can change their behavior:
    • No key pressed:
      • Buttons: Press the button and release.
      • Touch screen: Touch the screen and release.
      • Control : Move and release.
    • Shift key:
      • Buttons: Press the button during a certain time and release.
      • Touch screen: Touch the screen, hold during a certain time and release.
      • Control : Move the sitck, hold during a certain time and release.
      • The time is set by using the Option field, units are milliseconds.
    • Control key:
      • Buttons: Press and hold the button.
      • Touch screen: Touch the screen, and then hold.
      • Control : Move and hold the stick.
      • To release the button/screen/stick, send any other command, or send the release command from each type.
  • Delay: Do nothing during a certain time set by using the Option field, units are milliseconds.
  • Loop: This command will add two instructions to the list and everything that is between both of them will be repeated a set amount of times. Also, in order to have nested loops, all loop blocks have an ID number which is used to keep track of them. The amount of times the actions will be repeated is set by the Loops field, and the ID number is set by the Option field. The program is smart enough to check if you have another loop with the same ID.

You can also arrange the instructions by using the following commands:

  • Any new instruction will be added at the end of the list, except if you've selected an action from the list (blue highlight), in that case the new command will be inserted below the selected one.
  • To move an action, select it and use the Move Up and Move Down buttons.
  • To delete one action from the list, select it and press the Remove button.
  • To delete all actions from the list, click on the Clear All button.
  • To save the current script, press the Save Script button, the default location is in a folder called "Scripts" located in the same directory as the application.
  • To load a previously made script, use the Load Script button.

Notes

  • Timing is not very accurate, so don't use it for time-sensitive applications (fishing, for example).
  • Commands can be lost if they're sent in quick succession.
  • If you remove the start or end instructions of a loop block, it can cause unexpected behavior. Always create or delete them in pairs.
  • If the program can't find the start or the end instruction of a loop block, it will terminate the script.
  • If you are unsure if a loop block is complete or can't find one of its instructions, try to create a new loop using the same ID, the program will search them for you.
  • Scripts are saved using the .pkscript format, which is just a comma separate series of values.