Math. It's my kryptonite. Or maybe it's just my (lack of) logic.
I'm really new to Construct, so I don't know many of the native commands(?) yet. I have a dinky little scroller I'm toying with, where I want the Player to "fight" with an enemy when they collide. The trick here is that I have a host of attributes that I want to compare to calculate the final damage.
So far it looks a little something like:
EnemyHP - ((PlayerAttack + (PlayerStat-EnemyStat) - EnemyDefense)
I'm trying to take the player's Attack score and boost it with elemental abilities (Stat in the formula), but reduce the effectiveness of that ability if the enemy also has it. Somehow I have to make sure the enemy doesn't actually heal if it has more ability or defense... still trying to wrap my head around that.
My ACTUAL worry is that I have about 6 different elemental-based stats I need to run that comparison on for each bump attack, as the player and enemies can all have varying degrees of each element at the same time. Am I going to have to run a comparison 6 times within the attack formula, once for each element, or can anyone think of a cleaner way to do it?
Thanks a bunch!