• 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!
Resource icon

Resource Mid battle dialogue for v20+ 3.0

Hi, I'm having trouble with the basic in battle text battle commands. I imitated the example and I get this error when the trainer battle is activated. Any help would be appreciated, thank you!

Screenshot 2023-06-03 at 9.58.48 AM.png


For reference this is my trainer event:

Screenshot 2023-06-03 at 9.58.57 AM.png
 
the guide has been corrected with the right quotes, you can now copy paste everything without error. My apologies!
 
BattleScripting.set("lastOpp","pbBGMPlay("highlight") is error can you give me example how th change bgm script to work??
 

Attachments

  • 1686638554412.png
    1686638554412.png
    19.1 KB · Views: 83
You've got an extra " before pbBGMPlay that shouldn't be there, and you're missing a ) at the end. (Every ( needs to be closed out with a ) )
like this right? BattleScripting.set("lastOpp0",pbBGMPlay("last")) i did use thescript and no error anymore but no bgm were changed at all on battle instead after battle finished the bgm get changed.... where did i go wrong this time ?
 
Last edited:
Screenshot 2023-08-17 at 1.03.46 AM.png


Hi when I use the move yawn while playtesting I get this bug. The game doesn't crash and I can select yawn, but when the two turns end and the opposing Pokemon should fall asleep I get this error message.
 
I copied essentials code for this one so I copied the mistake. I updated the code. Thanks for the report
 
Ok so using the script to give a stat boost how does one give Special Attack or Special Defense.. because ive tried several different ways a it keeps popping up an Error
 
Ok so using the script to give a stat boost how does one give Special Attack or Special Defense.. because ive tried several different ways a it keeps popping up an Error
You should have a script like this one in the data file:
1695934420594.png

Then you call the name of the method with the condition like in the example
 
To begin, thank you all so much for working on this. This plugin is going to help make my current project when I get it working.

That being said, I'm using Essentials 20.x and running into an issue where I can't execute any code with this feature but only set strings.

For instance, this work fines
Ruby:
Expand Collapse Copy
 BattleScripting.set("last","does this work")

But if I try...
Ruby:
Expand Collapse Copy
BattleScripting.setInScript("item",:Enrage)
then I get this error and I get it with everything, regardless of whatever function or condition I put in.
errorman.png


Or, if I do this as I've seen other people try...
Ruby:
Expand Collapse Copy
BattleScripting.set("item",pbBGMPlay("Surfing"))
Then this happens...
errorman 2.png




I apologize if this is a dumb question, but I keep getting errors like these, even when I copy everything in the tutorial exactly. Would anyone know what might be causing this?
 
As the error tells you, you should use extendtext.exe. it's in the root folder of your project. it will make the text boxes larger so the code won't be broken by random line breaks
 
Type 3? Like giving a temporary third type to a pokémon. You should probably replicate the forest's curse move effect and see how it is made
 
Yeah in the Effects number 111, there type 3 which is what I assumed to be like forest curse or trick or treat but I can’t seem to get it to work
 
I have no answer for this, other than seeing how it's used by existing moves and adapt it. It's not something I made or used.
 
I'm no expert at this, but I copied and pasted the code for making something happen every turn but the game won't open because of a syntax error?
 

Attachments

  • syntaxerror2.png
    syntaxerror2.png
    19.9 KB · Views: 50
  • SyntaxError.png
    SyntaxError.png
    17.8 KB · Views: 47
Back
Top