This is the main miniwindow script where I display the plugin variables. This action gets executed by several triggers.
WindowDelete ("battle")
win = "battle" .. GetPluginID ()
WindowCreate (win, 0, 0, 180, 210, miniwin.pos_bottom_right, 0, ColourNameToRGB("blue"))
WindowShow (win, true)
WindowFont (win, "f", "Trebuchet MS", 12, true, false, true, false)
WindowFont (win, "f1", "Trebuchet MS", 12, true, false, false, false)
WindowText (win, "f", "Battle Status", 45, 5, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Weap: "..GetVariable("bweapon"), 10, 35, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "HP: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "HP_gmcp")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "Bleeding_gmcp"), 10, 55, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Mana: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "Mana_gmcp"), 10, 75, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Fatigue: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "Fatigue_gmcp"), 10, 95, 0, 0, ColourNameToRGB ("yellow"), false)
if GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Name") == nil then
WindowText (win, "f1", "-NOT TEAMED-", 10, 125, 0, 0, ColourNameToRGB ("white"), false)
end
if GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Name") == "Pringle" then
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Blood"), 10, 118, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Pos"), 10, 138, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Me: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Pos"), 10, 158, 0, 0, ColourNameToRGB ("yellow"), false)
elseif GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Name") == "Pringle" then
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Blood"), 10, 118, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Pos"), 10, 138, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Me: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Pos"), 10, 158, 0, 0, ColourNameToRGB ("yellow"), false)
elseif GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T3_Name") == "Pringle" then
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Blood"), 10, 118, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Blood"), 10, 138, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Me: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T3_Pos"), 10, 158, 0, 0, ColourNameToRGB ("yellow"), false)
elseif GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T4_Name") == "Pringle" then
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T1_Blood"), 10, 118, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T2_Blood"), 10, 138, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T3_Name")..": "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T3_HP")..", "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T3_Blood"), 10, 138, 0, 0, ColourNameToRGB ("yellow"), false)
WindowText (win, "f1", "Me: "..GetPluginVariable ("b9171e77bc4ed6d2926eebdc", "T4_Pos"), 10, 158, 0, 0, ColourNameToRGB ("yellow"), false)
else
end
|