About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Aliases
  execalias
  numalias
  getalias
  makealias
Related Links:
  cmd
makealias [[cmud_lua_makealias]] 
makealias

Syntax: zs.makealias{prop-list}

Creates a new alias or modifies an existing alias and returns the Alias record. This uses the Lua class syntax of {prop-list} where {prop-list} is a table of property values. Some properties can be set by the index (position in the table), while other properties can be set by name.

The indexed properties are: Name, Value/Script, and Class. So, for example:

a = zs.makealias{"myalias", "commands", "myclass"}
will create an alias called "myalias" in the class folder "myclass" with the "commands" as the value/script of the alias. This same alias could have been created with the syntax:
a = zs.makealias{name="myalias", value="commands", class="myclass"}
This key=value syntax allows you to set *any* of the properties of the Alias object at creation time directly.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net