How to add shields in python
I am working on a rpg using the python coding language. I just started adding weapons and health items. I want to add shields but I don't know how to make defense. Can anybody help me with this.
Is this pygame? Did you try making a variable named shield? Do something like:
shield = 0 if <however u get a shield>: shield = 30 #suppose u want 30% protection health = health - damage*shield/100