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
Quotes around %1..%99 [[cmud_changes_multiplewords]] 
In zMUD, the %1..%99 arguments from a trigger were immediately substituted into your script *before* the script was parsed. This could cause problems if the %1..%99 value contained spaces or other characters that could confuse the parser. In some cases, the {} or "" were placed around %1..%99 to prevent this.

In CMUD, none of this is needed anymore. %1..%99 are expanded at runtime as normal variable references and cannot cause parsing problems depending upon their values. In fact, you need to be careful *not* to put %1..%99 within "" quotes because variable references are not expanded within quotes in CMUD.

For example:
Code:
zMUD:
#TRIGGER {Zugg says '(*)'} {#VAR message "%1"}

cMUD:
#TRIGGER {Zugg says '(*)'} {#VAR message %1}
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net