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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
robert
Wanderer


Joined: 25 Feb 2004
Posts: 98

PostPosted: Mon Dec 13, 2010 4:13 am   

[3.32] Not parsing function return result.
 
In previous versions of CMUD when I would call %item( @aliases, @aliasesindex) in an alias, the results would also be parsed such that the returned alias would also be called. This seems to no longer be the case. Is there a way to make sure the returned alias is called?

Thanks!
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Dec 13, 2010 4:49 am   
 
You can use #EXECUTE. It really depends on how your using that code snippet, remember that in CMUD a line should not begin with a function call.
_________________
Asati di tempari!
Reply with quote
robert
Wanderer


Joined: 25 Feb 2004
Posts: 98

PostPosted: Mon Dec 13, 2010 3:04 pm   
 
Ah, #EXECUTE. I will try that. Thanks Tech! :)

So a bit more details on what I was doing.
1. Create list of aliases that enable a bunch of triggers and variables, and is basically like a state.
2. When the state is done, set the next aliasesindex to execute the next desired state(normally just incr), and then call the alias which does the %item call.
3. Epected result is the next alias in the list is executed which setups up it's set of triggers and variables and waits till it is done, etc.

Sorry about posting in the Beta Forum. I was checking it to see if other people had this issue, but then forgot to go back to the general forum. :(
Reply with quote
robert
Wanderer


Joined: 25 Feb 2004
Posts: 98

PostPosted: Mon Dec 13, 2010 3:14 pm   
 
Verified, #EXECUTE did what I was looking for! :)

Thanks again Tech.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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