- Joined
- Jul 1, 2020
- Messages
- 16
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
Hello there.
Am trying to implement potion/elixir system in the game, which does exactly what it needs to - various potions grant various effects.
Though I've encountered a problem - let's say player can buy a very strong potion that grants them +1000 HP (a lot). Well now, player can just keep using it to (virtually) infinitely increase their MHP.
So is there a way (through states, I believe, but I haven't figured it out) to limit the number of a certain potion type effects that can be active at once.
Example: If player uses this "Potion of +1000HP" (which wears off in 10 turns), they can't get this buff again if they use another "Potion of +1000HP". So that they can't stack up HP infinitely. And so on for various effects, just so that 1 certain potion effect could be active at one time.
Would appreciate any help, thanks in advance.
Am trying to implement potion/elixir system in the game, which does exactly what it needs to - various potions grant various effects.
Though I've encountered a problem - let's say player can buy a very strong potion that grants them +1000 HP (a lot). Well now, player can just keep using it to (virtually) infinitely increase their MHP.
So is there a way (through states, I believe, but I haven't figured it out) to limit the number of a certain potion type effects that can be active at once.
Example: If player uses this "Potion of +1000HP" (which wears off in 10 turns), they can't get this buff again if they use another "Potion of +1000HP". So that they can't stack up HP infinitely. And so on for various effects, just so that 1 certain potion effect could be active at one time.
Would appreciate any help, thanks in advance.



