elboricua228 wrote: ↑Sun Nov 01, 2020 4:30 pm
I was able to extract the pak files and find spell ids but I would love a feature that allows the addition of feats or proficiencies to a character. any way to go about this?
Armor Proficiencies
[ENABLE]
{$lua}
if syntaxcheck then return end
local uuid = "Proficiency(HeavyArmor);Proficiency(MediumArmor);Proficiency(LightArmor);Proficiency(Shields);"
local cmdCall = getAddress("cmdCall")
local cmdAddr = getAddress("cmdAddr")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
writePointer(cmdAddr, getAddress("GetHostCharacter"))
executeCodeEx(0, nil, cmdCall)
writePointer(cmdAddr, getAddress("AddBoosts"))
writePointer(cmdArgs + 0x18, cmdStr1)
writeString(cmdStr1, uuid)
writeBytes(cmdStr1 + #uuid, 0)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
executeCodeEx(0, nil, cmdCall)
{$asm}
assert(true)
[DISABLE]
Weapon Proficiencies
[ENABLE]
{$lua}
if syntaxcheck then return end
local uuid = "Proficiency(MartialWeapons);Proficiency(SimpleWeapons);Proficiency(HandCrossbows);Proficiency(Longswords);Proficiency(Rapiers);Proficiency(Shortswords);Proficiency(Daggers);Proficiency(Darts);Proficiency(Slings);Proficiency(Quarterstaffs);Proficiency(LightCrossbows);"
local cmdCall = getAddress("cmdCall")
local cmdAddr = getAddress("cmdAddr")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
writePointer(cmdAddr, getAddress("GetHostCharacter"))
executeCodeEx(0, nil, cmdCall)
writePointer(cmdAddr, getAddress("AddBoosts"))
writePointer(cmdArgs + 0x18, cmdStr1)
writeString(cmdStr1, uuid)
writeBytes(cmdStr1 + #uuid, 0)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
executeCodeEx(0, nil, cmdCall)
{$asm}
assert(true)
[DISABLE]
Bonus Skill Proficiencies
[ENABLE]
{$lua}
if syntaxcheck then return end
local uuid = "ProficiencyBonus(Skill,Acrobatics);ProficiencyBonus(Skill,AnimalHandling);ProficiencyBonus(Skill,Arcana);ProficiencyBonus(Skill,Athletics);ProficiencyBonus(Skill,Deception);ProficiencyBonus(Skill,History);ProficiencyBonus(Skill,Insight);ProficiencyBonus(Skill,Intimidation);ProficiencyBonus(Skill,Investigation);ProficiencyBonus(Skill,Medicine);ProficiencyBonus(Skill,Nature);ProficiencyBonus(Skill,Persuasion);ProficiencyBonus(Skill,Perception);ProficiencyBonus(Skill,Performance);ProficiencyBonus(Skill,Religion);ProficiencyBonus(Skill,SleightOfHand);ProficiencyBonus(Skill,Stealth);ProficiencyBonus(Skill,Survival);"
local cmdCall = getAddress("cmdCall")
local cmdAddr = getAddress("cmdAddr")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
writePointer(cmdAddr, getAddress("GetHostCharacter"))
executeCodeEx(0, nil, cmdCall)
writePointer(cmdAddr, getAddress("AddBoosts"))
writePointer(cmdArgs + 0x18, cmdStr1)
writeString(cmdStr1, uuid)
writeBytes(cmdStr1 + #uuid, 0)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
executeCodeEx(0, nil, cmdCall)
{$asm}
assert(true)
[DISABLE]
Bonus Saving Throw Proficiencies
[ENABLE]
{$lua}
if syntaxcheck then return end
local uuid = "ProficiencyBonus(SavingThrow,Wisdom);ProficiencyBonus(SavingThrow,Charisma);ProficiencyBonus(SavingThrow,Dexterity);ProficiencyBonus(SavingThrow,Intelligence);ProficiencyBonus(SavingThrow,Strength);ProficiencyBonus(SavingThrow,Constitution);"
local cmdCall = getAddress("cmdCall")
local cmdAddr = getAddress("cmdAddr")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
writePointer(cmdAddr, getAddress("GetHostCharacter"))
executeCodeEx(0, nil, cmdCall)
writePointer(cmdAddr, getAddress("AddBoosts"))
writePointer(cmdArgs + 0x18, cmdStr1)
writeString(cmdStr1, uuid)
writeBytes(cmdStr1 + #uuid, 0)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
executeCodeEx(0, nil, cmdCall)
{$asm}
assert(true)
[DISABLE]
Hope This Helps