• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Add player team from txt (or alternative)

AskipLudo

The Masked Guy
159
Posts
7
Years
  • Hello, I was wondering if there is any possibility to make something easier.

    So instead of something like this:
    (where I add a team to my player for a scripted fight so this x6 where I have to change the given pokemon every time)
    Add player team from txt (or alternative)


    I would like something that will make this easier, like for the trainers.txt where.

    Any help or advice will be grateful.
     
    19
    Posts
    3
    Years
    • Seen Nov 23, 2023
    Maybe you can create a trainer on trainers.txt, and use its party.

    It should look like this:
    Spoiler:
     

    AskipLudo

    The Masked Guy
    159
    Posts
    7
    Years
  • Do I put this in a script?

    And I have to replace something? like tr_type, tr_name and tr_version

    Cause I've tried to do so and got an error

    Spoiler:
     
    19
    Posts
    3
    Years
    • Seen Nov 23, 2023
    You should put it in a script command on an event, so it triggers when you want it to happen.

    I've just checked it, add a colon for your trainer type (:TRAINER_Davis) and add quotation marks to its name ("Davis").
    Also, you don't have to add a version number, because the default is 0.
    Spoiler:


    I hope it's easier for you, as you said - you want it to be like trainers.txt😅
     

    AskipLudo

    The Masked Guy
    159
    Posts
    7
    Years
  • Thanks dude, i love you so much

    EDIT: Well it worked first time and not anymore xD
    I got this error:
    Add player team from txt (or alternative)


    I feel like it's when nake get too long cause with "Davis" name it worked 🤔
     
    Last edited:
    19
    Posts
    3
    Years
    • Seen Nov 23, 2023
    You need the code without line breaks, the problem is probably that the first line became too long and it moved a line down, so it broke the code.
    You can extend your box by the extendtext.exe on the main directory so the code won't break.
    If it's not it, screenshot the code and I'll look for a fix.
     

    AskipLudo

    The Masked Guy
    159
    Posts
    7
    Years
  • Oh yeah the extendtext.exe made it work, I didn't notice in the error windows it was telling me about this xD
     
    Back
    Top