Forums » Community Projects

SwitchTarget

Jul 13, 2008 diqrtvpe link
This is a little plugin that allows you to set your group-mates' targets to your target, and vice versa. It's not intended for large groups, NW-style, but more for groups of two or three, for precision targeting. It will only work for group members who have it installed and active, and you can turn it off if you want. With it off, if someone in your group tries to switch, it will still let you know who they are targeting.

Syntax: /switchtarget -- turns it on and off
/target -- activates the switch
/leader -- toggles between multi-target mode (default) and leader mode
/stmode -- shows which mode you're in
/leaderswitch "name" (or /stls "name")-- if you are group target leader you can set "name" as new target leader, if they have leader mode on
/leaderall (or /stla)-- if you are group target leader you can set all groupmembers to leader mode
/targetroid (or /rtarget) -- switches target to a roid or cargo crate
/subgroup # (or /stsg #) -- joins a subgroup (1-9) (when in a subgroup only targets called from your subgroup will work)
/subgroup -- join subgroup 1 or leave a subgroup

Download Version 1.3.

Download Version 1.4 Beta.

This is my first plugin, so there are bound to be mistakes, things I've left out, etc. I encourage bug reports and feature requests.
Jul 14, 2008 chana link
This is a nice pluging thanks Diqrtvpe.

Works great for the targets in storms.

Chana
Jul 14, 2008 diqrtvpe link
Thanks, Chana, I'm glad you like it! A few bugfixes and extra functionality in the latest version (I'm arbitrarily starting at 1.0 right now because I can, and because most of the obvious bugs seem to be out). If you have any suggestions, let me know!

Denji
Jul 15, 2008 diqrtvpe link
Version 1.1 posted, with new functionality explained above.
Jul 21, 2008 diqrtvpe link
Version 1.2 posted, some new things, and new syntax to make it simpler.
Jul 22, 2008 diqrtvpe link
Version 1.3 up. Now with subgroups, so you can split into smaller groups while maintaining voice chat and other group-related cohesiveness.
Aug 03, 2008 SuperMegaMynt link
I'm curious, when you send a command to have everyone target your target, is the message visible on the chat box, or is it completely invisible?
Aug 03, 2008 diqrtvpe link
If the person's target is switched they don't see it. If their target isn't switched, for instance if they are in leader mode and you are in multi mode and you send a command, they will see a regular "Current target is blah blah blah" message, with some numbers at the beginning. At least, that's what it's supposed to do. If you see the message when your target is switched, that's a bug, and I'd like to know about it so I can fix it for you!
Aug 03, 2008 Logoffskies link
I don't have any friends, so I can't test it. =( I'm just wondering if you know a way to send commands to people without it clogging up the chat box. For example, what if I wanted to send to the other people in my group my distances to them 50 times every second? Know you a way to do this while keeping the chat box viable for chatting?

-SuperMegaMynt's Alt
Aug 04, 2008 diqrtvpe link
The way I did this, with help from the people listed in my plugin, was by overriding chatreceiver. Instead of passing all chat to chatreceiver, I rename it to chatreceiver_old, and make a new chatreceiver, which gets called every time there's a chat event. I then put whatever functionality I want for certain triggers, and if it doesn't have a certain trigger I pass it back to chatreceiver_old, which handles it like regular chat.

In your case, you could definitely use something similar to keep the distance calls from cluttering up your chatbox, but you wouldn't be able to send 50 times a second, because they'll still be regular messages, governed by the built-in flood controls. Even though the messages aren't passed to chat, they're still handled the same way in every other respect.
Apr 21, 2009 diqrtvpe link
Version 1.4 Beta is now up. It has all the old functionality but now adds HUD changes. Different subgroups are listed together in your group list, leaders are coloured yellow, among other changes. This is still a beta, so errors are expected, but feel free to try it out. I'll release the full version after more extensive testing.
Apr 30, 2009 Kilwrathi link
Pretty wild, I was just asking around last night if there was anything in game that would do this.
Thanks for posting the update so I could find it.
Jan 01, 2010 diqrtvpe link
I have just been informed that there is a game-crashing bug in SwitchTarget that has something to do with convoy capships, and their leaving your group. I have not yet verified the circumstances surrounding this bug, but I'm looking into it, and if anyone experiences it I'd appreciate it if you'd let me know the details. Thanks a lot!