"Resistance" or "Armor" Bar for certain attacks

afhc2x17

Active member
Hi again, while I was working on my mod, I tried to do a script for a secondary "resistance" or "armor" bar without success, and I need to know if it's possible:

My general idea is that some special enemy attacks would damage that resistance bar first. That is, the attack will damage the resistance bar (like the "hurt" script but only to that bar, but I don't know if I can call a script in the middle of a different script this way). Then, after the "Resistance" bar depletes fully, the player will take heavy damage (maybe without remap) and the "resistance" bar will reset completely.

Anyone knows how to do this? Sorry if this is not clear enough, I know it's hard to answer noob questions like the ones from mine. Thanks anyway, stay safe, and...as some beat'em up hero said: Happy Rampaging!
 
This reminds me to Magic shield I coded for D&D: Rise of Warduke years ago. This shield absorbs damage directed toward the caster until the shield is destroyed.

I think your armor bar works similar but...
some special enemy attacks would damage that resistance bar first

so non-special enemy's attack won't damage that bar?

Also, what happens to the player if attacked while bar is on? will he/she be put in PAIN or FALL (depending on the attack) or will he/she be immune (as if no attack has hit him/her)?

after the "Resistance" bar depletes fully, the player will take heavy damage (maybe without remap)

I assume the heavy damage is seperate from enemy's attack, right?
 
Hi again, I will try to explain with more clarity, sorry for my bad english:

I was thinking about normal attacks doing normal PAIN and FALL/DEATH if applicable regardless of the "Armor" on. But some enemies having specific ("critical") enemy attacks damaging the "Armor" bar first without touching the HP. Then, if the "Armor" bar fully depletes, forcing the player (FORCE_ANIM?) to do a FALL/DEATH, and doing something like a "hurt" command directly to the HP and restoring the "Armor" Bar fully. I was viewing an arcade game that did something similar with an armor breaking system (but not with the armor recovery), I think it was Blandia or something like that.

Hope that this explains better what I have in mind, Thank You for your Answer!
 
Yes, could be another attack# or freespecial#. Only if it's separate from the normal enemy attacks that deplete normal HP without depleting the "Armor".
 
Back
Top Bottom