Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Alex Silyaev

@PenguinLunatic
Just doing stuff
  • Save the Kingdom Good Text Adventure Game

    Cover page
    Made with Python

    My very first Python game :) and i worked hard on this.

    Recent comments (0)
PenguinLunatic
PenguinLunatic
shared a Post
2 years ago
Save the Kingdom Good Text Adventure Game
First Choose any character, then once you equip something it shows your inventory, but how come all of them change when slotNumber can only be one thi
Save the Kingdom Good Text Adventure Game
Python
Spacecraft
Spacecraft
That's way more code than I'm willing to wade through, but I'm assuming that they all change because the player values all = None, just like slotNumber = None. This is the only way I can see for them to all change at once. Figure out why player.accessorySlot1 and all the others within storeInventoryHelp function don't have any values and that should help you solve the problem.2 years ago
Highwayman
Highwayman
just from taking a quick first look at it.... maybe change all the ifs to elifs?2 years ago
PenguinLunatic
PenguinLunatic
shared a Post
3 years ago
Just what i did before a test just in case. It has distance formula, midpoint formula, and slope formula, and if you input your coordinates, you get t
Distance + Midpoint + Slope Formula
Python
PenguinLunatic
PenguinLunatic
shared a Post
3 years ago
I have the while loop and after i while i want to stop it. I put the break statement but it does not work. The break statement is activated when all o
Save the Kingdom Good Text Adventure Game
Python
19wintersp
19wintersp
Unfortunately, you can't chain your conditions like that. Python interprets that as "if enemy1.getHealth() is truthy, and enemy2.getHealth() is truthy", etc. The closest thing is: enemy1.getHealth() <= 0 and enemy2.getHealth() <= 0 and # etc... Though you can use a slight shortcut, because if you add many negative or zero values, they will still be less than or equal to zero: (enemy1.getHealth() + enemy2.getHealth() + enemy3.getHealth() + enemy4.getHealth() + enemy5.getHealth()) <= 0 `3 years ago
IntellectualGuy
IntellectualGuy
It's because the break statements are in conditions, and those conditions may not be satisfied.3 years ago
PenguinLunatic
PenguinLunatic
it might take some time too load3 years ago
PenguinLunatic
PenguinLunatic
shared a Post
3 years ago
While Loop not stopping even when i add a break statement and it seems true (might not be but how?). Can you help me with this problem please?
Save the Kingdom Good Text Adventure Game
Python