I'm wondering how it would be best to define these different kinds of attacks. If I should be defining a ton of procs under my base Enemy mob, or be utilizing datums to create custom attacks for each person...
I could do this
or I could hold each proc call in a list, being associative, since I want my attacks to be chosen by probability if there are enemies in view (the thing is, sometimes, I'll want to have my enemy be making the smarter-decision attack instead of one chosen at random)
list/attacks = list(70 = strike(strength,4.4), 30 = strike(strength, 1.1))
I'm also thinking I could maybe use datums to solve this situation?...just an idea...
So basically, I need some help with the design of this feature. I want my enemy to select an attack either by
1) Randomness or
Some enemies will be utilizing the same attacks, such as a basic "strike" attack that will hit mobs in view. May I get some advice on how I should be going about this? Thanks!
-Random selected attacks
-Attacks selected by analyzing the situation
-Some enemies will utilize the same attacks
-Code needs to be efficient and organized