Making Skill System...Need some advise.

hello guys, so i’m trying to make a skill system here.

when a character finishes spell-cast anim, the spell-effect function will be triggered.

the problem is i don’t know how to efficiently modify or change this universal spell-effect function that attached to spell-cast animation.

My skills are gameobjects. it has its own script call “Skill_Details”. it contains values like skill_id, cooldowns, damages… and stuff.
but not the core functions of skills… like “heal ally” “deal damage” “weaken/enchant armor” “raise the dead”… i want to add these stuffs!

but i can not make changes in Skill_Detail itself because its universal value storage… i could make changes in Inspector but not in the script… q_q

any ideas?

I’m working on something similar,
though my approach is vastly different.

What you could do is to add a new value for each universal skill value, lets say an int called EffectCode that corresponds to a certain desired effect.

for example an effect code of 1 means it damages but a code of 37 means the damage value heals.
this way your universal spell-effect is modified to account for any effect in your game, it just checks for the Effect code and does whatever accordingly.