• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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
    8
    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)
    [PokeCommunity.com] 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.
     
    Maybe you can create a trainer on trainers.txt, and use its party.

    It should look like this:
    Spoiler:
     
    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😅
     
    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.
     
    Back
    Top