Log in

View Full Version : [How To] Mod Trinity Bars 2.0 to have "focustarget" in the target options.



The IT Monkey
04-14-2008, 02:56 PM
I hit 70 recently and promised myself I would rework all my mods, macros and key bindings to be more streamlined and efficient (as well as taking less ram). I was working with Trinity2 and was surprised that in the button options you could target pretty much anything except "focustarget". I thought to myself, "how hard could it be to include that as one of the options?".

Turns out... not that hard at all.

Trinity2 generally comes with the following folders:
Trinity2
TrinityBars2
TrinityCastBars
TrinityXP (though this is an entirely optional addition)

Inside the TrinityBars2 folder you will find a lua file entitled "bars.lua". Open this file and go to line 88 which looks like this:

local targetNames = { "none", "player", "pet", "target", "targettarget", "focus", "mouseover", "party1", "party2", "party3", "party4" }

Simply add "focustarget" in there at the end to make it look like this:

local targetNames = { "none", "player", "pet", "target", "targettarget", "focus", "mouseover", "party1", "party2", "party3", "party4", "focustarget" }

Before Shots:

This is options panel I am talking about:
http://www.theitmonkey.com/images/multibox/TrinityMod/before1.jpg
I am setting a button 2 to be a spell... I have also selected Opt1 to be "target" and now I want to set a value of target:
http://www.theitmonkey.com/images/multibox/TrinityMod/before2.jpg
Notice that before modding Trinity "focustarget" is not an option, although "focus" is. But I don't want to shoot a fireball at my focus.

Here is the list AFTER the mod:
http://www.theitmonkey.com/images/multibox/TrinityMod/after.jpg
Now "focustarget" is part of the list.

Now I can drag any spell to that button on the bar and have it target=focustarget.

I have tested this and it works.

Hope this comes in handy.

Maxion
04-14-2008, 04:11 PM
Other than the nifty mod of trinity that you have shown, you have also shown me functionality in the mod that I hadn't looked at. Maybe I wont have to write out macro's for all my spells after all :D
Then again I guess macros are more versatile with the various conditions.

The IT Monkey
04-14-2008, 04:23 PM
Yes, macros are much more versatile. But I don't believe that all spells need a macro. Fireball for instance. I don't need to put the modifiers in there that cancel it if the mob is dead or friendly or doesn't exist... wow already wont cast a fireball at a friendly target, or a dead one, or one that doesn't exist. (/cast [target=god] fireball. WoW:"Error, unit does not exist")

Macros are good for /castsequences though... so you'll never get rid of macros all together. What I do like about the mod is I can switch out the spell that goes on that button on the fly without having to edit a macro.

firest4rter
04-14-2008, 09:36 PM
Thanks for sharing this. I have been wanting to try another bar mod (currently using Bongos2) ever since I setup my 5 box interface. I have been too scared to make the leap because of the time it would take and I may just end up with something like I already had. Now you have shared this hack I will be definetly making the jump to trinity bars. I will make sometime to do so this weekend.

razorbax
04-14-2008, 11:29 PM
IT Monkey, I love you and Hate you. I spent hours setting up Bongos3 and getting all my Macro's right, now you make it so much easier. I will change over to Trinity tonite.

Maxion
04-15-2008, 04:35 AM
I was lucky and had already changed to trinity when I started multiboxing :)
I only wrote macros for spells that I thought could need it (i like to make them so that any char can be the main by just changing focus), but with this fix I might need macros for even less of them, will have to test this out when I get time.

Team Squishee
04-15-2008, 05:16 AM
This is great - the lack of focustarget was the only thing i could fault Trinity for - its an amazing bar mod and you just made it perfect!

Djarid
04-15-2008, 05:56 AM
while you are modding the list focustargettarget is another very useful unitid, especially for healers/paladins

The IT Monkey
04-15-2008, 01:29 PM
while you are modding the list focustargettarget is another very useful unitid, especially for healers/paladinsI didn't know that was a valid target option. If it is just add it like I added "focustarget". You can add any valid target that would work normally with target=.

Thanks for the kudos guys but all I did is what I normally do when something doesn't work the way I want it to... poke it with a stick until it does.. if it refuses to cooperate I fling poo at it. That's why I am the monkey.