Script



Scripts are the primary means of interfacing with the world of Hackmud. Nearly everything in-game is presented by, or formed from, scripts. Hackmud utilises a fully-featured JavaScript environment, allowing for players to create their own scripts and upload them to the game for use by themself and other players.

Trust Scripts
(Main article: Trust Scripts)

Trust scripts are a core set of game-provided scripts, created by Trust. These scripts allow for interaction with the majority of the game's mechanics, such as managing the GC and upgrades of users, as well as provides sector listings for all public, user-created scripts. Trust scripts, while usable in malicious player scripts to do damage, will themselves always do exactly what they say and can be fully trusted.

Trust scripts, unlike all other types of scripts, show up with an username (E.G: ), as opposed to the standard  coloring. will also identify such scripts as TRUST. It is also worth noting that not every game-provided script is necessarily a trust script, as NPC corp scripts and many in-game events do not take place on trust users.

Player Scripts
Player-made scripts form the bulk of in-game scripts. These scripts can perform functionally any action that the script's author desires it to do. Common applications of the game's scripting environment can include infrastructure to automate the hacking of locs or scraping of NPC corporations, code to automatically manage large quantities of users or just-for-fun scripts like player-made puzzles or joke scripts.

Locs
(Main article: Loc)

Loc scripts are special, hidden scripts used to allow other players to breach one-another. They are created when a user is initialized. They cannot be altered by players.