Damage VIA shield

So I was making my game like all of us and ran into a problem…

Is it possible to make it so a player will only take damage via shield?

Example: Player has 1% shield and they take 100 damage but only does 1 damage to the shield and does not hurt HP

As far as I know, its not possible to have a player at “1% shield,” take 100 damage and not have the damage spill into the health. The closest you can get would be using coding and blocks. Like Pseudo I think.

1 Like

mk ill wait some more time and do my own research to find out

Well what i already tried was using health grant and setting it to shield then going into code and using this
image

2 Likes

I don’t know if this is what you want but when I had a similar feature in my game I made it so that you gain max shield then after 0.1 seconds take an amount of damage to make you have an exact amount of shield.

So you get 100 shield and then a damager takes the shield away?

1 Like

What kind of game would use this? I’m confused

Is that question necessary? They’re asking if you could damage a player only taking away the shield.

Their game, apparently.

1 Like

This would be easily possible… if it wasn’t for the fact you can’t check player hp / shield. If you could check shield, you’d be able to grant [damage value - shield amount]. So yeah. Apocalypse features not being in creative strikes again.

1 Like

This is as close as im gonna get

I was going for a slate skin effect kinda.

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.