kimduck
Member
I’ve added a summoning skill to a character. It consumes mana, but currently there are very few restrictions.
Although the summoned creatures aren’t very powerful, if the player has enough mana, they can keep using the summoning skill while the previous summons are still alive. This allows for infinite summoning, which I want to limit.
So, if there are already a certain number of summoned creatures of type "a" on the current map, I want the skill to either:
Is there a way to implement this?I would be grateful if you could help me
Although the summoned creatures aren’t very powerful, if the player has enough mana, they can keep using the summoning skill while the previous summons are still alive. This allows for infinite summoning, which I want to limit.
So, if there are already a certain number of summoned creatures of type "a" on the current map, I want the skill to either:
- Only summon up to a fixed number of them as defined in the code,
- Prevent any further summoning beyond that number, or
- How to forcibly kill 'a' entities beyond the specified number when the count of summoned 'a' on the current map exceeds the limit.
Is there a way to implement this?I would be grateful if you could help me
Last edited: