Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
unrealtor
Beginner


Joined: 23 May 2020
Posts: 19

PostPosted: Thu Jul 29, 2021 8:36 pm   

Can class children like Alias be gathered for looping?
 
An example of the desired effect, I have a class folder with all my aliases that relate to lock/unlock/close/open doors and I would like to create a new alias that calls the class Doors and collects the aliases within, so they can be looped and displayed.

I cannot seem to find a method that will call a class object in a way where I can access its child objects. Is this possible?

Thanks!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Thu Jul 29, 2021 9:20 pm   
 
Not that I can think of...
The closest I can think of is just using #ALIAS all by itself.
(Which displays all currently enabled aliases.)

But that would only work if all of your aliases are grouped off into toggleable classes.
_________________
Discord: Shalimarwildcat
Reply with quote
hpoonis2010
Adept


Joined: 18 Jun 2019
Posts: 279

PostPosted: Fri Jul 30, 2021 6:12 pm   
 
Something a that may work would be to have a var that contained names of all your aliases. Either a flat string list or db-wise, class as key and list of aliases as values.

Which you can then loop through. This could also give you a semi-automated method of enabling/disabling.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net