EvenLess wrote: ↑Fri Aug 25, 2023 3:54 pm
Boost Entire Party
I've hacked together a way to boost the entire party in one click...
Figured out how to check if someone was in the party. Script below.
For companions there's flag set on the player, if a companion is in the party, and another if the companion if part of the team (i.e. recruited and either in camp or in party).
For hirelings there's a flag set on the hireling, if the hireling is hired and in the party, and another if the hireling is hired and in the camp (i.e. not in the party).
Code: Select all
{$lua}
if syntaxcheck then return end
companionInParty = {}
-- companionInParty["FLAG_UUID_State_IsInParty"] = {"COMPANION_UUID", "DISPLAY_NAME"}
companionInParty["ef789a01-f41e-4a7d-9097-fa9c4f1d0f16"] = {"c7c13742-bacd-460a-8f65-f864fe41f255", "Astarion"}
companionInParty["126c47da-7d24-49ce-b06f-5a44f09ee87e"] = {"4888dfaa-2e0a-4c10-9c8a-d5345aeb4746", "DarkUrge"}
companionInParty["639d141f-6fa8-4d93-8eb7-41243e0fea32"] = {"ad9af97d-75da-406a-ae13-7071c563f604", "Gale"}
companionInParty["9a3ea4cd-3a44-40f7-9d63-2b29bdb28725"] = {"7628bc0e-52b8-42a7-856a-13a6fd413323", "Halsin"}
companionInParty["1b86aa78-a2db-4faa-b4a6-c5591c03bac9"] = {"91b6b200-7d00-4d62-8dc9-99e8339dfa1a", "Jaheira"}
companionInParty["eb7c4de0-36b7-4086-aa33-82c09596a395"] = {"2c76687d-93a2-477b-8b18-8a14b549304c", "Karlach"}
companionInParty["3ee6b1f2-24f4-4e85-b7dc-49060e6d2699"] = {"58a69333-40bf-8358-1d17-fff240d7fb12", "Lae'zel"}
companionInParty["aeb58e60-562a-4e20-8cb2-0deb03b010fc"] = {"0de603c5-42e2-4811-9dad-f652de080eba", "Minsc"}
companionInParty["766b8981-eb17-3ec5-5d30-2626509c550f"] = {"25721313-0c15-4935-8176-9f134385451b", "Minthara"}
companionInParty["9a029c5a-e3c3-45ef-9cd4-1cb45718deb1"] = {"3ed74f06-3c60-42dc-83f6-f034cb47c679", "Shadowheart"}
companionInParty["12fecc65-b6f4-4dc3-3832-2f81314fc22d"] = {"c774d764-4a17-48dc-b470-32ace9ce447d"; "Wyll"}
hireling = {}
-- hireling["HIRELING_UUID"] = {"CLASS", "DISPLAY_NAME"}
hireling["7bed07ee-d1db-498d-bbfd-600ddf04676e"] = {"Barbarian", "Eldra Luthrinn"}
hireling["4d3c9cb3-ca34-46ba-9c81-44081270bfde"] = {"Bard", "Brinna Brightsong"}
hireling["12e541ac-1eb3-4b8c-a8b8-95263e30b217"] = {"Cleric", "Zenith Feur'sel"}
hireling["49f522f8-9ac9-431e-ab39-a45e38e222c2"] = {"Druid", "Danton"}
hireling["d61d12ad-dc80-4805-8c6e-fb876da196cd"] = {"Fighter", "Varanna Sunblossom"}
hireling["0b149cab-4438-467a-953d-8697535b953d"] = {"Monk", "Sina'zith"}
hireling["244e782b-a99c-444a-bd8d-d356c26c2902"] = {"Paladin", "Kerz"}
hireling["0488a406-402c-4bd1-ba38-63b28c112d8d"] = {"Ranger", "Ver'yll Wenkiir"}
hireling["e4818484-7ee4-466b-82b3-60bbd7b2ff8f"] = {"Rogue", "Maddala Deadeye"}
hireling["097aa418-eda5-47f9-867f-29a4339be03e"] = {"Sorcerer","Jacelyn"}
hireling["ee3f1f8d-f2d1-43f2-aba0-72cacafce03c"] = {"Warlock", "Kree Derryck"}
hireling["2c8c93f0-898b-42d6-b2ca-cf4922852632"] = {"Wizard", "Sir Fuzzalump"}
partyMember = {
GetHostCharacter(),
}
for k,v in pairs(companionInParty) do
local gotFlag = 0
gotFlag = GetFlagOnPlayer(k)
if gotFlag ~= nil and gotFlag ~= 0 then
print(string.format("Companion '%s' is in your party.", v[2]))
table.insert(partyMember, v[1])
end
end
for k,v in pairs(hireling) do
local gotFlag = 0
gotFlag = GetFlag("0052da16-4401-4873-8176-16336d8942da", k)
if gotFlag ~= nil and gotFlag ~= 0 then
print(string.format("Hireling '%s' (%s) is in your party.", v[2], v[1]))
table.insert(partyMember, k)
end
end
{$asm}
[ENABLE]
{$lua}
for i = 1, #partyMember do
AddBoosts(partyMember[i], 'AbilityOverrideMinimum(Constitution,30);')
end
{$asm}
[DISABLE]
{$lua}
for i = 1, #partyMember do
RemoveBoosts(partyMember[i], 'AbilityOverrideMinimum(Constitution,30);')
end
{$asm}
The tables I played around with are below, for reference.
Code: Select all
isInParty = {}
isInParty["ef789a01-f41e-4a7d-9097-fa9c4f1d0f16"] = {"ORI_Astarion_State_IsInParty", "ORI_Asterion_State_IsInPartydescription"}
isInParty["126c47da-7d24-49ce-b06f-5a44f09ee87e"] = {"ORI_DarkUrge_State_IsInParty", ""}
isInParty["639d141f-6fa8-4d93-8eb7-41243e0fea32"] = {"ORI_Gale_State_IsInParty", "ORI_Gale_State_IsInPartydescription"}
isInParty["9a3ea4cd-3a44-40f7-9d63-2b29bdb28725"] = {"ORI_Halsin_State_IsInParty", ""}
isInParty["1b86aa78-a2db-4faa-b4a6-c5591c03bac9"] = {"ORI_Jaheira_State_IsInParty", ""}
isInParty["eb7c4de0-36b7-4086-aa33-82c09596a395"] = {"ORI_Karlach_State_IsInParty", ""}
isInParty["3ee6b1f2-24f4-4e85-b7dc-49060e6d2699"] = {"ORI_Laezel_State_IsInParty", "ORI_Laezel_State_IsInPartydescription"}
isInParty["aeb58e60-562a-4e20-8cb2-0deb03b010fc"] = {"ORI_Minsc_State_IsInParty", "ORI_Minsc_State_IsInPartydescription"}
isInParty["766b8981-eb17-3ec5-5d30-2626509c550f"] = {"ORI_Minthara_State_IsInParty", "Minthara has joined the party"}
isInParty["9a029c5a-e3c3-45ef-9cd4-1cb45718deb1"] = {"ORI_ShadowHeart_State_IsInParty", "ORI_ShadowHeart_State_IsInPartydescription"}
isInParty["12fecc65-b6f4-4dc3-3832-2f81314fc22d"] = {"ORI_Wyll_State_IsInParty", "ORI_Wyll_State_IsInPartydescription"}
Code: Select all
partOfTheTeam = {}
partOfTheTeam["24ae9cee-0516-47c6-8291-cb143256264d"] = {"GLO_Origin_PartOfTheTeam_Astarion", "Set when Astarion is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["fbf4c4a8-99bb-4e62-a78c-cc9c115bd938"] = {"GLO_Origin_PartOfTheTeam_DarkUrge", "Set when DarkUrge is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["4f1acb3b-17e8-4036-a43c-fc6ee2828061"] = {"GLO_Origin_PartOfTheTeam_Gale", "Set when Gale is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["77382f4f-8302-4642-b6ba-6f0bc8acf5c3"] = {"GLO_Origin_PartOfTheTeam_Halsin", "Set when Halsin is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["d7d29efe-70bb-47c2-9db3-bc8a10347bc6"] = {"GLO_Origin_PartOfTheTeam_Jaheira", "Set when Jaheira is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["b1e6f12a-600a-4e2e-9871-b08a9fe3a617"] = {"GLO_Origin_PartOfTheTeam_Karlach", "Set when Karlach is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["57d93a1d-4400-4307-845f-25d9a250d332"] = {"GLO_Origin_PartOfTheTeam_Laezel", "Set when Laezel is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["3510cd49-7ff6-475c-829b-d4d68a07b085"] = {"GLO_Origin_PartOfTheTeam_Minsc", "Set when Minsc is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["fa0e4e0b-08f9-4094-bfed-5205481c683c"] = {"GLO_Origin_PartOfTheTeam_Minthara", "Set when Minthara is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["7f9ac9e8-1e8d-4bf8-8716-68215f0f066e"] = {"GLO_Origin_PartOfTheTeam_Shadowheart", "Set when Shadowheart is part of the team, meaning recruited, regardless of whether in camp or in party"}
partOfTheTeam["55baeacd-0a37-3f4d-c128-352a840d0519"] = {"GLO_Origin_PartOfTheTeam_Wyll", "Set when Wyll is part of the team, meaning recruited, regardless of whether in camp or in party"}
Code: Select all
hirelingState = {}
hirelingState["0052da16-4401-4873-8176-16336d8942da"] = {"Hireling_State_Hired", "Set on: hireling. When: hired & in party."}
hirelingState["30724acb-5533-4826-8c12-f3816d3e4ace"] = {"Hireling_State_InCamp", "Set on: hireling. When: hired & in camp."}
Code: Select all
companion = {}
companion["c7c13742-bacd-460a-8f65-f864fe41f255"] = "Astarion"
companion["4888dfaa-2e0a-4c10-9c8a-d5345aeb4746"] = "DarkUrge"
companion["ad9af97d-75da-406a-ae13-7071c563f604"] = "Gale"
companion["7628bc0e-52b8-42a7-856a-13a6fd413323"] = "Halsin"
companion["91b6b200-7d00-4d62-8dc9-99e8339dfa1a"] = "Jaheira"
companion["2c76687d-93a2-477b-8b18-8a14b549304c"] = "Karlach"
companion["58a69333-40bf-8358-1d17-fff240d7fb12"] = "Lae'zel"
companion["0de603c5-42e2-4811-9dad-f652de080eba"] = "Minsc"
companion["25721313-0c15-4935-8176-9f134385451b"] = "Minthara"
companion["3ed74f06-3c60-42dc-83f6-f034cb47c679"] = "Shadowheart"
companion["c774d764-4a17-48dc-b470-32ace9ce447d"] = "Wyll"