ProcList["Fireball Spell"] = FireBallSpell()
Or even if there is a better way to do this?
Basically, they use the required incantation, it'll check if they know that spell. Then finally, it'll do.
src.ProcList["Spell Name"]
Which will call the proc.
It doesn't even need to be that exact way, but i'm wondering if it's possible to do something like this? It'd be much appreciated. I hate having to do a check for the Spell Name inside the proc, i'd like to to be automated. You know?
Edit:
For those who saw it, it said Jutsu cuz this is for my Naruto game, I just thought it'd be easier to describe/read if it was a Spell instead.
A better solution would be for your abilities to instead be wrapped in some sort of skill object, which you can then add to lists. The skills would then all inherit a "use()" proc which handles any usage of the ability.