Page 1 of 1
Attack Elemental Failure Problem
Posted: Fri Sep 09, 2011 4:13 pm
by Meatballsub
I have an attack that is supposed to fail given a certain elemental resistance condition. I thought it was working as intended at one time, but it doesn't seem to be working now. Here's how I have it set up:
Example attack
FAIL when target takes less than 100% damage from example element
To test it, I set up two different enemies. One of them takes 100% damage from the example element while the other takes 0%. BOTH of them can be hit with this attack, and that doesn't make any sense to me. Any ideas?
Re: Attack Elemental Failure Problem
Posted: Fri Sep 09, 2011 6:03 pm
by Bob the Hamster
Meatballsub wrote:I have an attack that is supposed to fail given a certain elemental resistance condition. I thought it was working as intended at one time, but it doesn't seem to be working now. Here's how I have it set up:
Example attack
FAIL when target takes less than 100% damage from example element
To test it, I set up two different enemies. One of them takes 100% damage from the example element while the other takes 0%. BOTH of them can be hit with this attack, and that doesn't make any sense to me. Any ideas?
On the enemy that the attack should to 0% damage do, does the attack do zero damage? or does it do normal damage? (Either one is still wrong, since it should say "fail" but knowing which would help narrow down the problem)
Posted: Fri Sep 09, 2011 6:29 pm
by Meatballsub
Your question actually made me find a solution to this problem!
The attack isn't actually an attack at all but rather an ability that chains to another actual attacking ability if successful. The initial ability in the chain was set to do "no damage", and I think that might have been what the problem was. It looks to me like when you set up an ability that does no damage but uses the elemental failure attributes it doesn't work properly because it doesn't do any damage at all. It wasn't even showing up "failed" when the attack was supposed to fail.
What I did was changed it to pure damage, 100, then set it to -100% damage. I also set it so damage could be zero and to not randomize. Now, the attack still doesn't do damage but I suppose it registers with the system that it is an actual attack? Does any of that make sense? Possible bug? Regardless, it is fixed now and I have you to thank for that

Posted: Tue Sep 13, 2011 3:02 pm
by Meatballsub
I am still curious whether this is an engine bug or an error on my part. Any input would be appreciated.
Posted: Tue Sep 13, 2011 3:39 pm
by Bob the Hamster
I just checked the code, and here is how it works.
When an attack is set to "No Damage" then it skips all of the damage calculation, including the elemental calculation.
With no elemental calculation happening, a "No Damage" attack can never fail because of elementals
So it is not a bug, it is supposed to be that way (although I agree the existing undocumented behavior is rather confusing)
Posted: Wed Sep 14, 2011 2:06 pm
by Meatballsub
Cool, thanks for clarifying that
