I am in need of a stamina system. preferably GUI
whenever the hero attacks (regular attacks), it subtracts a to later be determined amount of the hero's current mana. if the hero's mana is 0, he will be unable to attack.
when the spell "run" (based on defend, can be turned off and on)is active, an (later to be determined) amount of mana is subtracted from his current mana for every 100 range (or maybe more/less) that he moves. if the hero's mana reaches 0, the run spell will be turned off and will no longer remove mana unless turned back on.
ive messed with it and cant seem to find the correct way to do this. any help is appreciated.
whenever the hero attacks (regular attacks), it subtracts a to later be determined amount of the hero's current mana. if the hero's mana is 0, he will be unable to attack.
when the spell "run" (based on defend, can be turned off and on)is active, an (later to be determined) amount of mana is subtracted from his current mana for every 100 range (or maybe more/less) that he moves. if the hero's mana reaches 0, the run spell will be turned off and will no longer remove mana unless turned back on.
ive messed with it and cant seem to find the correct way to do this. any help is appreciated.