• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] [Pokemon Essentials v19.1] Adding a Trainer Move

zedcoeur

Zed Coeur
  • 29
    Posts
    5
    Years
    • Seen Apr 15, 2022
    So I'm working on making it so trainers can use a category of items once per round without costing a Pokemon's turn, and I'm not sure how to go about doing that.

    I've considered the mega evolution script and have looked through the battle_phase_command scripts, but the pieces aren't coming together.

    If anyone has any ideas, that would be very helpful.

    - The Coeur Coalescence
     
    Ok, you say "use items", but then bring up Mega Evolution. Are you talking about NPC's literally using an item (from their inventory), or just like a battle mechanic that happens simultaneously to selecting moves, like Megas? Because the two mechanics work quite differently.
     
    Ok, you say "use items", but then bring up Mega Evolution. Are you talking about NPC's literally using an item (from their inventory), or just like a battle mechanic that happens simultaneously to selecting moves, like Megas? Because the two mechanics work quite differently.

    It's a battle mechanic that happens simultaneously to selecting moves, but the mechanic contains a list of effects the player and NPCs can choose from. That's where the item selection similarity comes in.
     
    Yeah, then you more or less just have to copy how megas work. Which is pretty involved and requires a lot of changes and additions to the battle code. Check the ZUD Plugin for an example of this, all three mechanics added there were created by just using Megas as the base, and then I just elaborated upon them from there.
     
    Back
    Top