mathem99 Posted August 24, 2023 Share Posted August 24, 2023 (edited) Hello, everyone. I'm trying to add Winona to DS and I want to reorganize the order on which she appears, by default any and all modded characters will appear at the end of the list in the character select screen. I want, if possible, to add Winona between Wigfrid and Webber. Does anyone know how I can do that? Thanks for the help! Edit 1: I tried using: table.insert(ROG_CHARACTERLIST, "winona") in modmain.lua but it made the character be locked for some reason and the silhouette was that on Wilson's instead of Winona's Edited August 24, 2023 by mathem99 Link to comment https://forums.kleientertainment.com/forums/topic/150613-putting-a-modded-character-in-a-different-order-in-the-select-screen/ Share on other sites More sharing options...
Rickzzs Posted August 25, 2023 Share Posted August 25, 2023 function GetActiveCharacterListForSelection() local list = MAIN_CHARACTERLIST if IsDLCEnabled(REIGN_OF_GIANTS) then list = JoinArrays(list, ROG_CHARACTERLIST) if IsDLCEnabledAndInstalled(CAPY_DLC) then list = JoinArrays(list, SHIPWRECKED_CHARACTERLIST) end if IsDLCEnabledAndInstalled(PORKLAND_DLC) then list = JoinArrays(list, PORKLAND_CHARACTERLIST) end end if IsDLCEnabled(CAPY_DLC) then if IsDLCInstalled(REIGN_OF_GIANTS) then list = JoinArrays(list, ROG_CHARACTERLIST) end if IsDLCEnabledAndInstalled(PORKLAND_DLC) then list = JoinArrays(list, PORKLAND_CHARACTERLIST) end list = JoinArrays(list, SHIPWRECKED_CHARACTERLIST) end if IsDLCEnabled(PORKLAND_DLC) then if IsDLCInstalled(REIGN_OF_GIANTS) then list = JoinArrays(list, ROG_CHARACTERLIST) end if IsDLCInstalled(CAPY_DLC) then list = JoinArrays(list, SHIPWRECKED_CHARACTERLIST) end list = JoinArrays(list, PORKLAND_CHARACTERLIST) end for i=#list,1,-1 do for t,rchar in ipairs(RETIRED_CHARACTERLIST)do if rchar == list[i] then table.remove(list,i) end end end return JoinArrays(list, MODCHARACTERLIST) end function GetActiveCharacterList() return JoinArrays(GetOfficialCharacterList(), MODCHARACTERLIST) end Link to comment https://forums.kleientertainment.com/forums/topic/150613-putting-a-modded-character-in-a-different-order-in-the-select-screen/#findComment-1661367 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now