server icon indicating copy to clipboard operation
server copied to clipboard

🐛 instance menu should be able to populate more than 1 choice

Open KnowOne134 opened this issue 3 years ago • 0 comments

  • [x] I have paid attention to this example and will edit again if need be to not break the formatting, or I will be ignored
  • [x] I have searched existing issues to see if the issue has already been opened, and I have checked the commit log to see if the issue has been resolved since my server was last updated
  • [x] I have read and understood the Contributing Guide

OS / platform the server is running (if known)

windows 10

Branch affected by issue

base

Steps to reproduce

if you have an active toau mission say Shades of Vengeance and an assault: Seagul Grounded. then when you click the gate the menu should populate with both items to choose from. Currently not something that can be done because the mask is hardcoded into the lookup and should be able to manipulate. LSB:

{ 5600, { 143, 79, -6, 0, 99, 3, 0 }, { 143, 4 }, { 147, 3 } }, -- Shades of Vengeance (TOAU31)
{ 5601, { 143, 31, -4, 0, 70, 0, 1 }, { 143, 4 }, { 147, 0 } }, -- Assault: Seagull Grounded

the 3rd param is what updates menu

in Eden it works like this for that

    if player:hasKeyItem(xi.ki.PERIQIA_ASSAULT_ORDERS) and player:getVar("assaultEntered") == 0 then
        mask = mask - 2
        assault = player:getCurrentAssault()
        level = assaultUtil.missionInfo[assault].suggestedLevel
    end

    if player:getCurrentMission(TOAU) == SHADES_OF_VENGEANCE and player:hasKeyItem(xi.ki.PERIQIA_ASSAULT_AREA_ENTRY_PERMIT) then
        mask = mask - 4
    end

    if mask < 0 then
        player:startEvent(143, {[0] = assault, [1] = mask - 0x02, [3] = level, [4] = destination, [5] = armband})
    end

as you can see here the mask updates as it checks requirements

KnowOne134 avatar Sep 28 '22 00:09 KnowOne134