|
fhqwhgad Novice
Joined: 07 Feb 2005 Posts: 38
|
Posted: 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? |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: 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 |
|
|
|
fhqwhgad Novice
Joined: 07 Feb 2005 Posts: 38
|
Posted: 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. |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: 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 |
|
|
|
fhqwhgad Novice
Joined: 07 Feb 2005 Posts: 38
|
Posted: 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. |
|
|
|
|
|