How to make abilities

I’m working on a turn-based rpg and I’m starting to work on making abilities or skills for enemies however I honestly have no idea how to go about doing this. My current idea is to have a module script that just has a function for each ability and then for battles I can just randomly select an ability the enemy has and then run that function and pass the needed arguments however I’m not sure if this will work or like is the most efficient way.

The types of abilities I’m trying to make are like “20% to inflict poison to the target” or “30% chance to evade the next attack” or “Deal 5 damage to 3 targets” etc. any examples or tutorials would be appreciated