Target of Target Abilty

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

Moderator: MacroQuest Developers

Jaegar
decaying skeleton
decaying skeleton
Posts: 3
Joined: Wed Nov 26, 2003 9:18 pm

Target of Target Abilty

Post by Jaegar » Fri Mar 05, 2004 1:04 pm

Anyone know how or if its possible to use the distance mods etc.. for the targets target leadership ability window? Or are they only available for the original target window currently?

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Mar 05, 2004 1:39 pm

I have no idea what you are asking here.

gameboy
a lesser mummy
a lesser mummy
Posts: 64
Joined: Fri Nov 08, 2002 12:28 pm

Post by gameboy » Fri Mar 05, 2004 2:02 pm

In GoD, there is a new Leadership ability to display in a new popup window with your target's target. For example, if you are a cleric you normally have the main tank targetted. If you have Leadership ability, you will also have a window showing your target's target, ie the mob he is fighting.

He's asking if the ui can be modified to show distance, level, type, etc for the target's target window.

I'm guess the answer would be if there is an .xml file, then it can be done.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Mar 05, 2004 2:12 pm

Ah, I get it.

gameboy is right, if there is a "target's target" XML file you can make all the adjustments to it just as if it were any other custom window. Just pick apart one of the MQ enhanced target windows for what you need to do it.

Jaegar
decaying skeleton
decaying skeleton
Posts: 3
Joined: Wed Nov 26, 2003 9:18 pm

Post by Jaegar » Fri Mar 05, 2004 3:48 pm

Yea did that and it wouldnt work for some reason, just shows me two regular target boxes instead of my targets target in the other box. Would I need to change all the $target lines to something else? Heres what I came up with and it wouldnt work if anyone has any ideas what I did wrong.

Code: Select all

<?xml version="1.0" encoding="us-ascii"?>
<XML ID="EQInterfaceDefinitionLanguage">
  <Schema xmlns="EverQuestData" xmlns:dt="EverQuestDataTypes" />
  <Ui2DAnimation item="Infiniti-TargetTarget_BG">
    <Cycle>true</Cycle>
    <Frames>
      <Texture>window_pieces_i1.tga</Texture>
      <Location>
        <X>0</X>
        <Y>29</Y>
      </Location>
      <Size>
        <CX>162</CX>
        <CY>42</CY>
      </Size>
      <Hotspot>
        <X>0</X>
        <Y>0</Y>
      </Hotspot>
      <Duration>1000</Duration>
    </Frames>
  </Ui2DAnimation>
  <Ui2DAnimation item="TTLabel">
    <Cycle>true</Cycle>
    <Frames>
      <Texture>window_pieces_v1.tga</Texture>
      <Location>
        <X>237</X>
        <Y>45</Y>
      </Location>
      <Size>
        <CX>7</CX>
        <CY>7</CY>
      </Size>
      <Hotspot>
        <X>0</X>
        <Y>0</Y>
      </Hotspot>
      <Duration>1000</Duration>
    </Frames>
  </Ui2DAnimation>
  <StaticAnimation item="TT_Label">
    <ScreenID>TT_Label</ScreenID>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>10</X>
      <Y>25</Y>
    </Location>
    <Size>
      <CX>7</CX>
      <CY>7</CY>
    </Size>
    <Animation>TLabel</Animation>
  </StaticAnimation>
  <StaticAnimation item="A_TargetTarget_BG">
    <ScreenID>A_PW_BG</ScreenID>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>0</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>162</CX>
      <CY>82</CY>
    </Size>
    <Animation>Infiniti-Target_BG</Animation>
  </StaticAnimation>
  <Gauge item="TargetOfTarget_HP">
    <ScreenID>TargetOfTarget_HP</ScreenID>
    <Font>2</Font>
    <TextColor>
      <R>240</R>
      <G>240</G>
      <B>240</B>
    </TextColor>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>21</X>
      <Y>10</Y>
    </Location>
    <Size>
      <CX>103</CX>
      <CY>28</CY>
    </Size>
    <GaugeOffsetY>16</GaugeOffsetY>
    <TextOffsetX>2</TextOffsetX>
    <TextOffsetY>2</TextOffsetY>
    <Style_VScroll>false</Style_VScroll>
    <Style_HScroll>false</Style_HScroll>
    <Style_Transparent>false</Style_Transparent>
    <TooltipReference />
    <FillTint>
      <R>255</R>
      <G>0</G>
      <B>0</B>
    </FillTint>
    <LinesFillTint>
      <R>220</R>
      <G>220</G>
      <B>0</B>
    </LinesFillTint>
    <DrawLinesFill>false</DrawLinesFill>
    <EQType>6</EQType>
    <GaugeDrawTemplate>
      <Background>A_GaugeBackground</Background>
      <Fill>A_GaugeFill</Fill>
      <Lines>A_GaugeLines</Lines>
    </GaugeDrawTemplate>
    <Text>SomeNastyMob</Text>
  </Gauge>
  <Label item="TargetOfTarget_HPLabel">
    <ScreenID>TargetOfTarget_HPLabel</ScreenID>
    <EQType>120</EQType>
    <Font>2</Font>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>122</X>
      <Y>22</Y>
    </Location>
    <Size>
      <CX>22</CX>
      <CY>12</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>255</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>true</AlignRight>
    <AlignLeft>false</AlignLeft>
  </Label>
  <Label item="TargetOfTarget_HPPercLabel">
    <ScreenID>TargetOfTarget_HPPercLabel</ScreenID>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>145</X>
      <Y>22</Y>
    </Location>
    <Size>
      <CX>16</CX>
      <CY>13</CY>
    </Size>
    <Text>%</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>255</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>false</AlignRight>
    <Font>2</Font>
  </Label>
  <Gauge item="Target_TargetHP">
    <ScreenID>Target_TargetHP</ScreenID>
    <!--<Font>3</Font> -->
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>21</X>
      <Y>38</Y>
    </Location>
    <Size>
      <CX>103</CX>
      <CY>3</CY>
    </Size>
    <GaugeOffsetY>-2</GaugeOffsetY>
    <Style_VScroll>false</Style_VScroll>
    <Style_HScroll>false</Style_HScroll>
    <Style_Transparent>false</Style_Transparent>
    <!--<TooltipReference/>-->
    <FillTint>
      <R>240</R>
      <G>0</G>
      <B>240</B>
    </FillTint>
    <LinesFillTint>
      <R>0</R>
      <G>0</G>
      <B>0</B>
    </LinesFillTint>
    <DrawLinesFill>false</DrawLinesFill>
    <EQType>7</EQType>
    <GaugeDrawTemplate>
      <Fill>A_GaugeFill</Fill>
      <LinesFill>A_GaugeLinesFill</LinesFill>
    </GaugeDrawTemplate>
  </Gauge>
  <TextureInfo item="TargetTargetBox.tga">
    <Size>
      <CX>128</CX>
      <CY>32</CY>
    </Size>
  </TextureInfo>
  <Ui2DAnimation item="A_TargetTargetBox">
    <Cycle>false</Cycle>
    <Frames>
      <Texture>TargetTargetBox.tga</Texture>
      <Location>
        <X>6</X>
        <Y>2</Y>
      </Location>
      <Size>
        <CX>0</CX>
        <CY>0</CY>
      </Size>
    </Frames>
  </Ui2DAnimation>
  <StaticAnimation item="A_TargetTargetBoxStaticAnim">
    <ScreenID>A_TargetTargetBoxStaticAnim</ScreenID>
    <Animation>A_TargetTargetBox</Animation>
    <Size>
      <CX>1</CX>
      <CY>1</CY>
    </Size>
  </StaticAnimation>
  <Label item="MQ_TargetTargetLevel">
    <ScreenID>MQ_TargetTargetLevel</ScreenID>
    <EQType>9999</EQType>
    <Font>2</Font>
    <TooltipReference>$target(level)</TooltipReference>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>10</X>
      <Y>41</Y>
    </Location>
    <Size>
      <CX>20</CX>
      <CY>15</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
      <Alpha>255</Alpha>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>true</AlignCenter>
    <AlignRight>false</AlignRight>
    <AlignLeft>false</AlignLeft>
  </Label>
  <Label item="MQ_TargetTargetClass">
    <ScreenID>MQ_TargetTargetClass</ScreenID>
    <EQType>9999</EQType>
    <Font>2</Font>
    <TooltipReference>$target(class)</TooltipReference>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>35</X>
      <Y>41</Y>
    </Location>
    <Size>
      <CX>85</CX>
      <CY>15</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
      <Alpha>255</Alpha>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>false</AlignRight>
    <AlignLeft>true</AlignLeft>
  </Label>
  <Label item="MQ_TargetTargetX">
    <ScreenID>MQ_TargetTargetX</ScreenID>
    <EQType>9999</EQType>
    <Font>2</Font>
    <TooltipReference>DIST:$target(distance)</TooltipReference>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>7</X>
      <Y>55</Y>
    </Location>
    <Size>
      <CX>68</CX>
      <CY>15</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
      <Alpha>255</Alpha>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>true</AlignCenter>
    <AlignRight>false</AlignRight>
    <AlignLeft>false</AlignLeft>
  </Label>
  <Label item="MQ_TargetTargetY">
    <ScreenID>MQ_TargetTargetY</ScreenID>
    <EQType>9999</EQType>
    <Font>2</Font>
    <TooltipReference>State:$target(state)</TooltipReference>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>75</X>
      <Y>55</Y>
    </Location>
    <Size>
      <CX>68</CX>
      <CY>15</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
      <Alpha>255</Alpha>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>true</AlignCenter>
    <AlignRight>false</AlignRight>
    <AlignLeft>false</AlignLeft>
  </Label>
  <Label item="MQ_TargetTargetDirection">
    <ScreenID>MQ_TargetTargetDirection</ScreenID>
    <EQType>9999</EQType>
    <Font>2</Font>
    <TooltipReference>$target(direction)</TooltipReference>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>126</X>
      <Y>41</Y>
    </Location>
    <Size>
      <CX>25</CX>
      <CY>15</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
      <Alpha>255</Alpha>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>true</AlignCenter>
    <AlignRight>false</AlignRight>
    <AlignLeft>false</AlignLeft>
  </Label>
  <Screen item="TargetOfTargetWindow">
    <ScreenID />
    <RelativePosition>false</RelativePosition>
    <Location>
      <X>516</X>
      <Y>242</Y>
    </Location>
    <Size>
      <CX>162</CX>
      <CY>82</CY>
    </Size>
    <Text>Target of Target</Text>
    <Style_VScroll>false</Style_VScroll>
    <Style_HScroll>false</Style_HScroll>
    <Style_Transparent>true</Style_Transparent>
    <TooltipReference>Your Current Target's Target</TooltipReference>
    <DrawTemplate>WDT_Rounded</DrawTemplate>
    <Style_Titlebar>false</Style_Titlebar>
    <Style_Closebox>false</Style_Closebox>
    <Style_Minimizebox>false</Style_Minimizebox>
    <Style_Border>false</Style_Border>
    <Style_Sizable>false</Style_Sizable>
    <Pieces>A_TargetTarget_BG</Pieces>
    <Pieces>TargetOfTarget_HP</Pieces>
    <Pieces>TargetOfTarget_HPLabel</Pieces>
    <Pieces>TargetOfTarget_HPPercLabel</Pieces>
    <Pieces>TT_Label</Pieces>
    <Pieces>A_TargetTargetBoxStaticAnim</Pieces>
    <Pieces>MQ_TargetTargetLevel</Pieces>
    <Pieces>MQ_TargetTargetClass</Pieces>
    <Pieces>MQ_TargetTargetX</Pieces>
    <Pieces>MQ_TargetTargetY</Pieces>
    <Pieces>MQ_TargetTargetDirection</Pieces>
  </Screen>
</XML>

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Fri Mar 05, 2004 5:35 pm

Thats because YOUR target is the $target() variable. You would have to find some way of finding your $target($target()) which I am only making up (that won't work).

Perhaps MQ will be modified and that variable will eventually be added. In the mean time, I don't think it will be possible to do anything. If you are experimenting, if you can somehow get your target's $target(id) you could use the $spawn(id,level) or $spawn(id,class) type thing to display it...