Home / Templates / Patterns /

Mana and Spells System

Mana and Spells System

Type: Patterns
117

A simple pattern showing the relation between spell usage and mana consumption.

 

How it works:

  1. The “Mana Pool” Node has a limit of 100. If a spell is used, the mana is replenished at a rate of 1 per second by the “Generator” Node.
  2. Each spell has a different mana cost and a different cooldown (except Spell 1, which can be cast continuously, as long as there’s enough mana).
  3. The spells pull mana from the “Mana Pool” and either drain the Resources (Spell 1) or convert them in the cooldown amount designed for each spell.
  4. While the amount in the cooldown Pool assigned to each spell is higher than 0, the spell can’t be used.
  5. The cooldown Pools are drained constantly at a rate of 1 per second.
Open template
Share on:

Used by 2500+ game studios all over the world

350+ universities & academic institutions use Machinations

All Rights Reserved © Machinations S.àr.l

8217, Mamer, Luxembourg, accounts at BGL BNP PARIBAS, VAT number: LU30464284

We use cookies for marketing and analytics. We also share information about your use of our site with our marketing and analytics partners who may combine it with other information that you’ve provided to them. You consent to our cookies if you continue to use our site. Learn more