Page 1 of 1

Problems on syntaxys for creating a HUD

Posted: Sun Jul 25, 2004 9:10 am
by EPIC
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

Posted: Sun Jul 25, 2004 9:18 am
by Drumstix42

Code: Select all

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

Posted: Sun Jul 25, 2004 9:23 am
by EPIC

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

Posted: Sun Jul 25, 2004 9:26 am
by Drumstix42
I typed an extra ]} so shoot me ;)

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

Posted: Sun Jul 25, 2004 9:41 am
by EPIC
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 )