Security:
The script is made for a singleplayer game with no multiplayer aspects, If you use this script only for single player mode apparently there is no rule that prohibits its use.
In its current game version (v1.2.0.0), I miss keyboard shortcut to attack with all the cards and put the card of the hand on combat slot, this script exists for that while something like that is not put in the game:
Video demo (script): https://youtu.be/HWsbEnRiCos
The Script:
In the case of virus accusation made by your antivirus, it can be a false positive, at least my scripts I think they are clean.
False-Positives on Anti-Virus Companies: https://www.autohotkey.com/boards/viewtopic.php?f=17&t=62266
The script does not modify the game, this only will virtually move and click the mouse cursor for you, You need to install Auto Hot Key for the script to work: https://www.autohotkey.com/, with this installed just activate the script normally with double click and etc., the script usually stays in your "tray icons" when activated waiting for your commands, is programmed to work only within the game but if you find any problem with it working outside the game just close it with F10 or right click on the tray icon.
***Game v1.2.6.0, note***
A command was added to attack with all cards holding the "W" button on original game, my script apparently currently can be useful to put the hand card in the combat slot with keyboard and sell too many cards while the player does something else, to avoid conflicts between the "W" command of the game and the "W" command of the script can for example change the "W" of the script to another button and simply not use the script for this.
The three customization areas near the beginning of the script can be modified by the user, just open the script with a text editor like "notepad" and modify it as suggested inside the script.
The first customization part of script is for your button preferences, this is like this =
;-----------------------------------------------------------------------
;CUSTOMIZATION AREA 1
;Buttons for using the script, battle commands.
;You can change the button after "=" below in all these 9 commands (not the last three):
Take_2_Berry_cards = q
Take_1_pokemon_card = e
Attack_with_all_cards = w
;***All five commands below, just place the cursor on the card in your hand and use the slot number button***
Place_card_from_hand_in_slot_1 = 1
Place_card_from_hand_in_slot_2 = 2
Place_card_from_hand_in_slot_3 = 3
Place_card_from_hand_in_slot_4 = 4
Place_card_from_hand_in_slot_5 = 5
;Buttons for using the script, menu commands.
;Command below, simply put the cursor on the first card from the left in the inventory and use that
;command, the operation is stopped when using the command again or interrupting with a right click.
;Useful command in case the player wants to leave the script selling all the cards while the player
;does something else.
;You can change the button after "=" below:
sell_all_cards = p
;***Below, it's just a reminder because these battle command is already on original game***
;Take 1 berry card = a
;Take 1 pokemon card = d
;End your turn = Space
;-----------------------------------------------------------------------
The second customization area needs to be modified only if the script doesn't work as it should, in case your screen resolution is not the same as mine(1366x768), I'm in doubt in this case, the main function of this script is to click on the parts of the screen for the user, this customization area is what tells where the script should click, if you need modify this part, you'll simply need to use this other script:
With this other script working, use the "=" button on your keyboard inside the game's battle screen with the cursor on the target/parts and collect the necessary coordinates from these 7 parts on the image, collect the coordinate of one part and insert it into the main script customization area 2 on the correct place, then proceed like this with the others parts:
Identifier image =
Identifier.png (94.72 KiB) Viewed 1347 times
The third customization area is for script execution speed, more details and instructions within the script.
Conclusion, after using the script for a few minutes I was as fast as the AI adversary and best of all: without straining my mouse hand : )
When the script is working fine it can still click in the wrong place on rare cases for me, but on conclusion, the script serves its purpose.
Below are the two scripts textualized shared in this topic:
Pocket Crystal League - Keyboard shortcuts on battle - v1.2=
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent ; Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered).
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Singleinstance, ignore
;----------------------------------------------------------------------------------------------------------
;CUSTOMIZATION AREA 1
;Buttons for using the script, battle commands.
;You can change the button after "=" below in all these 9 commands (not the last three):
Take_2_Berry_cards = q
Take_1_pokemon_card = e
Attack_with_all_cards = w
;***All five commands below, just place the cursor on the card in your hand and use the slot number button***
Place_card_from_hand_in_slot_1 = 1
Place_card_from_hand_in_slot_2 = 2
Place_card_from_hand_in_slot_3 = 3
Place_card_from_hand_in_slot_4 = 4
Place_card_from_hand_in_slot_5 = 5
;Buttons for using the script, menu commands.
;Command below, simply put the cursor on the first card from the left in the inventory and use that
;command, the operation is stopped when using the command again or interrupting with a right click.
;Useful command in case the player wants to leave the script selling all the cards while the player
;does something else.
;You can change the button after "=" below:
sell_all_cards = p
;***Below, it's just a reminder because these battle command is already on original game***
;Take 1 berry card = a
;Take 1 pokemon card = d
;End your turn = Space
;----------------------------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------------------------
;CUSTOMIZATION AREA 2
;Screen location coordinates for the script to work, only change it if the script is not clicking
;like it should, more details and instructions on the script distribution topic.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
var_x = 0
var_y = 0
SetTimer, Button_Pressed, 1
return
Button_Pressed:
GetKeyState, state, =
if state = D
{
MouseGetPos, var_x, var_y
VarTemp = %var_x%, %var_y%
Clipboard = %VarTemp%
msgbox, X %var_x%, Y %var_y% to Clipboard
}
else
{
28/05/2022, v1.2:
*New command: sell all cards
(useful in case the player leave the script selling the cards while the player does something else outside the game/computer, more details and instructions within the script,
customization area 1)
(in addition to what is inside the script another example of use is to put the cards you want to keep on the left side with auto sort of the game and use the command
on the first card to sell after the ones you want to keep from left to right)
My shared scripts
An "High-Effort" and not so useful script that I took advantage while building to know some parts of "AutoHotkey": File Commander