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

 Related 
Contents
Changes for zMUD users
  Importing zMUD files
  New Features
  New Commands
  New Functions
  Compiled scripts
  [] and <> syntax removed
  %%1 syntax removed
  AND OR operators changed
  Class specifier changes
  #PRIORITY command
  Quotes around %1..%99
  #VAR command
  #MENU command
  64-bit integers
  #GALIAS and #GVAR
  %lastcom
  Expression optimization
  Aliases (Auto-append)
  atconnect alias replaced with Events
  #GAG in #ONINPUT trigger
  #T+ vs #CLASS
  Tab completion changes
  Multi-threaded #WAIT
  %btncol arguments reversed
  Multiplaying :window: syntax
  Start lines with commands
  #FUNCTION command
  Variable assignment syntax
Start lines with commands [[cmud_changes_startcommands]] 
Each line of your scripts in CMUD must start with a command, either a zScript command or a literal command to be sent to the MUD. In zMUD, this worked:

Code:
#forall @SomeList {%i}


and each item from @SomeList would be sent to the MUD. Some zScript commands that can be used to reproduce the old behaviour are #CALL, #EXEC, #SEND (which is slightly different to its zMUD counterpart) and #SENDRAW.

Code:
#forall @SomeList {#exec %i}


will do the same thing as the above zMUD example.

NB: This is a bug and will be fixed in a future version. For now, follow the advice above.

 User comments 
Rorso: Wed Jul 16, 2008 4:30 pm    

When testing this in cMUD 2.30 it seems that both the cMUD way *and* the zMUD way works in cMUD Smile. Kinda confusing. Which syntax should be used?
Zugg: Wed Jul 16, 2008 4:40 pm    

While the zMUD way works in *some* cases in CMUD for compatibility, it is not recommended and does not work in all situations. CMUD users should use the second syntax where you specify #SEND or #EXEC directly.
Fang Xianfu: Wed Jul 16, 2008 4:41 pm    

It probably depends on what exactly you're trying, but there're many examples on the forums of it failing. Were you using the exact ones from the file?

Argh! Ninja :(
Viewer Comments [3 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net