Page 1 of 1

Is there any kind of reflection built in to mudlet?

Posted: Mon May 29, 2017 11:23 pm
by henry
Hello. I'm new here.

Question is in the title,
but just to clarify what I'm trying to do:

I'm faking gmcp events clientside to create better support for scripts.
maintaining the namespace is work and thus makes the structure inflexible,
is there a way of making the namespace generation happen via code at runtime?

Image

I'd like to access the information about the folder structure that can be seen in the triggers window. It would be fantastic to just have on snippet of code at the root of Events that would generate the namespace based on whatever the folder structure happens to be.

Thanks :geek:

Re: Is there any kind of reflection built in to mudlet?

Posted: Tue May 30, 2017 4:40 am
by Vadi
Hello!

You've got http://wiki.mudlet.org/w/Manual:Mudlet_ ... ons#exists and the perm* family at http://wiki.mudlet.org/w/Manual:Mudlet_ ... #permAlias. Nothing to get the children/parents, mostly as there hasn't been a need - people usually create their own stuff so they know what's there, or if they're using someone else's stuff, events are available for cross-script communication.

Let me know if that helps!