• 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.

Help coding a move in essentials

  • 1
    Posts
    3
    Years
    • Seen Jun 19, 2022
    Hi! I've been working on a fangame with essentials for a few weeks, and I'd say I'm pretty acquainted with the basics of the coding parts but there's one thing I cannot figure out, and it's coding in a double hit move that is one type for the first hit (fire) and a different type for the second (ice).

    If anyone could help me figure out how to code the new function code in (if it's possible) I'd really appreciate it! 😁
     
    In your move code you'll want to make it so the type of the move changes type for the second hit. This can be done with pbInitialEffect(user,targets,hitNum), as it is run before the move starts. In that function set @type to :ICE if hitnum == 1 (the number of the hit you're currently on is zero indexed). You should probably also set it to :FIRE otherwise. Haven't tested it to make sure it works but that's my idea.
     
    Hi there. I've moved this thread to the Pokemon Essentials subforum. The Resources section is for posting ready-to-use scripts or graphic packs, not for questions. Don't hesitate to reach out if you're unsure of where to post!
     
    Back
    Top