![]() ![]() foo.bar ).array() returns an array of documents where key “SID” contains the value “scriptname”. If the script was called without any arguments (i.e. args - This is a dictionary containing all the arguments a user passed to your script.ls - The number of columns in the caller's terminal, if reported by the client.context.calling_script - The name of the script that directly called this script, or null if called on the command line.context.this_script - The name of this script.context.caller - The name of the user who is calling the script (i.e.if a user called noob ran your script, then any command executed from context will be treated as executed by the user who executed it, just like he/she would write them in their command line. context - This is a context the script is run from, i.e.Scripts in hackmud are JavaScript (ES6 strict mode) files consisting of a single function with 2 arguments passed by the game: This command will print the in-game architect commands help. I seem to have some trouble with the DATACHECK lock. To see your currently uploaded scripts, run er This command will list all your local and uploaded scripts. This command will remove your script from your computer’s file system, which means you won’t be able to access it from your editor anymore.īe careful around this command, though - it runs without any confirmation. You could use this to download a script to another machine. This command will download an already uploaded script from the server. Takes approximately 15 minutes, during which you cannot interact with the script. This is necessary if the security level changes, or you make it public for the first time. private: will explicitly mark a script as private (useful to un-public a script while debugging, for example).public: will make your script public - assuming you have the public slot upgrade installed and loaded within your system.delete: will delete your script from the server, but leave it locally.This command will upload your created script to the server, so you can execute it. You can create new scripts here and them upload them ingame. This command simply opens up your script directory. Scripts will be created with a default template. If you don’t have a text editor, get one like Notepad++. To fix this issue, associate your text editor with the. js command on Windows is the system built-in compiler. If you are on Windows this may crash, as the default. This command will create or edit a script, opening it up with your default text editor. If you have any questions, don't hesitate to hit us on Discord: If this document becomes out of date, check there for more recent information. This documentation is a mirror of the community's Scripting Tutorial (Google Docs). Originally created by and slightly edited and updated by thanks to and for their expertise. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |