^

TD Battle Pet Script


Subscribe via RSS
TD Battle Pet Script

2017-05-28 06:45:19
PAGE UPDATE - BY ARANESH
Today I would like to introduce a small but powerful new addition to Xu-Fu's guides: Scripts for TD BattlePetScript.

A little introduction first: tdBattlePetScript is a fantastic addon created by ldz5 for speeding up PVE pet battles, and removing the element of human error from repetitive battles.
With it you can create scripts for specific pet battle teams, which will allow you to run the fight by pressing a single hotkey each round. These scripts can be as simple as directing a pet to use a certain attack each round, or as complex as choosing which ability to use with which pet, based on a number of conditions a battler might face.

Getting Started
The first thing you’ll need to do is download the addon. There are two versions, a standalone and one that integrates into Rematch (tdBattlePetScript Rematch), which is highly recommended!

Once installed, open your pet journal and select a pre-made team. Right-click on the team name in the Teams list, and select “Write Script” this will open the script editor.
On every strategy page here where a script is provided, you will see the TD Script button in the battle table header as shown in the screenshot. Click the button, then copy the script into your addon, and get ready to battle!

In Battle
Once you’ve started a battle with the intended target of the script, left-click the V icon at the top of the pet battle screen. This will open the script selector. Here, select “Rematch” and it will load the script you’ve saved for this team.
Now, all you have to do is press your “Auto” hotkey (A by default) each round to run your script. As a special note, this addon does not automate the fights! You must press the button each round you wish your pet to take action.

A huge thanks to SimianRex who spent a lot of time creating the scripts and adding them to the respective fight here!

Give it a try and if you run into any issues, we're happy to help :-)







Kheldar wrote on 2022-11-17 22:01:21

Is anyone noticing/getting 'found error: Invalid condition' error from scripts?

Mate wrote on 2022-11-28 11:08:54

Yes! All my scipts doesn´t work anymore... what happend?

Gráinne

wrote on 2022-11-28 19:28:35

tdScrips is abandoned. See all about the replacement at

Link

Manceroy wrote on 2021-04-06 01:22:37

Hi, I just installed both addons and TD script keeps saying the Rematch is not installed thus I cant choose it as my Script selector. The Rematch addon is working perfecly though! Any solutions?

Shenk

wrote on 2021-04-06 05:25:54

you need in total 3 addons for it: Rematch; tdBattlePetScript and tdBattlePetScript Rematch
the latter one makes the other two addons work together

Manceroy wrote on 2021-04-06 11:08:42

Thank you for the fast answer! I did some digging and apparently the addon that connects the other 2 has been broken since the SL pre-patch, even the curseforge link is broken and it cannot be downloaded currently, it automatically redirects to the regular tdpetscript, I tried a fix I found worked for some people but it didn't for me, I guess 9.0.5 broke it again :(

Shenk

wrote on 2021-04-06 11:29:31

i just went over to curseforge and the download worked for me
Link

Manceroy wrote on 2021-04-06 12:31:18

Your link worked flawlessly! No idea why I couldn't enter before, thanks a ton, you're an angel! This addon is amazing

Shenk

wrote on 2021-04-06 12:40:52

you are welcome

Shenk

wrote on 2021-04-06 12:44:43

now that i think about it i'm amazed you actually found this article considering it's from 2017. at least it gave me a reason to edit the links in it lol

Manceroy wrote on 2021-04-06 13:49:46

Haha and Im so glad I did, the strats on this page are spectacular and perfectly explained, I was tired of failing the Wailing Caverns last boss following Wowhead comments lol

Fearanloathing wrote on 2017-11-28 02:23:46

This has worked really well for me....but I took a 2 month break from WOW and now every script I try to save to Rematch returns an error "Found error: Invalid action.....
Any suggestions as to what is wrong are welcome

Aranesh

wrote on 2017-11-28 03:46:04

Hi!
I think you will need to update the tdscript addon. There have been a few changes to it and many of the scripts have been updated to use the new formatting. They don't work with older versions anymore.

FearanLoathing wrote on 2017-11-28 08:26:39

I use Curse to keep them updated but, at your suggestion, have reinstalled both.
Current versions are:
Battlepet script: 700300.02
Rematch script: 700300.01
I'll try again after shutdown and let you know
Thanks for the prompt feedback

FearanLoathing wrote on 2017-11-29 02:34:21

Unfortunately it still doesn't work. This is the string I got when copying the Ashlei script.
Ashlei:87124:844:115:647:282:0:0:0:0:0:0:0:0:
This returns an error when input to the script window.
That string is quite different to the original Ashlei script that worked.

Aranesh

wrote on 2017-11-29 03:58:03

Oooooh!
That is the Rematch string. Every strategy has that (it's automatically generated) and you can only use it with the addon Rematch.
TD Script is only available on those strategies where we created one manually, because they cannot be generated by a program. Use the button "TD Script" (third one below Pop Out) when available. That should work!

FearanLoathing wrote on 2017-11-29 05:13:44

Sounds promising...I'll let you know..:))

FearanLoathing wrote on 2017-11-29 10:03:38

I'm an idiot!!
Now you point it out to me I can't believe I didn't see the button before.

Thank you

Aranesh

wrote on 2017-11-29 15:41:56

Haha, no problem at all :) Glad it was so easy to solve!

Druzil wrote on 2017-07-11 09:29:04

Where do we get a los of the numbers for the corresponding auras? cant find anything anywhere.

Aranesh

wrote on 2017-08-17 03:53:25

Hey! I'd suggest checking in the comments field of the addon on curse. I'm not aware of such a list myself, sorry

Kammi wrote on 2017-06-24 13:48:36

Downloading the TD addon for rematch does not work. You need to have both addons it appears. Not sure why.

Zalid wrote on 2017-07-07 16:38:09

The TD Rematch addon does not include the base addon, so you need to download both. Like most addons, eg DBM, there is a core and then additional ones you can choose to download and install. Granted on this occasion, it makes sense to have Rematch installed, so feels more clunky to download two addons.

Thali wrote on 2017-06-27 16:00:21

Can someone explain how this isn't against the terms of service? I'm super concerned that using this (which I love!) will get me banned...

Aranesh

wrote on 2017-06-28 05:01:06

Hey Thali!

It can't. The worst that can happen is Blizzard changing something so the addon doesn't work anymore.

The detailed explanation (and why I'm 100% confident about it) is this - sorry for it being a bit lengthy ^^
TD BPS is written in LUA, the interface that WoW is offering for addon creators. It isn't using any additional code or programming. All information it uses is given through LUA, and all commands it sends are going through LUA as well. That is under the full control of Blizzard, and thus whatever LUA offers, addon creators can use freely.

Sometimes, addon creators become super creative and figure out things that are indeed going too far. For example, once there was an addon that painted the ground with arrows and colors during boss fights, showing you where to position yourself to dodge the boss abilities. That was kind of game-breaking, and Blizzard very quickly removed the LUA commands that made it possible. No player who used it was banned or even contacted about it - because by definition, using LUA, is allowed and perfectly fine.

It would be a completely different story, if the scripts where an external tool and ran automatically. As long as it's an addon, and for every pet ability or command you have to press a button, there's nothing wrong with it :-)

It makes pet battling very trivial, indeed, and personally I'm expecting Blizzard to intervene at some point. But as long as it works, it's cool ^^

Ralthor wrote on 2017-06-05 04:00:35

We have an "and" conditional, but I havent been able to find anything about an "or" conditional. Is there one?

GennPen wrote on 2017-06-05 15:47:35

You can split:
ability(111) [ condition1 ]
ability(111) [ condition2 ]

ability(111) IF condition1 OR condition2

Prudentius wrote on 2017-06-05 20:48:54

There is no or conditional exactly. You'll need to create a new line for an explicit situation that you would want to do such a check. There is a tilda ~ operator that will check multiple conditions for such things as weather, round, etc.
See the Reddit post I linked below.
TIP: The syntax will automatically offer suggestions while you are engaged in the fight. Just make sure you close out any if with and endif so it can parse the script while you step through the script you're writing for the fight.

Hobbyhorse wrote on 2017-06-19 10:50:15

We do not need a or conditional because every line is a or conditional and the script stop when a spell is trigged. (Pass, 1-4, Trap, Forfeit)

Ex:
1: if [enemy(#3).hp < 618]
2: ability(Explode)
3: standby
4: endif
5: ability(#1)
6: change(#2)
7: change(#3)

- If enemy pet 3 has lower healt than 618 do line 2 and 3 before line 4. Line 4 would never been executed.
- If the ability(Explode) is trigged, then the script stop.
- If not the ability(Explode) is trigged, then Past spell is trigged and the script stop.
This is a or conditional.

If enemy pet 3 has 618 or higher health, skip line 3 and 4.
This is a or conditional.

If ability 1 is trigged, stop script. All pets has ability(#1), but the ability 1 can not be trigged if the pet is dead.
If pet 1 is dead, change to pet 2. When pet 2 is dead, change to pet 3.
This is a or conditional.

Deedee wrote on 2017-06-01 09:13:15

OMG this is amaaazing I love it..your site is sooo very wonderful..I would most definitely pay to access it..like its that good! lol thank you so much!

Aranesh

wrote on 2017-06-12 08:28:11

Hey Deedee! Thank you very much :D I am super happy you like it!
And it will stay free of course ^^

GennPen wrote on 2017-06-05 03:34:27

Great addon!
I made a translation into Russian.
Waiting for the update. =)

Prudentius wrote on 2017-06-04 15:14:20

Found this excellent Reddit post with better information english speakers. Found it while searching for the syntax to pass a round.
Link

Prudentius wrote on 2017-06-05 00:26:47

I'll be writing out scripts for what I have between pulls during raid. So far I have about a dozen of my Rematch Notes scripted. The DMF DT Scripts weren't up yet so I posted what I have for those.

Ralthor wrote on 2017-06-03 12:06:40

4 tdscripts missing from the fights that I regularily do. So I wrote them up and posted them to their appropriate threads. Had to guess for some commands and write a kludge when I couldnt guess how to check for a stun.

EDIT: Awesome work on the develpment on this. Kudos! :)

Dohram wrote on 2017-05-29 18:27:41

How do I add TD scripts to fights ?
here is mine for bohdi sunweaver
if [ enemy(#1).active ]
ability(504) [ enemy.round=1 ]
ability(504) [ enemy.round=2 ]
ability(312) [ enemy.round=3 ]
ability(504)
endif
if [ enemy(#2).active ]
change(#2)
ability(453) [ !weather(454) ]
ability(406)
endif
if [ enemy(#3).active ]
change(#3) [ enemy.round=1 ]
change(#2) [ self(#3).active ]
ability(453) [ !weather(454) ]
ability(406)
endif

SimianRex wrote on 2017-05-30 15:02:12

I just checked out your script, and it looks great. Added it to the Teroclaw/Anubisath Idol strat for Bodhi. Thanks!

@patf0rd wrote on 2017-05-30 15:50:50

Some lines can be deleted and next time you post a script please tell us, what team it's for :-)

Dohram wrote on 2017-06-02 20:17:00

Where do you want me to post my scripts? Ill send them to you for editing if you like

New Comment:





































Name:

Link: