I'm trying to do this Type Chart:
http://www.serebii.net/games/type.shtml
-It exactly works for The Battle, For when someone is using an Attack, for Damage Calculation basically.
Then the Attack Effects.
Check this:
-http://www.serebii.net/attackdex-bw/absorb.shtml
-http://www.serebii.net/attackdex-bw/acid.shtml
Check in both the "Battle Effect". They're different right? Well, i don't want to do for every attack
if(Attack == "Absorb")
//blabla
What's a good way to do it?
I would use an multi dimention associative array and define each one as a multiplyer
attack["normal"]["normal"] = 1
attack["fire"]["fire"] = 0.5 //fire vs fire = half
attack["water"]["fire"] = 2 //water vs fire = double
This you would want to have an effects list and then check if that effect is in that attacks list. I would store the attacks as datums.