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?
Attack Elemental Failure Problem
Moderators: Bob the Hamster, marionline, SDHawk
- Meatballsub
- Liquid Metal Slime
- Posts: 996
- Joined: Mon Oct 15, 2007 6:39 pm
- Location: Northwest Georgia
- Contact:
- Bob the Hamster
- Liquid Metal King Slime
- Posts: 7460
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Re: Attack Elemental Failure Problem
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)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?
- Meatballsub
- Liquid Metal Slime
- Posts: 996
- Joined: Mon Oct 15, 2007 6:39 pm
- Location: Northwest Georgia
- Contact:
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
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
- Meatballsub
- Liquid Metal Slime
- Posts: 996
- Joined: Mon Oct 15, 2007 6:39 pm
- Location: Northwest Georgia
- Contact:
- Bob the Hamster
- Liquid Metal King Slime
- Posts: 7460
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
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)
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)
- Meatballsub
- Liquid Metal Slime
- Posts: 996
- Joined: Mon Oct 15, 2007 6:39 pm
- Location: Northwest Georgia
- Contact: