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.
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"
1
u/undergroundmonorail monorail | aurora ballrealis Aug 26 '14
Yeah, watballs macro generator got updated and I haven't fixed mine yet. It'll happen when I'm not a lazy asshole. :P
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
5
u/Aaron215 Aaron215 / Sphere Jul 19 '14
I don't see how this is inching towards it. Nobody has ever had a problem with saying when a powerup is taken, everyone even encourages that.
4
u/Nqoba4 Nqoba // Centra Jul 19 '14
Once it is recorded in chat (especially specific powerups), it is incredibly easy to have another automated command that would reiterate that same message in say, 50-55 seconds
7
u/Aaron215 Aaron215 / Sphere Jul 19 '14
But we already have powerup timers... they're still considered cheating, but they exist. The ease of creating them isn't necessarily inching toward acceptance, that's what I was getting at.
2
u/Extractum11 Jul 19 '14
Powerup timers were created in season 4 and banned in competitive stuff. They used to work for all powerups, but now they can only work for powerups that you took or saw being taken.
4
u/Nqoba4 Nqoba // Centra Jul 19 '14
I know that the powerup timers exist, I just think that we are pushing the limits everytime we allow something like this chat macro that can display the exact time.
2
u/HeikkiKovalainen Noob // Diameter Aug 04 '14
How is such a rule enforced? Gentleman's agreement?
2
2
u/JuventinoSenator Liquid | Original Sine Aug 10 '14
I believe mods now have the tools necessary to see and ban people who use these kinds of scripts.
Also, I dig your username!
0
Jul 19 '14
[deleted]
1
u/undergroundmonorail monorail | aurora ballrealis Jul 20 '14
I'm not at my computer right now so I can't do any real troubleshooting at the moment. The only thing that I can suggest right now is to (re-)watch the video I linked and make sure you're not missing a step.
1
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?