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

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