- 44
- Posts
- 7
- Years
- Seen Jul 13, 2021
Hello!
I want to know how I can make it so that the player can only use as many items as the enemy can.
Let's say the enemy trainer has 3 potions and 2 full heals.
I want the player to only be able to use 5 items (doesn't matter which), and then be unable to use more items on his Pokémon (meaning that Pokéballs can be used still, to avoid it not working on wild battles).
If the enemy has no items, the player cant use any, etc etc.
I know it is done somewhere around here:
But I don't know how to actually program it.
If someone can help me, I would gladly appreciate it.
If theres questions ask me too,
Thank you!
I want to know how I can make it so that the player can only use as many items as the enemy can.
Let's say the enemy trainer has 3 potions and 2 full heals.
I want the player to only be able to use 5 items (doesn't matter which), and then be unable to use more items on his Pokémon (meaning that Pokéballs can be used still, to avoid it not working on wild battles).
If the enemy has no items, the player cant use any, etc etc.
I know it is done somewhere around here:
![[PokeCommunity.com] Limiting in-battle Item use [PokeCommunity.com] Limiting in-battle Item use](https://i.imgur.com/t3eSq0l.png)
But I don't know how to actually program it.
If someone can help me, I would gladly appreciate it.
If theres questions ask me too,
Thank you!