I am creating a pokemon text-based game.
I have 1 problem, I dont know how to do the attacks.
I thought -
enemyHP = 100 class pikachu: def slamAttack(self): self.enemyHP = enemyHP - 30 print("pikachu used slam!") print(enemyHP) #then to call it when they ask for slam attack = str(input("OPTIONS: SLAM")) if attack == "SLAM": pikachu.slam
but i don't know. I would like if someone could just post a simple example of using OOP with this.
thanks for any help