Problems on syntaxys for creating a HUD

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

Moderator: MacroQuest Developers

EPIC
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Jul 15, 2004 3:04 am

Problems on syntaxys for creating a HUD

Post by EPIC » Sun Jul 25, 2004 9:10 am

I wanted to make into HUD a info target indicator for dont needed to use a createds UI because i dont know XML code and its hard to me.


Well first of all i evaluate that each type of target must get diferent info, then for display some target info first will be consider what type of target its, then i must use ${Target.Type} and i want 4 valors, NPC, PC, Pet and Corpse.

The problem is in syntaxys i dont know how to make it.

i used

Code: Select all


${If[${Target.Type},PC,(then here shows PCinfo),}]

But seems that is not correct use for If sentence...

I only used If for Bool variables, dont know how to use it on String one.

Thanks

----------------------------------------------

A person who wants to learn about MQ

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

Post by Drumstix42 » Sun Jul 25, 2004 9:18 am

Code: Select all

${If[${Target.Type.Equal[PC]}]},show PC stuff here,other stuff here/blank]}
I believe that's correct.

EPIC
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Jul 15, 2004 3:04 am

Post by EPIC » Sun Jul 25, 2004 9:23 am

Code: Select all

${If[${Target.Type.Equal[PC]}]},show PC stuff here,other stuff here/blank]}
You closed if sentence wihout asign valors, the correct its that:

Code: Select all

${If[${Target.Type.Equal[PC]},( Info if its a PC ),( Info if itsnt a PC ]}

Anyway thanks very much, didnt know how to use it correct

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

Post by Drumstix42 » Sun Jul 25, 2004 9:26 am

I typed an extra ]} so shoot me ;)

I been up more than 36 hours, what can I say.

EPIC
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Jul 15, 2004 3:04 am

Post by EPIC » Sun Jul 25, 2004 9:41 am

Dont worry, i just weak up.


But my record its 90 hours in front of my PC ( well and running to my fridge a lot of times )