Hiya,
What's the best way to make an attack that does regular damage but if that amount of damage is enough to kill the enemy they are left alive with 1 HP?
Is this possible?
Regards
Attack that leaves enemy at 1hp?
Moderators: marionline, SDHawk
Attack that leaves enemy at 1hp?
vvight.wordpress.com
- Bob the Hamster
- Lord of the Slimes
- Posts: 7684
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Re: Attack that leaves enemy at 1hp?
Hmm... I think doing this with chains of attacks is probably going to be fairly difficult...
The idea is to have something like D&D nonlethal damage, right?
The idea is to have something like D&D nonlethal damage, right?
Re: Attack that leaves enemy at 1hp?
That's a pretty common RPG move. Could you do it by chaining to an attack that does 99% of target's current hp if the damage > current hp?
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
Re: Attack that leaves enemy at 1hp?
Yea, that's the way KK! The problem is figuring out if the damage is going to be high enough to kill or not!
vvight.wordpress.com
Re: Attack that leaves enemy at 1hp?
This set of conditionals should do it, no?
- Attachments
-
- vikings0000.png (3.31 KiB) Viewed 5316 times
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
- Bob the Hamster
- Lord of the Slimes
- Posts: 7684
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Re: Attack that leaves enemy at 1hp?
That conditional compares the attacker's attack stat, so if you have any extra damage, elemental damage modification, or damage randomization it won't work as expected
We should add a new built-in feature for this. As an attack bitset it would not be that hard to implement
We should add a new built-in feature for this. As an attack bitset it would not be that hard to implement
Re: Attack that leaves enemy at 1hp?
Whoops. I have not used the battle system much
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
Re: Attack that leaves enemy at 1hp?
I appreciate the effort! Yea that could be a cool bitset , "leave target at x hp instead of killing" or something.
vvight.wordpress.com
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6516
- Joined: Mon Dec 08, 2008 7:07 am
- Contact:
Re: Attack that leaves enemy at 1hp?
heal target for 1 hp over their max
then deal damage equal to their max hp.
easy
then deal damage equal to their max hp.
easy