Difference between revisions of "LavishScript:Commands"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(39 intermediate revisions by 4 users not shown)
Line 2: Line 2:
  
 
= Usage =
 
= Usage =
== Simple ==
+
In simplistic terms, commands are used simply by typing the name of the command, followed by any ''parameters'' to the command.  Consider the EverQuest 1 command "/who".  "/who" is the name of the command, but parameters can be added to the command to give more specific information, such as "/who all friend" -- "all friend" would be the parameters.
== Complex ==
+
 
 +
For LavishScript command syntax, see [[LavishScript:Command_Syntax|Command_Syntax]].
  
 
= Built-in Commands =
 
= Built-in Commands =
; Base
+
== Information ==
* Test
+
* [[Command:Commands|Commands]]
* Execute
+
* [[Command:LSType|LSType]]
* NoParse
+
* [[Command:LSVersion|LSVersion]]
* Commands
+
* [[Command:Scripts|Scripts]]
* Alias
+
* [[Command:TopLevelObject|TopLevelObject]]
* TimedCommand
+
 
* Executefile
+
== Aliases ==
* Arg
+
* [[Command:Alias|Alias]]
; File System
+
 
* Cat
+
== Atoms ==
* Head
+
* [[Command:AddAtom|AddAtom]]
* Tail
+
* [[Command:DeleteAtom|DeleteAtom]]
* Line
+
* [[Command:ExecuteAtom|ExecuteAtom]]
; Scripting
+
 
* DeclareVariable
+
== Command Execution ==
* DeleteVariable
+
* [[Command:Execute|Execute]]
* VarSet
+
* [[Command:ExecuteFile|ExecuteFile]]
* VarCalc
+
* [[Command:NoOp|NoOp]]
* VarData
+
* [[Command:TimedCommand|TimedCommand]]
* RunScript
+
* [[Command:Redirect|Redirect]]
* EndScript
+
 
* If
+
== Scripts ==
* Else
+
* [[Command:EndScript|EndScript]]
* Do
+
* [[Command:RunScript|RunScript]]
* While
+
* [[Command:WaitScript|WaitScript]]
* Call
+
 
* Return
+
== Inside Scripts (only!) ==
* Wait
+
 
* WaitFrame
+
=== Control Structures ===
* Break
+
=== If-Else ===
* Continue
+
* '''If''' see [[LavishScript:Script Development#Control Structures|LavishScript Control Structures]]
* Switch
+
* '''Else''' see [[LavishScript:Script Development#Control Structures|LavishScript Control Structures]]
* Case
+
=== Loops ===
* EndSwitch
+
* '''Break''' see [[LavishScript:Language_and_Engine_Overview#control_structures|LavishScript Control Structures]]
* Default
+
* '''Continue''' see [[LavishScript:Language_and_Engine_Overview#control_structures|LavishScript Control Structures]]
* Scripts
+
* '''Do''' see [[LavishScript:Language_and_Engine_Overview#control_structures|LavishScript Control Structures]]
* LSType
+
* '''While''' see [[LavishScript:Language_and_Engine_Overview#control_structures|LavishScript Control Structures]]
* TopLevelObject
+
* '''For''' see [[LavishScript:Language_and_Engine_Overview#control_structures|LavishScript Control Structures]]
 +
 
 +
=== Switches ===
 +
* '''Break''' see [[LavishScript:Script Development#Control Structures|LavishScript Control Structures]]
 +
* '''Case''' see [[LavishScript:Script Development#Control Structures|LavishScript Control Structures]]
 +
* '''Default''' see [[LavishScript:Script Development#Control Structures|LavishScript Control Structures]]
 +
* '''Switch''' see [[LavishScript:Script Development#Control Structures|LavishScript Control Structures]]
 +
 
 +
=== Timing ===
 +
* [[Command:Turbo|Turbo]]
 +
* [[Command:Wait|Wait]]
 +
* [[Command:WaitFrame|WaitFrame]]
 +
 
 +
=== Function Calls ===
 +
* [[Command:Call|Call]]
 +
* [[Command:Return|Return]]
 +
 
 +
=== Command Queue ===
 +
* [[Command:ExecuteQueued|ExecuteQueued]]
 +
* [[Command:FlushQueued|FlushQueued]]
 +
* [[Command:QueueCommand|QueueCommand]]
 +
 
 +
=== Triggers ===
 +
* [[Command:AddTrigger|AddTrigger]]
 +
* [[Command:RemoveTrigger|RemoveTrigger]]
 +
* [[Command:WaitFor|WaitFor]]
 +
 
 +
== Variables ==
 +
* [[Command:DeclareVariable|DeclareVariable]]
 +
* [[Command:DeleteVariable|DeleteVariable]]
 +
 
 +
== File System ==
 +
* [[Command:Cat|Cat]]
 +
* [[Command:cd|cd]]
 +
* [[Command:Head|Head]]
 +
* [[Command:mkdir|mkdir]]
 +
* [[Command:Tail|Tail]]
 +
* [[Command:Line|Line]]
 +
* [[Command:OSExecute|OSExecute]]
 +
* [[Command:rename|rename]]
 +
* [[Command:rm|rm]]
 +
* [[Command:rmdir|rmdir]]
 +
* [[Command:cp|cp]]
 +
 
 +
== Operating System ==
 +
* [[Command:Processor|Processor]]
 +
 
 +
== Output ==
 +
* [[Command:Echo|Echo]]
 +
* [[Command:Squelch|Squelch]]
 +
 
 +
== Modules ==
 +
* [[Command:Module|Module]]
 +
 
 +
== Testing ==
 +
* [[Command:Arg|Arg]]
 +
* [[Command:Test|Test]]
 +
 
 +
== Deprecated ==
 +
; The following commands should no longer be used
 +
* [[Command:APICall|APICall]]
 +
 
 +
[[Category:LavishScript]]

Latest revision as of 14:29, 22 August 2010

Introduction

Usage

In simplistic terms, commands are used simply by typing the name of the command, followed by any parameters to the command. Consider the EverQuest 1 command "/who". "/who" is the name of the command, but parameters can be added to the command to give more specific information, such as "/who all friend" -- "all friend" would be the parameters.

For LavishScript command syntax, see Command_Syntax.

Built-in Commands

Information

Aliases

Atoms

Command Execution

Scripts

Inside Scripts (only!)

Control Structures

If-Else

Loops

Switches

Timing

Function Calls

Command Queue

Triggers

Variables

File System

Operating System

Output

Modules

Testing

Deprecated

The following commands should no longer be used