• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
SOS Battles [DBK Add-On] [v21.1]

Resource SOS Battles [DBK Add-On] [v21.1] v1.1.1

I've gone through the tutorials for these plugins and I'm still having a hard time understanding it. Where do I put the pbaddTrainer script at? I've put it in the conditional branch, after the conditional branch, etc, but still get errors after the battle. All errors have been different, but involve the pbaddTrainer script. I've got it typed out correctly, however, where I'm supposed to put it has me baffled. Any help appreciated. Thanks.
 
I've gone through the tutorials for these plugins and I'm still having a hard time understanding it. Where do I put the pbaddTrainer script at? I've put it in the conditional branch, after the conditional branch, etc, but still get errors after the battle. All errors have been different, but involve the pbaddTrainer script. I've got it typed out correctly, however, where I'm supposed to put it has me baffled. Any help appreciated. Thanks.
Its part of DBK's midbattle scripting. Its not something you call. You have to configure a scripted battle that uses it.
 
Its part of DBK's midbattle scripting. Its not something you call. You have to configure a scripted battle that uses it.
Ok, I've gotten a little bit of the midbattleScript figured out; just playing with the array to get it right (I've only been using Essentials/RMXP since April and new to this overall). Do I still need the original trainer's Conditional Branch for the battle or is that not needed with the setBattleIntroText where it would say "You are challenged by..."? If it is needed, do I still leave everything above the original trainer's Conditional Branch because they're under the "SetBattleRule" script?
 
Ok, I've gotten a little bit of the midbattleScript figured out; just playing with the array to get it right (I've only been using Essentials/RMXP since April and new to this overall). Do I still need the original trainer's Conditional Branch for the battle or is that not needed with the setBattleIntroText where it would say "You are challenged by..."? If it is needed, do I still leave everything above the original trainer's Conditional Branch because they're under the "SetBattleRule" script?
You still need the trainer battle call. Which in your case, sounds like it will be in the conditional branch. All of the setBattleRule calls are put above the battle call.
 
You still need the trainer battle call. Which in your case, sounds like it will be in the conditional branch. All of the setBattleRule calls are put above the battle call.
Ok.

For some reason, I keep getting this error regardless of how I modify it.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 3 (coords 36,4), map 111 (Silph Co. Floor 2)
Exception: SyntaxError
Message: (eval):2: syntax error, unexpected ',', expecting end-of-input
...tBattleRule("midbattleScript"),
... ^


***Full script:
setBattleRule("midbattleScript")
setBattleRule("midbattleScript"),
"addTrainer" [
{pbAddNewTrainer(TEAMROCKET_F,
Grunt, 8)}
]
setBattleRule("2v3")
 
Ok.

For some reason, I keep getting this error regardless of how I modify it.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 3 (coords 36,4), map 111 (Silph Co. Floor 2)
Exception: SyntaxError
Message: (eval):2: syntax error, unexpected ',', expecting end-of-input
...tBattleRule("midbattleScript"),
... ^


***Full script:
setBattleRule("midbattleScript")
setBattleRule("midbattleScript"),
"addTrainer" [
{pbAddNewTrainer(TEAMROCKET_F,
Grunt, 8)}
]
setBattleRule("2v3")
Because that isnt how its formatted at all. Based on what you wrote here, you seem pretty confused. Id suggest reading through the midbattle scripting guide and playing around with the examples first. Youre trying to run before you can walk. Forget about adding trainers for now. Come back to that once you understand midbattle scripting.
 
Because that isnt how its formatted at all. Based on what you wrote here, you seem pretty confused. Id suggest reading through the midbattle scripting guide and playing around with the examples first. Youre trying to run before you can walk. Forget about adding trainers for now. Come back to that once you understand midbattle scripting.

I was having a hard time understanding it when I was reading, so I was using the scripts in the totem section and slightly modifiying them. The first midbattleScript had more details after it in my original.

setBattleRule("midbattleScript"), = [
{(The other Grunts should be arriving at any moment...)}
]

With the equal sign, without the equal sign, I still get that same error. Do I not use the totem example? Reason is because it seems to be the easiest for me to understand since I can see the array, but still not sure.

EDIT: I've been reading through the tutorial on and off throughout the day, but I'm not grasping it.
 
I was having a hard time understanding it when I was reading, so I was using the scripts in the totem section and slightly modifiying them. The first midbattleScript had more details after it in my original.

setBattleRule("midbattleScript"), = [
{(The other Grunts should be arriving at any moment...)}
]

With the equal sign, without the equal sign, I still get that same error. Do I not use the totem example? Reason is because it seems to be the easiest for me to understand since I can see the array, but still not sure.
I dont really know what youre looking at, because none of the examples in the guide are formatted like that. Tbh, it kinda just looks like youre throwing random symbols together and hoping they do something.
 
I dont really know what youre looking at, because none of the examples in the guide are formatted like that. Tbh, it kinda just looks like youre throwing random symbols together and hoping they do something.

The first example in the totem battle, I copied it exactly how it was formatted, but changed the words to say challenged by Rocket Grunt. Got lost from there.

EDIT: the only example that I saw was the totem section. Mid battle script section/SOS doesn't have any examples that I can understand; I just see commands to enter for them.
 
Last edited:
The first example in the totem battle, I copied it exactly how it was formatted, but changed the words to say challenged by Rocket Grunt. Got lost from there.

EDIT: the only example that I saw was the totem section. Mid battle script section/SOS doesn't have any examples that I can understand; I just see commands to enter for them.
The totem battle isnt a midbattle script. There isnt anything there that would help you in writing one.

I feel like all youre looking at is the SOS Battles guide. You need to go all the way back to the DBK guide itself and look through the entire guide for Midbattle scripting itself. There's over 30 pages of content devoted to JUST midbattle scripting, plus an entire section of the guide specifically labeled "Example Battles." You dont necessarily need to read every single page, but you seem completely unfamiliar with midbattle scripting in its entirety, so you should at least catch up on the gist of it.
 
The totem battle isnt a midbattle script. There isnt anything there that would help you in writing one.

I feel like all youre looking at is the SOS Battles guide. You need to go all the way back to the DBK guide itself and look through the entire guide for Midbattle scripting itself. There's over 30 pages of content devoted to JUST midbattle scripting, plus an entire section of the guide specifically labeled "Example Battles." You dont necessarily need to read every single page, but you seem completely unfamiliar with midbattle scripting in its entirety, so you should at least catch up on the gist of it.

I must be missing something because I've gone through the midbattle script section with the SOS as well. I've gone through it on my laptop and phone, but failed to find any examples. I just see the gifs on screen and the pages I've gone through don't relate to what I'm doing. I'll take a look at it again tomorrow.
 
I must be missing something because I've gone through the midbattle script section with the SOS as well. I've gone through it on my laptop and phone, but failed to find any examples. I just see the gifs on screen and the pages I've gone through don't relate to what I'm doing. I'll take a look at it again tomorrow.
Like I said, I feel like ALL youre looking at is the SOS plugin guide. This plugin is an add-on to the DBK plugin, which means that it assumes you are already familiar with and fully read the DBK guide itself.

The DBK guide is like 70 pages long, more than half of which is just dedicated to midbattle scripting alone. If you've looked through none of this, then there's no question as to why youre confused.
 
Like I said, I feel like ALL youre looking at is the SOS plugin guide. This plugin is an add-on to the DBK plugin, which means that it assumes you are already familiar with and fully read the DBK guide itself.

The DBK guide is like 70 pages long, more than half of which is just dedicated to midbattle scripting alone. If you've looked through none of this, then there's no question as to why youre confused.

I found the pages with the midbattle scripting, triggers and the like. Still confused. That example with the gym leader and her asking questions isn't helping. I got the setBattleRule("midbattleScript", and the script afterwards figured out, but I'm getting errors except they are appearing in the addTrainer section of the script. It keeps telling me unexpected comma after TEAMROCKET_F, "Grunt", 8. It has a problem with me adding in ( ) when I put it as (TEAMROCKET_F, "Grunt", 8) and tells me to put it on the previous line, but when I do that, I get other errors.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 3 (coords 36,4), map 111 (Silph Co. Floor 2)
Exception: SyntaxError
Message: (eval):3: syntax error, unexpected (, expecting ')'
(addTrainer) => TEAMROCKET_F,
^
(eval):5: syntax error, unexpected ')', expecting end-of-input
***Line ' (addTrainer) => TEAMROCKET_F,' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.

***Full script:
setBattleRule("midbattleScript" ,
"RoundStartCommand"
(addTrainer) => TEAMROCKET_F,
Grunt, 8
)
setBattleRule("2v3")
 
I found the pages with the midbattle scripting, triggers and the like. Still confused. That example with the gym leader and her asking questions isn't helping. I got the setBattleRule("midbattleScript", and the script afterwards figured out, but I'm getting errors except they are appearing in the addTrainer section of the script. It keeps telling me unexpected comma after TEAMROCKET_F, "Grunt", 8. It has a problem with me adding in ( ) when I put it as (TEAMROCKET_F, "Grunt", 8) and tells me to put it on the previous line, but when I do that, I get other errors.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 3 (coords 36,4), map 111 (Silph Co. Floor 2)
Exception: SyntaxError
Message: (eval):3: syntax error, unexpected (, expecting ')'
(addTrainer) => TEAMROCKET_F,
^
(eval):5: syntax error, unexpected ')', expecting end-of-input
***Line ' (addTrainer) => TEAMROCKET_F,' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.

***Full script:
setBattleRule("midbattleScript" ,
"RoundStartCommand"
(addTrainer) => TEAMROCKET_F,
Grunt, 8
)
setBattleRule("2v3")
That isnt the correct format. Idk where youre getting this format from, it just feels like youre throwing in random combinations of symbols. But I suppose you're a little closer than what you had yesterday.

I feel like youre rushing things out of impatience. You do not seem to understand the midbattle scripts at all yet, based on what you have here. Theres like a dozen examples - both in the guide, and within the plugin itself - that you can literally copy/paste and plug in and mess around with to slowly wrap your head around it.

Do you even know the basic terminology yet? Like, do you know what a hash is, what key/value pairs are, what a string is, what an array is, etc? If you knew the basic definitions at least, youd be able to look at what you have and see why it wouldnt work. Because the guide very clearly lays out the anatomy of these scripts, and what each part should be.

To clarify, a midbattle script is supposed to be a hash, with each key in that hash being a string that corresponds to WHEN it should trigger (aka Trigger Keys). Each value assigned to those keys are themselves a new hash, which contain more string keys that are set to command values (aka, Command Keys).

For the "addTrainer" command key specifically, its value must be set to an array which contains the trainer type symbol ID, and the name of the specific trainer as a string (with an optional integer as a third element to set the trainer version). All of this is covered in the guide.
 
That isnt the correct format. Idk where youre getting this format from, it just feels like youre throwing in random combinations of symbols. But I suppose you're a little closer than what you had yesterday.

I feel like youre rushing things out of impatience. You do not seem to understand the midbattle scripts at all yet, based on what you have here. Theres like a dozen examples - both in the guide, and within the plugin itself - that you can literally copy/paste and plug in and mess around with to slowly wrap your head around it.

Do you even know the basic terminology yet? Like, do you know what a hash is, what key/value pairs are, what a string is, what an array is, etc? If you knew the basic definitions at least, youd be able to look at what you have and see why it wouldnt work. Because the guide very clearly lays out the anatomy of these scripts, and what each part should be.

To clarify, a midbattle script is supposed to be a hash, with each key in that hash being a string that corresponds to WHEN it should trigger (aka Trigger Keys). Each value assigned to those keys are themselves a new hash, which contain more string keys that are set to command values (aka, Command Keys).

For the "addTrainer" command key specifically, its value must be set to an array which contains the trainer type symbol ID, and the name of the specific trainer as a string (with an optional integer as a third element to set the trainer version). All of this is covered in the guide.

I understand them a little bit. I've been using VSC to help me. Looking through the Trigger commands, I'm not understanding anything as it all seems to be related to Mega Evolution and wild battles and other stuff that doesn't seem to apply. I don't know what I'm overlooking because I've gone through those other pages and the midbattle pages many times. I've looked through the plugin stuff and I still don't get it. It seems like a lot of extra stuff like I'm making the battle do certain things (ie make them use a certain move). Maybe this plugin is over my head. I've been able to implement others including some of your other plugins with success, but this one just doesn't click. I'm just trying to make a "raid" style battle where several trainers battle the player in a row; all coming in one after the other without having to go to the overworld screen, but I might just have to do it the old fashioned way. Thanks for the help though, I appreciate it.
 
I understand them a little bit. I've been using VSC to help me. Looking through the Trigger commands, I'm not understanding anything as it all seems to be related to Mega Evolution and wild battles and other stuff that doesn't seem to apply. I don't know what I'm overlooking because I've gone through those other pages and the midbattle pages many times. I've looked through the plugin stuff and I still don't get it. It seems like a lot of extra stuff like I'm making the battle do certain things (ie make them use a certain move). Maybe this plugin is over my head. I've been able to implement others including some of your other plugins with success, but this one just doesn't click. I'm just trying to make a "raid" style battle where several trainers battle the player in a row; all coming in one after the other without having to go to the overworld screen, but I might just have to do it the old fashioned way. Thanks for the help though, I appreciate it.
Yes, but im saying to use the examples to get accustomed to the formatting of the scripts, because that's what you seem the most lost on. Im aware that they arent going to be relevant to what you want to do specifically, but to do what you want specifically, you need to first understand how midbattle scripts are formatted and what theyre supposed to look like.

Thats why I say just copy/paste an existing example (or one of the examples that come packaged in the plugin by default), and mess around with what they do and see how it works in action. THEN once it makes more sense, you can come back and plug in the specific commands you want to use for your purposes.
 
Yes, but im saying to use the examples to get accustomed to the formatting of the scripts, because that's what you seem the most lost on. Im aware that they arent going to be relevant to what you want to do specifically, but to do what you want specifically, you need to first understand how midbattle scripts are formatted and what theyre supposed to look like.

Thats why I say just copy/paste an existing example (or one of the examples that come packaged in the plugin by default), and mess around with what they do and see how it works in action. THEN once it makes more sense, you can come back and plug in the specific commands you want to use for your purposes.

I tried to copy and paste, still don't get what to do. ID battler, I kinda get, but all the other stuff is just too complex and I can't fit it all in my script box thing. I just deleted the plugin and just going to do it the old fashioned way. It's got me way too stressed and I'm supposed to be having fun with this. It's literally got me to the point of just wanting to scrapping my whole project, but I don't want to do that.
 
Recently I decided to download the SOS Battlers plugin for a game I'm working on, but after I extracted the files to my game folder, the game almost instantly closes when I try to boot it up in debug mode and when I boot the game normally. The command prompt that pops up when in debug mode seems to have some error code appear, but the command prompt closes too quickly to read the error code or take a screenshot.

I currently have the most recent version of Pokemon Essentials and the Deluxe Battle Kit installed. Does anyone have any idea what is going on or how to fix this?
 
Recently I decided to download the SOS Battlers plugin for a game I'm working on, but after I extracted the files to my game folder, the game almost instantly closes when I try to boot it up in debug mode and when I boot the game normally. The command prompt that pops up when in debug mode seems to have some error code appear, but the command prompt closes too quickly to read the error code or take a screenshot.

I currently have the most recent version of Pokemon Essentials and the Deluxe Battle Kit installed. Does anyone have any idea what is going on or how to fix this?
Try recompiling
 
Back
Top