- Joined
- Dec 19, 2007
- Messages
- 1,234
I wanna make a spell that cause units in 250 area to have their mana cap set to 100 for 10 seconds, which means any spells that required more than that will be unable to be cast.
The thing is: heroes have more than 100 cap and int is hard to controll since they have items .
So... without further edu: I gonna ask which way is the easiest and most buggless, please say your opinion:
1) Setting the hero int to int that sum up in 100 mana: the hero will have buff and whenever the buff removed the hero mana will be set to the diffult (starting int + int gain = bug since i need to use special settings for each hero since this skill is undetected) additiional bug: hero gain level gets int and there is gonna be trigger that remove the hero ability to gain int when level up.
2) Making the hero mana cap to -1000000 with item based skills, then giving him +100 with int based skill.
Problams: int gain mana cap, which is undetected...
3) making the hero have buff that check whenever he use a skill that cost more than 100 mana, then make him silenced for 10 seconds.
Problams: the spell was never intended to silence, just prevent high cost abilities. another problam: the mana for each spell will have to be set on setting since its undetectable.
4) making trigger that makes the hero mana set to 100 each and any 0.25 seconds.
problam: regeneration update faster than that, I wouldnt care if the hero gets 100 mana fast but its forbiden to ever get more than that.
Please give me your opinion about the best way to create this spell or give more options.
Thanks.
The thing is: heroes have more than 100 cap and int is hard to controll since they have items .
So... without further edu: I gonna ask which way is the easiest and most buggless, please say your opinion:
1) Setting the hero int to int that sum up in 100 mana: the hero will have buff and whenever the buff removed the hero mana will be set to the diffult (starting int + int gain = bug since i need to use special settings for each hero since this skill is undetected) additiional bug: hero gain level gets int and there is gonna be trigger that remove the hero ability to gain int when level up.
2) Making the hero mana cap to -1000000 with item based skills, then giving him +100 with int based skill.
Problams: int gain mana cap, which is undetected...
3) making the hero have buff that check whenever he use a skill that cost more than 100 mana, then make him silenced for 10 seconds.
Problams: the spell was never intended to silence, just prevent high cost abilities. another problam: the mana for each spell will have to be set on setting since its undetectable.
4) making trigger that makes the hero mana set to 100 each and any 0.25 seconds.
problam: regeneration update faster than that, I wouldnt care if the hero gets 100 mana fast but its forbiden to ever get more than that.
Please give me your opinion about the best way to create this spell or give more options.
Thanks.