Size: 1462
Comment:
|
Size: 1531
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
This script will allow you to utilize the in-line commands in the scripting window. The in-line command plus all arguments for it should be encased in quotation marks. In the example above, instead of typing \invite !NewDude in the commands window, you could use it via script with the line ''command "invite !NewDude"''. You can mix variables into the command script, exclude them from the quotes as you would any other expression. | This script will allow you to utilize the in-line commands in the scripting window. The in-line command plus all arguments for it should be encased in quotation marks. In the example above, instead of typing \invite !NewDude in the commands window, you could use it via script with the line ''command "invite !NewDude"''. You can mix variables into the command script, exclude them from the quotes as you would any other expression. For example: {{{ var = "SomeDude" command "who " + var }}} |
Usage: |
command "command [parameters]" |
Example: |
command "invite NewDude" |
This script will allow you to utilize the in-line commands in the scripting window. The in-line command plus all arguments for it should be encased in quotation marks. In the example above, instead of typing \invite NewDude in the commands window, you could use it via script with the line command "invite NewDude".
You can mix variables into the command script, exclude them from the quotes as you would any other expression. For example:
var = "SomeDude" command "who " + var
You can find a list of all the In-Line Commands here: InLineCommands.
There is no way, at this time, to utilize the return value from one of these commands, for example command "loc xxx,yyy" will echo the details of the coordinates xxx,yyy but you cannot use this information. Future versions of the bot will add this functionality.