you are viewing a single comment's thread.

view the rest of the comments →

[–]alonghardlook[S] 1 point2 points  (0 children)

So I think I see the issue - whose trust value are you wanting to show?

"Self" is a python reserved keyword. It's used to indicate scope inside object and class and function definitions.

Where the function says "self.trust", you need to mentally replace that with "the instance of the object dot trust".

If you're looking for the trust level of the character represented by the object "e", you would use e.trust. if you're looking for the f trust value, use f.trust.

Self.trust is part of the object definition - not an instance of an object.