Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: RPG game trouble
Post: RE: RPG game trouble

Great, thanks Nilamo.
J125 Homework 8 5,577 May-03-2017, 08:34 AM
    Thread: RPG game trouble
Post: RE: RPG game trouble

Yes, I have read the tutorials. I understand the logic of where I am going wrong, but I can't implement a workaround. Not to worry, I'll keep at it. Thanks,
J125 Homework 8 5,577 Apr-24-2017, 11:38 AM
    Thread: RPG game trouble
Post: RE: RPG game trouble

I also have the enemy class which inherits from the Character class as well, so wanted to differentiate between the two.   In this case, as both the Enemy and Hero class will have different health att...
J125 Homework 8 5,577 Apr-20-2017, 10:25 AM
    Thread: RPG game trouble
Post: RE: RPG game trouble

Thanks Craig. I added an argument to each function, and that did the trick. I'm now having trouble with the instantiation of the objects. Initially, I got the following error: Traceback (most rece...
J125 Homework 8 5,577 Apr-17-2017, 11:43 AM
    Thread: RPG game trouble
Post: RPG game trouble

Hi,  I'm a bit out of my depth here, but suppose that's the best way to learn. I'm trying to create an RPG game where a hero goes against 6 enemies in 6 different lairs (each lair will be represented...
J125 Homework 8 5,577 Apr-08-2017, 05:38 PM
    Thread: Class attribute not recognized\working
Post: Class attribute not recognized\working

Hi, me again.    I'm having trouble getting the attack function to work. The problem seems to be with the 'health' attribute within the Alien class (line 26 in the script). I can’t get this attribute ...
J125 General Coding Help 1 5,384 Dec-19-2016, 12:58 AM
    Thread: Help with classes
Post: RE: Help with classes

Thanks Larz60+. Following your advice, I got it working using the following 2 lines: an_alien = Alien('puppeteer', 'central_corridor') loaded_alien = an_alien.load_alien('central_corridor')
J125 General Coding Help 9 9,000 Dec-15-2016, 03:38 PM
    Thread: Help with classes
Post: RE: Help with classes

I'll remember that the next time nilamo. Thanks. So, I tried your suggestion, but I still got the same error: Error:Traceback (most recent call last):   File "ex43_mine.py", line 253, in <module&...
J125 General Coding Help 9 9,000 Dec-15-2016, 03:27 AM
    Thread: Help with classes
Post: RE: Help with classes

Hi Guys,  Wasn't sure whether to open a new thread, so continued on from my previous one (it's the same script). Please let me know if the best practice is to open a new one, and I will the next time...
J125 General Coding Help 9 9,000 Dec-14-2016, 06:36 PM
    Thread: Help with classes
Post: RE: Help with classes

Great, thanks for clarifying nilamo.
J125 General Coding Help 9 9,000 Dec-07-2016, 10:15 PM
    Thread: Help with classes
Post: RE: Help with classes

Thanks ichabod801. I'll be sure to check out the tutorial. Regarding my original question. You mentioned that not only the __init__ method is called. If we use the map class as an example, will the ...
J125 General Coding Help 9 9,000 Dec-06-2016, 02:33 PM
    Thread: Help with classes
Post: Help with classes

Hi All, I'm sure this forum is littered with Learn Python the Hard Way questions... here's another on exercise 43: learnpythonthehardway.org/book/ex43.html. I've just started learning (without any pr...
J125 General Coding Help 9 9,000 Dec-04-2016, 05:04 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020