Using Rematch + Pet Battle Scripts

This guide explains how to use Pet Battle Scripts together with Rematch

If you want to learn how to write TD Scripts you can click this link with instructions for it: Writing Pet Battle Scripts.

1. Required AddOns

Pet Battle Scripts

Also you'll need a source from which you can get strings and scripts prompt and easy.
Fortunately this site is just the right one for that task.
Every strategy automatically offers a Rematch String and those that are marked with the respective Tag also provide a Script.
Hint: when a strategy doesn't include a script on its own there is a good chance somebody in the comments is sharing one.

2. Importing Rematch Strings

1. Open the Pet Journal ingame. On the right edge you'll see one or multiple tabs (which you can edit). Now right click on the tab in that you want to import a certain team.
2. Now left click on "Import Teams".
3. A window will open in which you can insert a Rematch String.

3. Obtaining a Rematch String from Xu-Fu

1. Go to the desired strategy on http://wow-petguide.com/.
2. Now left click on the button "Rematch String".
3. Act as described above and then import the already saved string in the open window.
4. Click "Save".

4. Importing Pet Battle Scripts

1. Right click on the saved team ingame.
2. Left click on "Write script".
3. A window opens to either write or insert a script.

5. Obtaining scripts from Xu-Fu

1. Go to the desired strategy on http://wow-petguide.com/.
2. Now left click on the button "Script".
3. Act as described above and then import the already saved script in the open window.
4. Click "Save".

That's it!

When you face the corresponding encounter Rematch will now automatically (depending on your settings) load the right team and will also enable you to press just one button (by default A) to play every turn.


wrote on 2022-12-01 14:51:40

I have Pet Battle scrips and rematch and still cant get my auto key to work


wrote on 2022-12-01 22:25:24

same. even reinstalled everything


wrote on 2022-12-04 09:28:40

Same here, still not working. Any fixes soon?


wrote on 2022-12-07 18:55:18

td scripts is out of date and we waiting on author to update it till then we need to manual do battles


wrote on 2022-12-09 16:00:18

not work for me too... importing team, ok! but importing battle script not =(


wrote on 2022-12-10 16:42:46

rematch updated yesterday fyi


wrote on 2022-12-16 15:55:58

Pet Battle Scripts keybind stays greyed out even when I change it to another key in options. Rematch is updated to the latest version.


wrote on 2022-12-16 22:44:58

same for me


wrote on 2022-12-19 18:29:46

Checking in to see if there is a work around for getting the Auto button to work?


wrote on 2022-12-20 19:01:12

I have been using Pet Battle Scripts without any issues since switching from the abandoned tdBattlePetScript addon. I am not sure what to tell you beyond checking that there is no addon interference causing PBS / Rematch to not function as intended.


wrote on 2022-12-23 16:39:50

The Auto button doesn't work even when Pet Battle Scripts and Rematch are the only addons enabled.


wrote on 2023-01-28 20:02:48

still not working


wrote on 2023-02-04 01:40:37

Works for me. I have rematch and Pet Battle Scripts addons.


wrote on 2023-02-06 18:20:38

We are talking about Auto button. If the Auto button is working for you could you please post the addon versions you are using. Everyone posting here is not saying that Rematch and Pet Battle script are not working, we are saying the AUTO BUTTON does not work. Rematch is fine and the script displays fine so we can do it manually. The issue is the AUTO BUTTON not working. (edited)


wrote on 2023-02-06 23:14:23

I have v1.5 for PBS and v4.14.13 for Rematch, if that helps any. (I'm the one not experiencing the issue.) (edited)


wrote on 2023-02-07 08:45:52

Mine was v4.14.13 and v1.5 as well. Assume that you still need to press a key to push the "auto" button instead of let the addon play everything for you, correct?


wrote on 2023-04-25 07:08:05

I see this topic has not been updated in months but for anyone having this issue...
The addons alone do not make the auto button work. You must create a team and then add the script to that team. Then load the team when you do the fight and then it should work. You have to pick a team that you have the pets for as well so you may have to collect and level up many pets to have options for every battle.
There is more info on this site about building teams and adding the scripts for each specific pet battle and it helps a lot if you log into your battle.net account and it sees your pets and it can suggest the best for you.


wrote on 2023-05-06 00:38:40

I'm aware of how it works, It used to work for me and now it does not since Dragonflight. I have teams imported for every expansion and have been using rematch and battle scripts for years. There must be a conflict with another addon because no matter what I do, the auto button will not work. I have just been doing the fights by hand.


wrote on 2023-06-07 01:17:31

Be sure to remove the old "tdBattlePetScript_Rematch" addon folder, as the new "Pet Battle Scripts" addon uses only the tdBattlePetScript folder.

I noticed a few months ago that if you attempt to just install the new addon over the old one, the old code in the "tdBattlePetScript_Rematch" folder will remain and you'll end up with strange conflicts. I don't know if the old Rematch showed up as a separate addon that can be disabled, so I'd say it'd be best to remove it to be sure it doesn't load.


wrote on 2023-01-04 13:13:18

I am now getting this error on any TD script import: "Found error: Invalid Condition: 'self(#2).active' (Not found cmd 'self.active')

Seems it was reported, but I've found no help in getting it fixed. Can anyone point me in a direction? TIA



wrote on 2023-01-12 20:57:59

TDBattlePetScript and TDBattlePetScript Rematch were abbandoned, so another person created a fork for 10.0 that replaced them Check "Pet Battle Scripts" addon:



wrote on 2023-01-06 00:33:54

Same I have an error in the script I can't make them work


wrote on 2023-01-12 09:30:13

I had the same error. Go to Curseforge, search for Pet Battle scripts. it will tell you how to fix this


wrote on 2022-12-28 14:47:58

Does the Auto button happen to work with the new Press and Hold casting? I doubt it, as it doesn't work with macros, but figured I would double check! TIA (edit: wording) (edited)


wrote on 2022-12-12 22:05:26

with the tdbattlescript and battlescript rematch not being updated, is there any other options ?


wrote on 2022-12-09 23:18:45

Rematch is sometimes conflicts with heartstones and has to be turned off


wrote on 2022-05-27 00:24:42

how do you change the A for auto key to a different key?


wrote on 2022-05-27 15:10:04

Someone already answered you on the Discord, but in case anyone else is wondering:

Hit Escape > Interface > Addons tab > tdPetBattleScript > General tab. The keybind option is near the bottom.


wrote on 2022-11-12 19:31:11

The System and Interface buttons have since been combined into a single button, Options. The rest of the instructions are unchanged.

Texman wrote on 2022-10-26 20:00:46

Looks like v10 pre patch has broken these addons. Any idea if they will be updated?


wrote on 2022-10-27 22:08:50

Yes they will, see this comment on main page https://www.wow-petguide.com/Comment/111524


wrote on 2022-11-12 12:06:04

It looks like a fork exists since the original two haven't been updated in 2 years



wrote on 2022-09-10 04:48:27

To those who are trying to transfer all of your tdscripts from one computer to another, here is the way that worked 100% for me. We will reference Computer A as the computer with the scripts and Computer B as the computer we're trying to transfer the scripts to. I would like to mention that simply copying the tdBattlePetScript, tdBattlePetScript_Rematch and Rematch folders from your WoW/_retail_/Interface/AddOns folder from Computer A to Computer B does not always work. Try it and if it works for you, then congratulations! If not, continue reading.

Assuming your UI is the stock UI from the Rematch addon, open WoW and when you are in game, press the SHIFT + P buttons to open your Pet Journal. On the right-hand side of your teams should be the icons for each of your teams (there will be the teams that show the three pets within the team and we’re looking just to the right of that – the team tabs on the far right of the pet journal). Right-click the tab and an options menu will come up – it should give options like “Edit Tab, Custom Sort, Sort By Wins, Leveling Preferences, etc.” Left-click the “Export Tab” option, which will bring up the string that you’ll use later on to import everything into Computer B.

Open a Word or notepad document, copy (CTRL + C) the string in game and paste (CTRL + V) to the document (CTRL + V). Save that document to a thumb drive or SD card - I labeled mine “Pet Strings” to make it easy on myself. You’re done with Computer A. On Computer B, insert your thumb drive or SD card, and open the document with your string. Copy (CTRL + C) the entire string. With WoW open and being in game, press the SHIFT + P buttons to open your Pet Journal. On the right-hand side of your teams (which should be empty), there will be a “+” tab. Click it. Choose your icon and name for the tab (at this point it doesn’t matter – we’ll get into naming it later,” then click “Save.” On the tab you just created, right-click the tab and select the “Import Teams” option, then paste (CTRL + V) your string, then click “Save.” Almost done! Lastly, we want to change the name of the tab, so right-click the same tab once again, and click “Edit Tab,” then name it whatever you like, then click “Save.”

You’re done! You can do this method with all teams you may have saved.

Now for the kicker - if you had written any scripts for any of your teams, unfortunately those do not transfer over and will need to either be manually written again or you can simply find the the appropriate script needed here on Xu-Fu's Pet Battle Strategies.

I hope this helps everyone! I love you all.
(if you're interested in helping me out, toss me a follow on instagram - vinnieparma. Thanks guys!) (edited)

Unsainted wrote on 2020-10-25 19:11:33

I have around 100+ teams/scripts on my laptop, is there a way to transfer them all at once to my desktop?


wrote on 2020-11-04 10:29:12

Copy the tdBattlePetScript, tdBattlePetScript_Rematch and Rematch folders from your WoW/_retail_/Interface/AddOns folder from the laptop to your desktop. Make sure WoW is not running when you do this.

File path may vary depending on OS and if you've logged into more than one WoW/Blizz account on that machine. (edited)


wrote on 2021-01-28 21:42:15

Has not worked for me, unfortunately.
I've transfered both Interface and WTF folders to a new computer. I've got Rematch teams ok, [-- but no corresponding tsBS scripts (Auto is greyed out). :) --]

Strike that: most of the scripts copied ok. Some did not, but I may not have them in the 1st place ;)

Too bad: I have 5 dungeons scripts to re-create ;( (edited)


wrote on 2022-08-12 08:38:35

Bit of a necro post, but don't forget to copy over your saved variables.


wrote on 2022-03-26 18:38:10

Scrips dont work


wrote on 2022-02-03 22:17:14

First I would like to say where has this been!? Everyone should know about this!

Thank you for your recommend pet battle addons and this page for the steps. I love how easy this has made pet battling trainers. <3


wrote on 2021-11-22 01:14:40

Hi... i cant copy anything with Ctrl + V
I have the script copied, but then when i hit, Ctrl + V nothing is pasted


wrote on 2021-10-12 13:03:49

Any word if someone is going to pick up tdBattlePetScript and tdBattlePetScript Rematch and update it to 9.1.0? It's like a year since it's been updated


wrote on 2021-09-11 13:01:12

I'm new to this, and having trouble importing the match string. When I paste it into the Import Team Window, I get the following message "String could not be loaded. Make sure your browser has JavaScript active, use a different browser or try again later."
I googled and didn't find much help. I have JavaScript active on my computer. Any help would be greatly appreciated.


wrote on 2021-05-02 07:51:23

I followed all the steps in this guide, but when ever I press my button to run the script whilst in battle it does nothing. Does anybody know how to fix this??

Fuhenhenka wrote on 2021-07-11 15:00:34

Is it possible you didn't import both strings? (Rematch String AND TD Script String, both on the same page at wow-petguide.com.) I accidentally only imported the Rematch String and the "Auto" button was greyed out, my big clue that I dun goof'd

New Comment: