LogFAQs > #957193209

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, Database 8 ( 02.18.2021-09-28-2021 ), DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicITT: Learning Python
SomeLikeItHoth
08/18/21 5:51:13 AM
#158:


SpiritSephiroth posted...
I'm going to implement more into the code to make it more complex
What you could do is start everyone off (including yourself) with a certain amount of HP.

Player = 50
Enemy_# = 10
Boss = 15

And then you could use the random feature to randomize attacks.

Attack = random.randint(0, 10)

Now every time either you, one of the enemies, or the boss uses an attack it'll take a random amount of HP away.

---
FAM FOREVER.
... Copied to Clipboard!
Topic List
Page List: 1