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
Anrok
Apprentice


Joined: 19 Nov 2010
Posts: 119

PostPosted: Thu Dec 30, 2010 11:26 pm   

Any way to not return the list when using %additem ?
 
Just adding simple strings to a list, like #eval %additem(test,testlist). I dont want to see what i have added to the list..I'd use #additem but i need duplicates..Thanks!
Reply with quote
Fizgar
Magician


Joined: 07 Feb 2002
Posts: 333
Location: Central Virginia

PostPosted: Fri Dec 31, 2010 12:10 am   
 
Use #call instead of #eval
_________________
Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Reply with quote
Anrok
Apprentice


Joined: 19 Nov 2010
Posts: 119

PostPosted: Fri Dec 31, 2010 1:16 am   
 
thank you Fizgar, you rock : )
Reply with quote
Anrok
Apprentice


Joined: 19 Nov 2010
Posts: 119

PostPosted: Fri Dec 31, 2010 1:24 am   
 
Could you maybe also recommend me the best way to carry over my $variable to an #event that i #raise from within the same script?

Right now i use $variable=value at the begining of the script, then use it throughout the script, then at the end of the script i variable=$variable;#EVENT myEvent {$newvariable=%pop(@variable);do stuff};#RAISE myEvent

Is this acceptable ?
Thanks!
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Dec 31, 2010 3:44 am   
 
You can pass an argument to #RAISE:
Code:

#RAISE $variable

The first argument can be accessed within the event as %1, etc.
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