-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEW SCRIPT SUGGESTION: Alias.js #442
Comments
it could check if an alias is already taken and warn about it, and could also take a flag as parameter to allow it override the existing aliases. Should be more or less easy to make |
This is tricky because there's no in-game API for adding aliases, it would require exploits like what casino.js uses, but I'll keep it on my backlog! |
Or could just output a giant copy paste string. |
Unlike a normal terminal, the in-game terminal doesn't automatically execute a command when a line break is pasted. Instead, it replaces all line breaks with spaces on input and the command is converted into one long statement, which when entered just gives an error "Incorrect usage of alias command." So no, without using exploits (e.g. simulating onKeyDown events) aliases aren't easily injected. |
I meant it could be non automatic (sucks, yeah). tprint a huge string alias example="run example.js; run example2.js"; alias example2" and so on. Then user copy and paste it. |
Yes that's fair - the game now has the ability to split the terminal command on semicolons and evaluate multiple commands back-to-back, so we could take advantage of this and prepare one very long command for copy-pasting. I'll consider adding something which outputs this long string to the terminal so that the player can easily copy/paste it. |
Simple one-off script to auto create all the aliases listed in the readme. Could be ran in git-pull.js
The text was updated successfully, but these errors were encountered: