Skip to content
PLS HELP ME MAKE A HEALTH RPG SYSTEM!!
Profile icon
yBen2201

guys I am learning python and I started creating a simple RPG game to kill monsters, animals, gain XP, rank up and stuff...
I already did some quests for killing a wolf but I cannot do a HP system to lose Health and heal after a battle or a hunt.
I'll appreciate if someone help me

You are viewing a single comment. View All
Profile icon
yBen2201

@Highwayman It says "Local variable 'health' defined in enclosing scope on line 1 referenced before assignment"