ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   GetKeepInnerWallBreached() (https://www.esoui.com/forums/showthread.php?t=8073)

Gandalf 09/25/18 04:11 AM

GetKeepInnerWallBreached()
 
With Update 19 two new API calls has been introduced:
Quote:

We have added new APIs that let you query if a Keep’s outer or inner walls have been breached:
- GetKeepInnerWallBreached(keepId, battlegroundContext) – innerWallBreached.
- GetKeepOuterWallBreached(keepId, battlegroundContext) – outerWallBreached.
It seams that these calls are non functional, means they always return false for me.
They are used in ZM keeptooltip.lua too. But I never saw a result for.

I briefly checked on PTS they still seam to be non-functional.

My assumption is, if this work correctly you still would get a positive result on an own keep/outpost only.

Is this a known issue? Can someone confirm?

Thanks,
Gandalf

Oops, sorry picked the wrong forum, should be moved to General Authoring questions

ZOS_ChipHilseberg 09/25/18 08:33 AM

Was a keep wall broken when you used these?

Gandalf 09/25/18 09:45 AM

Yes, outer wall and inner main were at 0% health.

These functions are also part of the regular map keep tooltip.
Code:

    -- Keep Wall Breached
    local innerWallBreached = GetKeepInnerWallBreached(keepId, battlegroundContext)
    local outerWallBreached = GetKeepOuterWallBreached(keepId, battlegroundContext)
    if innerWallBreached then
        if keepType == KEEPTYPE_OUTPOST then
            AddLine(self, GetString(SI_TOOLTIP_OUTPOST_INNER_WALL_BREACHED), KEEP_TOOLTIP_ATTACK_LINE)
        else
            AddLine(self, GetString(SI_TOOLTIP_KEEP_INNER_WALL_BREACHED), KEEP_TOOLTIP_ATTACK_LINE)
        end
    elseif outerWallBreached then
        AddLine(self, GetString(SI_TOOLTIP_KEEP_OUTER_WALL_BREACHED), KEEP_TOOLTIP_ATTACK_LINE)
    end

On a busy live server like Vivec, these messages should be seen in the keep tooltip quiet often...

Gandalf 09/26/18 03:16 AM

Quote:

Originally Posted by ZOS_ChipHilseberg (Post 36147)
Was a keep wall broken when you used these?

Did a full test on PTS. As far as I understand still not working. It's a DC char on DC owned Nikel. Postern and main door down.

Nikel Main:


Nikel Postern:


Tooltip:


Code:

/script local keepId=132 d("KeepName="..GetKeepName(keepId).." InnerWallBreached="..tostring(GetKeepInnerWallBreached(keepId, BGQUERY_LOCAL)).." OuterWallBreached="..tostring(GetKeepOuterWallBreached(keepId, BGQUERY_LOCAL)))


OuterWallBreached == false is OK since this an outpost with no outer wall
But InnerWallBreached == false is wrong... or?

ZOS_ChipHilseberg 09/26/18 08:26 AM

It seems like the messaging for this is broken on the back end. We're looking into it.

ZOS_ChipHilseberg 09/26/18 09:09 AM

So it seems like this feature was never fully implemented. We'll be pulling the functions from the game for now. Sorry about the confusion.

Gandalf 09/26/18 09:54 AM

What a pity...

Thanks anyway, Chip!


All times are GMT -6. The time now is 01:52 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI