Hi guys, Im new here and new to python but I'm starting to get the hang of it, i began writing an text rpg to test my skills and to have some fun. I was wondering though how to do something. This is what I am trying to do.

You are a warrior and the warrior has
40 Health
and 15 Damage Power
and the goblin your fighting has
30 health
and 20 Damage Power

now the damage power = how much damage is inflicted on the goblin your fighting
so 15 damage power = 15 damage inflicted

how would i make it so after every move that is used the stats displayed would change depending on how much damage was inflicted. Any help would be great.

I strongly recommend making your warrior a class. Then, you can deduct points as needed when damage is taken.

Jeff

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.