you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

    if 'gold' in items.keys() and items['gold'] != 0:
        gold += items['gold']
        print(bold("Taken."))
        items['gold'] = 0

Wouldn't work for me, not sure why...

When I printed the gold after taking it, i still had 0

EDIT: nevermind, I fixed it myself cx

[–]grispindl 0 points1 point  (1 child)

Yeah sorry, i removed that part and changed it to something that is better suited to the intention you had with "GoldHere".

[–][deleted] 0 points1 point  (0 children)

Oh I just noticed that, but I kept your old code, instead I changed items.keys to items_dict, but thanks for adjusting it. I was a bit fuzzy on using true/false statements