Post new topic    
Liquid Metal Slime
Send private message
Attack Chain on Death 
 PostThu Jun 10, 2010 2:45 pm
Send private message Reply with quote
Hey, this is an engine quirk that has kind of bugged me for a long time and I would love to see addressed. If it's already fixed, please let me know how to fix it, as I cannot figure it out for the life of me.

If you have an attack that chains to another, and the first attack kills the targeted enemy, the second attack will hit another enemy. This is fine sometimes, but most of the time I want to attack to NOT chain when it kills something. I've been staring at the bitsets and chaining properties a while and I see no way to accomplish this.
My website, the home of Motrya:
http://www.jshgaming.com
Slime Knight
Send private message
 
 PostThu Jun 10, 2010 10:24 pm
Send private message Reply with quote
Here's a wild stab, have the main attack be an invisible attack that checks if the enemies HP is bellow a certain level, then use that for an Else chain that will only ever chain to the first part of the attack but not the second, of course this would take 4 attacks; the invisible one, the original chain attack, the second chain and then the first chain attack, without it's chain.
Metal Slime
Send private message
 
 PostThu Jun 10, 2010 11:33 pm
Send private message Reply with quote
Have the first attack in the chain store the target, and have the second attack set to target the stored target only. This 2nd attack should fail to execute if there are no living stored targets left.
I am Srime
Liquid Metal King Slime
Send private message
 
 PostThu Jun 10, 2010 11:52 pm
Send private message Reply with quote
That is clever.

But I do really need to add a built-in option to make chains stop when the target dies.
Liquid Metal Slime
Send private message
 
 PostThu Jun 10, 2010 11:56 pm
Send private message Reply with quote
msw188 wrote:
Have the first attack in the chain store the target, and have the second attack set to target the stored target only. This 2nd attack should fail to execute if there are no living stored targets left.


I would do this, but I use Store Target for other things, and I find that feature rather finnicky sometimes. :( It's probably the best solution though.
My website, the home of Motrya:
http://www.jshgaming.com
Metal Slime
Send private message
 
 PostFri Jun 11, 2010 4:45 pm
Send private message Reply with quote
I'm not sure if this would help, but if only one attack in the chain is causing HP damage, you could arrange it so that that is the final damage to be calculated. If this doesn't make sense for the attack, you could have the HP damaging attack be "display damage but do not inflict", and then move on to the other attacks, and then inflict the damage at the end. In this way the player will see all parts of the chain, and the enemy would die after the full chain has gone through. Would that be helpful? I'll admit I haven't thought through this one so carefully.
I am Srime
Liquid Metal Slime
Send private message
 
 PostFri Jun 11, 2010 6:15 pm
Send private message Reply with quote
Yes, I could do the status effect first, but there's supposed to be a 15% chance of the effect happening and players EXPECT to see damage first, period.
My website, the home of Motrya:
http://www.jshgaming.com
Metal Slime
Send private message
 
 PostFri Jun 11, 2010 6:33 pm
Send private message Reply with quote
Quote:
If you have an attack that chains to another, and the first attack kills the targeted enemy, the second attack will hit another enemy. This is fine sometimes, but most of the time I want to attack to NOT chain when it kills something. I've been staring at the bitsets and chaining properties a while and I see no way to accomplish this.


Try setting the target of the second attack to "Previous Target" rather than "Enemy."

That way, the chained attacks just won't happen if the previous target is dead already, instead of switching over to another random enemy like the regular "Enemy" targeting does.
Liquid Metal Slime
Send private message
 
 PostFri Jun 11, 2010 6:39 pm
Send private message Reply with quote
FnrrfYgmSchnish wrote:
Quote:
If you have an attack that chains to another, and the first attack kills the targeted enemy, the second attack will hit another enemy. This is fine sometimes, but most of the time I want to attack to NOT chain when it kills something. I've been staring at the bitsets and chaining properties a while and I see no way to accomplish this.


Try setting the target of the second attack to "Previous Target" rather than "Enemy."

That way, the chained attacks just won't happen if the previous target is dead already, instead of switching over to another random enemy like the regular "Enemy" targeting does.


Does that actually work? I would assume if the previous target doesn't exist, it still attempts to attack and defaults to the first target.
My website, the home of Motrya:
http://www.jshgaming.com
Liquid Metal King Slime
Send private message
 
 PostFri Jun 11, 2010 8:34 pm
Send private message Reply with quote
JSH357 wrote:

Does that actually work? I would assume if the previous target doesn't exist, it still attempts to attack and defaults to the first target.


I just tested this, and it does work! :)
Liquid Metal Slime
Send private message
 
 PostFri Jun 11, 2010 9:46 pm
Send private message Reply with quote
Oh, well awesome. That pretty much covers it, then. I'm not sure why that wasn't obvious to me.
My website, the home of Motrya:
http://www.jshgaming.com
Display posts from previous: