HUD question

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

cypherphreak
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sun Jul 25, 2004 10:22 pm

HUD question

Post by cypherphreak » Sun Jul 25, 2004 10:25 pm

Is there a way you can make a True False statement about distance like If my target is <=118 away then True
If target is > 118 away then False

The reason I ask is I would like to put a hud indicator near my target and have it indicate if my target is in range of a complete heal. Forgive me I have not read anything about the huds just using whatever little knowledge I have to create a hud for my own needs.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sun Jul 25, 2004 10:45 pm

Something like this should work. You'll have to adjust some numbers (X and Y are the second and third zeros in the line below) to position it where you want.

Code: Select all

CHRange=3,0,0,0,255,0,${If[${Target.Distance}<118,True,False]} 
The order is TYPE,X,Y,RED,GREEN,BLUE,TEXT.

And this is from the changelog:
- New command
Usage: /hud <normal|underui|always>
* "Normal" will make the HUD display as it would normally on top of UI, not at char select
or in "f10 mode"
* "UnderUI" will make the HUD display as it would normally except UNDER the UI, and not at
char select or in "f10 mode"
* "Always" will make the HUD display under the UI, at char select, and in "f10 mode"
- New Plugin MQ2HUD. Edit MQ2HUD.INI to add custom elements to your HUD. You pick the spot
on the screen, the color, and what gets displayed. Every element gets parsed for MQ2Data
each time it is displayed.
Example MQ2HUD.INI:
[Elements]
TargetInfo=3,5,35,255,255,255,${Target}
GMIndicator=3,5,45,0,0,255,${Spawn[gm]}
CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}
ClickMeForFun=6,-25,-25,255,255,255,${If[!${Cursor.ID},click me,]}
The order is TYPE,X,Y,RED,GREEN,BLUE,TEXT.
Type is currently any combination of the following:
1 - Display in non-full screen mode
2 - Display in full screen mode ("f10 mode")
4 - X,Y is based on cursor location
e.g. 1+2+4=7. 7 means all 3 of the above. 6 means 2 and 4. 3 means 1 and 2. Just add them
together. There is no way to end up with a number that could mean two different
combinations.
Red, Green and Blue are each from 0 to 255. 255,255,255 is white, 0,0,0 is black.

cypherphreak
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sun Jul 25, 2004 10:22 pm

Post by cypherphreak » Sun Jul 25, 2004 10:59 pm

thanks for info

cypherphreak
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sun Jul 25, 2004 10:22 pm

Post by cypherphreak » Mon Jul 26, 2004 9:01 am

I used this so it would be directly over my target

Code: Select all

	CHRangeCheck=1,400,470,255,255,255,${If[${Target.ID},CH Range:,]}
	CHRange=1,400,480,0,255,0,${If[${Target.ID},${If[${Target.Distance}<118,True,False]},]}

nightgod
a ghoul
a ghoul
Posts: 122
Joined: Sun Nov 02, 2003 4:39 am

Post by nightgod » Wed Jul 28, 2004 6:23 pm

Ya know what's REALLY cool??

The search function:

http://macroquest2.com/phpBB2/viewtopic.php?t=7935

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Wed Jul 28, 2004 10:36 pm

Nah the readme is cooler.

cypherphreak
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sun Jul 25, 2004 10:22 pm

Post by cypherphreak » Fri Aug 13, 2004 10:31 am

whats funny is you guys are assholes even after i got my answer =) thanks for the help.

Get your heads out of your asses.