Errors MQ2HUD help
Reply
MQ2HUD help
Hi All,

I use the site often, never posted before. Started playing with MQ2HUD a few days ago and have most of the stuff i found, working as it should. Pretty much cut and paste. Because I've never done any coding.

So I copied the code from this site sorvani posted on mq2hud page. In there he had some code that puts your box toons name, hp% and distance from you. Plus spells being cast and on who. And the distance number changes color as you get farther or closer to the toon. Green for 100 or less, yellow for 100-200, and red for over 200.

I also have the dist3d to tell me distance to whatever target i have on target. And I tried very unsuccessfully to make my target distance number change color. I'm trying to base colors off my bow range for pulling. I have a crappy bow so 100 range bow + 125 range arrow = 225 range. I tried to make 0-199 green, 201-225 yellow, and 226+ red. Just a way to know I am in range of bow before trying to shoot to pull.

Every change I have made results in MQ box being spammed errors and such and no distance number is displayed. Could someone help me to figure out how this would be done? I am starting to get a clue, but all the brackets get me confused.


This works but only displays green of course:
Target=3,5,5,160,0,255,0,${If[${Target.ID},${Target.CleanName},]}
TarDistLbl=3,5,1425,585,0,255,0,${If[${Target.ID},Dist3D:,]}
TarDist=3,5,1425,605,0,255,0,${If[${Target.ID},${Target.Distance3D},]}

This is sorvani's code to change the colors based of actual distance that works for boxed toons:
Toon2DistLbl= 3,570,470,255,255,255,${If[${NetBots[Varalla].ID},${If[${NetBots[Varalla].InZone},Dist:,Zone:]},]}
Toon2DistCls= 3,600,470,0,255,0,${If[${NetBots[Varalla].ID},${If[${NetBots[Varalla].InZone}&&${Spawn[${NetBots[Varalla].ID}].Distance3D}<=100,${Spawn[${NetBots[Varalla].ID}].Distance3D},]},]}
Toon2DistMid= 3,600,470,255,255,0,${If[${NetBots[Varalla].ID},${If[${NetBots[Varalla].InZone}&&(${Spawn[${NetBots[Varalla].ID}].Distance3D}>100&&${Spawn[${NetBots[Varalla].ID}].Distance3D}<=200),${Spawn[${NetBots[Varalla].ID}].Distance3D},]},]}
Toon2DistFar= 3,600,470,255,0,0,${If[${NetBots[Varalla].ID},${If[${NetBots[Varalla].InZone}&&${Spawn[${NetBots[Varalla].ID}].Distance3D}>200,${Spawn[${NetBots[Varalla].ID}].Distance3D},]},]}
Toon2DistZon= 3,600,470,64,64,64,${If[${NetBots[Varalla].ID},${If[${NetBots[Varalla].InZone},,${Zone[${NetBots[Varalla].Zone}].ShortName}]},]}

I tried like 10 "logical to me" ways to get it to work. changed all the {netbots[vralla].ID} to {Target.id}, no go. Tried adding the code from the < > signs back and changing to targit.id, still nothing, and several other ways I can't really describe.

Thanks in advance.
Fri Jan 22, 2016 7:21 am
Errors MQ2HUD help
Reply