• 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] Need HELP scripting mechanic battle frontier

  • 9
    Posts
    4
    Years
    • Seen May 24, 2024
    Hi! I am quite new to this, I am Spanish and I apologize in advance for my low level in English.

    My programming knowledge is very poor and much less in the RGSS language, so I need help to carry out this idea. :D <3

    My idea is to create some kind of Pokemon Team inventory (similar to Pokemon Showdown TeamBuilder!). Logically, this idea is focused at the end of the game, once you have managed to pass the league, create a series of difficult fights and challenges (a kind of Battle Frontier) that involve having a consistent team with good ivs / evs, specific moves and strategies, or just try the same pokemon in many different ways (you know, more evs in certain statistic, or try it with different movements, etc...). It is necessary to mention that this Pokemon Team inventory is completely independent from the pokemon party that accompany us in the adventure and those pokemon can only be used on the Battle Frontier.

    So, for now I have thought about creating an additional section in the menu (I have called it a glossary, although I have no idea how to call it: glossary, barracks, or just TeamsBF):

    Image 1

    *The images are at the bottom (I don't know how to put them where I want xd)*

    Once you enter the "glossary" section, a list will be displayed with all your teams (let's put a maximum list of between 10 and 50 teams that you can create) which will be obtained from a file "PBS/teams.txt", such that:

    Image 2

    And once we click on one of the teams, the Summary Team will be displayed to verify that all the data from "PBS/teams.txt" is correct (click RIGHT/LEFT for the rest of the information and UP/DOWN to go to the next pokemon, just like in the Summary Team of the party), such that:

    Image 3

    The "PBS/teams.txt" file should contain the team information (similar to the PBS/trainers.txt file):

    "PBS/teams.txt":
    Code:
    #0(Team number), 6 (size of the pokemon)
    #NAME, Nickname, Level, M/F(gender), S(Shininess), 0(Form), OBJECT, NATURE, 0(Ability), Movement1, M2, M3, M4, IVhp, IVa, IVd, IVsa, IVsd, IVs, EVhp, EVa, EVs, EVsa, EVsd, EVs, 255(Happiness), 0(Ball type)
    1,6
    LOPUNNY,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    GLISCOR,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    GARDEVOIR,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    2,6
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    HIPPOWDON,,50,M,S,,,ADAMANT,0,FORCEPALM,CONFUSION,HIDDENPOWER,ICEPUNCH,31,31,31,0,31,31,252,252,6,0,0,0,255,0
    3,6
    [...]

    I know that the "Team number" is completely irrelevant, since they would be put in order xd, but I have put it to put, to better differentiate between them.
    And for the moment the only way to edit the teams will be by modifying this file. In the future I will try to add an editor from the game itself with a new interface within the teams section to be able to create them more comfortably from within the game; but the latter is something completely secondary without importance that for now I do not plan to do.

    And finally, once you speak to the appropriate NPC to start the Battle Frontier tournament, choose one of the teams you've previously created in "PBS/teams.txt" file, your party pokemon will be temporarily saved and u will be loaned the pokemon team that you have configured. Once you have finished the tournament, the borrowed pokemon team will disappear and your party pokemon will be returned to you.

    So, the pillars are:
    1. Make the script take the data from the PBS / teams.txt file
    2. Create the section in the glossary that lists all the configured pokemon teams.
    3. If you click on any pokemon team, the Summary team will open with the data of the team's pokemon.
    4. Once you speak to the appropriate NPC to start the Battle Frontier tournament, choose one of the teams you've created, your party pokemon will be temporarily saved and u will be loaned the pokemon team that you have chosen. Once you have finished the tournament, the borrowed pokemon team will disappear and your party pokemon will be returned to you.

    As you can see, it is a system that may not be very complex, but it has a bit of work behind it. As I said, my programming knowledge is very limited, much less in the RGSS language, so I can't even make the script to get the data from "PBS/teams.txt" file xd.

    Thank you for your attention and all help is welcome! :D <3
     

    Attachments

    • Need HELP scripting mechanic battle frontier
      Image1.PNG
      34.1 KB · Views: 6
    • Need HELP scripting mechanic battle frontier
      Image2.png
      13.2 KB · Views: 6
    • Need HELP scripting mechanic battle frontier
      Image3.PNG
      44.2 KB · Views: 6
    Last edited:
    Back
    Top