@cobaltasaurus said in I made a Python-with-Evennia tutorial (looking for feedback):
I, um, have a dumb question but so far I can't find it in the documents. How do I get information about an object-- for example location?
The @ex command is a staff command for returning a display with information on an object. You can also examine individual values in its attributehandler with @ex <object>/<attribute>.
For a lot of things I tend to rely on using @py, which is a powerful command used for executing arbitrary python code. Like I'll frequently do something like: @py x=self.search("whatever");x.do_some_other_call();self.msg(str(x.do_something(some_parameter))) to see the return value of calling a method on some object.
@Cobaltasaurus Also, for completeness, note that you can skip the initial @ for all commands if you want (so examine, py rather than @examine, @py etc) or use some other prefix you prefer like +, / or & (this is configurable in settings).