Post new topic    
Liquid Metal Slime
Send private message
Attack Elemental Failure Problem 
 PostFri Sep 09, 2011 4:13 pm
Send private message Reply with quote
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?
Cornbread Chemist
Liquid Metal King Slime
Send private message
Re: Attack Elemental Failure Problem 
 PostFri Sep 09, 2011 6:03 pm
Send private message Reply with quote
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)
Liquid Metal Slime
Send private message
 
 PostFri Sep 09, 2011 6:29 pm
Send private message Reply with quote
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 Grin
Cornbread Chemist
Liquid Metal Slime
Send private message
 
 PostTue Sep 13, 2011 3:02 pm
Send private message Reply with quote
I am still curious whether this is an engine bug or an error on my part. Any input would be appreciated.
Cornbread Chemist
Liquid Metal King Slime
Send private message
 
 PostTue Sep 13, 2011 3:39 pm
Send private message Reply with quote
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)
Liquid Metal Slime
Send private message
 
 PostWed Sep 14, 2011 2:06 pm
Send private message Reply with quote
Cool, thanks for clarifying that Grin
Cornbread Chemist
Display posts from previous: