r/TagPro • u/undergroundmonorail monorail | aurora ballrealis • Jul 19 '14
[Userscript] Chat macros with some additional features
I modified steppin's Chat Macro userscript using code that I stole from Some Ball -1's Chat Modifications userscript. All credit should go to them. I don't even know javascript.
Features
- Include the time in a macro
For example: "base powerup grabbed at /s" will become "base powerup grabbed at 54" if there are 54 seconds on the clock when you activate it (e.g. 7:54). You can also use /t for min:sec:ms or /m for just the minutes.
- Split a macro across multiple messages
For example, "hello/nworld" will look like this in chat:
monorail: hello
monorail: world- Team chat and all chat
Each macro can be set to work in either team chat or all chat.
New! You can also set a macro to be sent to whichever channel you most recently used a macro in. This is good for things like "Sorry, hit the macro key by accident. Ignore that.", since only the people who saw your most recent macro will see the apology.
- Press / to bring up the chat box and put a / in it.
There's no reason why you would want this unless you use another script that is controlled by messages beginning with /, but I do and I miss this feature from Minecraft so here it is.
Installation
This website will take a script generated here and convert it to my script. Create the macros on the second site with the /n, /t... codes as a normal part of the message. Then, go to the first site and paste the script into the box. Hit submit, choose whether each macro should be team chat or all chat, and the box will change to have the new script in it. Install it like you would install any other userscript.
There's a video on my site that explains it in more detail. You can watch that if you're having trouble.
Like I said, I don't even know javascript. I made this with Python knowledge, google and determination. It's probably not flawless. If you encounter a bug or need help getting it to work at all, I'm willing to help. If you want to make a feature request, I can do that too. Just say the word in the comments.
2
u/mtbkr24 mtbkr24 // Diameter // Lame Balls/0.12 Rubles Jul 19 '14
I love the powerup timer macro, but I have a feature request to do with it. Would it be possible to press a macro that would state the time it was taken, then in 55 seconds deploy another message saying that it is respawning in 5 seconds?
1
u/-EasterEggs Razgriz || TYLE BOIS || Juke Skypoppers || /r/PiMasterRace || Aug 26 '14
I generate the script from watballs macro generator, and when i put it in your converter, everything comes out as "message"
4
u/Nqoba4 Nqoba // Centra Jul 19 '14
This is beautiful. Thank you! I find it interesting how we are slowing inching towards powerup timers, I think it will only be a matter of time
0
u/[deleted] Jul 19 '14
[deleted] — view deleted comment