I wanted to know if any more advanced programmers could help me plan out how to create a system for abilities using a building block style.
My idea is for every ability to made by combining premade actions and executing them in order, with each action allowing for parameters to be input such as distance, direction, duration, damage, etc.
As an example, a fireball ability would go through a process like this:
- projectile spawned at (position)
- move projectile in (direction) for (distance) over (duration)
- on enemy hit, explode in (radius) and apply (damage) and/or apply (debuff)
- on terrain hit (destroy)
Thank you in advance.