Adventure Game
AidanMott (177)

https://repl.it/@AidanMott/Adventure-Game
It was for one of my school projects, but i still thought it was good

You are viewing a single comment. View All
NathanielLowis (36)

For some reason it has stopped for me with the error message saying: Traceback (most recent call last):
File "python", line 249, in <module>
TypeError: can only concatenate tuple (not "str") to tuple

This is what the I have inputted:
Enter your name. Nat]
Nat]. That’s a pretty dumb name, but it’ll do.
got code? Yes

Alright, Nat], welcome to your great quest.

You are a student in Mr. Smith’s class, and you’ve been assigned a project, to make a game. You suck at programming, and you can’t think of any ideas for a game. ”How the heck am I gonna do this project?” You decide that the only option is to steal someone’s project. Thus, your quest has begun. It will be hard to find a good project and remain undetected, but it is possible. In your way stands many challenges, including tattling students, pesky teachers, and everything in between.
Out of 300, how much attack do you want (3 stats) 100
Out of 200, how much defense do you want? 100
Out of 100, how much HP do you want? 100

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) C

Stats:

HP: 52.0/52.0
Attack: 20.0
Defense: 20.0
EXP: 0/11

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) S
You found a defense booster and put it in your backpack.

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) I

Items:
HP Potions: 0
Attack Boosters: 0
Defense Boosters: 1

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) S
You found an attack booster and put it in your backpack.

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) S
You found an attack booster and put it in your backpack.

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) I

Items:
HP Potions: 0
Attack Boosters: 2
Defense Boosters: 1

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) S
You found an HP potion and put it in your backpack.

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) S
You found an attack booster and put it in your backpack.

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) S
You found an attack booster, but you have enough, so you leave it.

ROOM 1: MR. SMITH’S CLASSROOM
What do you do? (F = fight boss, H = hunt enemies, S = search for items, C = check stats, I = inventory) H
A tattling student appeared!

HP: 52.0/52.0
What do you do?
(f)Fight
(a)Action
(i)Item
(r)Run
I
The student let out a loud, tattling screech, doing 3 damage.

HP: 49.0/52.0
What do you do?
(f)Fight
(a)Action
(i)Item
(r)Run
f
Traceback (most recent call last):
File "python", line 249, in <module>
TypeError: can only concatenate tuple (not "str") to tuple

AidanMott (177)

@nathaniellowis: Thank you for the feedback! I believe it should be fixed now in the Adventure Game Fix

AntonioRodrigue (0)

@aidanmott: I played the fixed version and it's still saying error

AntonioRodrigue (0)

aidan I fixed the code on line 249 you have to delete 1 pair of parentheses and the code will work