Samuel Packham
Member
What is the best way to go about creating independent spell timers? For example, I want a player to cast magic missile with a 30 second recovery delay but be able to cast fireball which has a 5 second recovery delay. While magic missile is recovering the player can cast fireballs every 5 seconds.
I can independently script on my own ; however, I have been finding that I don't do things very efficiently. I don't need anyone to create anything for me. I am simply seeing if the experienced coders can point me in the best direction. My current ideas are:
1. Duplicate "Spell.cs" and have different spell tiers/categories/classes derive from this.
2. Create new timer classes in "Spell.cs" and find ways to have new spells call on different timers.
3. Add timers to each individual spell.
Thanks for your time and I appreciate all the help this community gives.
I can independently script on my own ; however, I have been finding that I don't do things very efficiently. I don't need anyone to create anything for me. I am simply seeing if the experienced coders can point me in the best direction. My current ideas are:
1. Duplicate "Spell.cs" and have different spell tiers/categories/classes derive from this.
2. Create new timer classes in "Spell.cs" and find ways to have new spells call on different timers.
3. Add timers to each individual spell.
Thanks for your time and I appreciate all the help this community gives.