Estel3
New Member
- Reaction score
- 6
I'm working on a spell for an anti-spellcaster unit, where a unit casts a spell in range of the aura, the projector of the aura (or an ally, if I decide to go that way) has a 5-25% chance of being healed for some amount of health.
But I can't figure out how to pick a random integer. I think I can pick a random integer between 1 and 100 but I can't make it pick a number between like 5 and the level of the ability for the projector of the aura (I store him in a variable when he learns the ability).
Could someone please tell me how I can do this? Thanks.
But I can't figure out how to pick a random integer. I think I can pick a random integer between 1 and 100 but I can't make it pick a number between like 5 and the level of the ability for the projector of the aura (I store him in a variable when he learns the ability).
Could someone please tell me how I can do this? Thanks.