• 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] Limit the use of healing items

  • 1
    Posts
    2
    Years
    • Seen Aug 22, 2022
    Hey everyone!

    I've been trying to create a code to limit the use of healing items in battle like potions, full heals and revives. I want it to be that, once you have used 4 healing items, if you try to use a fifth one, a message appears saying "you have exceeded the limit of healing items for this battle" or something like that, and the effect of the item gets cancelled.

    Does anyone knows how to do so? i tried everything i could.

    Also my english is limited. Sorry for the possible errors.
     
    Back
    Top