> hello everyone, and thanks for your help and guidance so far. amazingly
> enough, something i thought would be simple has turned out to be not
> simple. i have a sword that i want to wield. as i have it here, i think
> i am wielding whatever string i type as argument to wield. so i guess i
> need to pass wield an object somehow instead of a string. can anyone
> point in the right direction?

Your player's inventory is a list of items.  One way to make wield() work
right is to hunt through your inventory to see what item matches the
'what'.

Good luck!


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to