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
fhqwhgad
Novice


Joined: 07 Feb 2005
Posts: 38

PostPosted: Tue Dec 11, 2007 3:56 pm   

pause in loop and printing an eval to the mud
 
Hi,
If i make a loop 5 {whatever}, can i make it pause for a few miliseconds after each loop?

Also, if i combine alot of expresions in an eval, how do i print it to the mud, not just to my own screen?
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Tue Dec 11, 2007 4:16 pm   
 
This code is the simplest way to accomplish what you are talking about. The wait is half a second.

Code:
#loop 5 {work hard;earn money;be happy;#wait 500}


It would be discouraged in Zmud though and could cause problems in the current public version of Cmud [1.34]
The beta version is in pre-release fixing and will likely go public this week. This works perfectly in the beta Cmud [2.16]
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
fhqwhgad
Novice


Joined: 07 Feb 2005
Posts: 38

PostPosted: Tue Dec 11, 2007 4:25 pm   
 
Arminas wrote:
This code is the simplest way to accomplish what you are talking about. The wait is half a second.

Code:
#loop 5 {work hard;earn money;be happy;#wait 500}


It would be discouraged in Zmud though and could cause problems in the current public version of Cmud [1.34]
The beta version is in pre-release fixing and will likely go public this week. This works perfectly in the beta Cmud [2.16]

Thank you, i'll give it a try.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Tue Dec 11, 2007 4:42 pm   
 
As for the Eval. What are you trying to accomplish?

The simplest answer is.

Code:
#send {%eval("5+1")}
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
fhqwhgad
Novice


Joined: 07 Feb 2005
Posts: 38

PostPosted: Wed Dec 12, 2007 10:05 am   
 
Arminas wrote:
As for the Eval. What are you trying to accomplish?

The simplest answer is.

Code:
#send {%eval("5+1")}

I was trying to send a bunch of arrays. I just thought i had to combine them in an eval, but it turns out i could #send @a.2 @b.1 @c.6 without the eval.

It all worked out, including the #wait.
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