Thread Tools Display Modes
09/25/18, 04:11 AM   #1
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
Question GetKeepInnerWallBreached()

With Update 19 two new API calls has been introduced:
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

Last edited by Gandalf : 09/25/18 at 06:31 AM.
  Reply With Quote
09/25/18, 08:33 AM   #2
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Was a keep wall broken when you used these?
  Reply With Quote
09/25/18, 09:45 AM   #3
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
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...

Last edited by Gandalf : 09/26/18 at 01:23 AM.
  Reply With Quote
09/26/18, 03:16 AM   #4
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
Originally Posted by ZOS_ChipHilseberg View Post
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?

Last edited by Gandalf : 09/26/18 at 03:47 AM.
  Reply With Quote
09/26/18, 08:26 AM   #5
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
It seems like the messaging for this is broken on the back end. We're looking into it.
  Reply With Quote
09/26/18, 09:09 AM   #6
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
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.
  Reply With Quote
09/26/18, 09:54 AM   #7
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
What a pity...

Thanks anyway, Chip!
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » GetKeepInnerWallBreached()

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off