Here I am again! :)
This might be really simple, but I can't get it to work.
Say I have three spells - Fire, Lightning and Ice
I want to be able to cast a spell, reduce the mana value unique to that spell and not be able to cast if there isn't enough mana. Mana reduction is set up perfectly and so is the health reduction.
What would be the best way to do this so each spell's mana reduction and 'enough mana' isn't conflicting with the other?
I've set up bools for 'can-attack' but every avenue I go down with this will conflict with another and player is able to shoot even when mana is at zero.
Using Stats, Shooter and Inventory.
So far I have:
On Equip Spill (Fireball)
If mana of player is greater or equal to 5
Then Assign bool to can-attack true
Else Assign bool to can-attack fasle
Trigger Shoot (Key Down 'R')
If Compare can-attack with True
Then Character Player Single Shoot
Else Debug.Log: Not enough mana!
Customer support service by UserEcho