ReDragonInc wrote: ↑Wed Aug 16, 2023 1:11 am
Killerzone101 wrote: ↑Wed Aug 16, 2023 12:57 am
Hi guys
Is there a way get all investigation dice rolls ?
( Max Skills ) i tried the cheat engine for " Add Skill Proficiency, Expertise, and Advantage " but they are perma and are removed once i reload a save.
You have to make sure to use the right option, but when you change it, you want it to look like this. That should ideally be an example of what you're looking for. Save the game, activate the code, save it again, and load that save. It should stick.
ProficiencyBonus(Skill,Investigation);EfficiencyBonus(Investigation);Advantage(AllAbilities)
So this is the script for : "Add Skill Proficiency, Expertise, and Advantage"
[ENABLE]
{$lua}
if syntaxcheck then return end
local skills = {
"WarriorLore",
"Nature",
"RangerLore",
"RogueLore",
"SingleHanded",
"TwoHanded",
"Investigation",
"Ranged",
"Shield",
"Perception",
"PhysicalArmorMastery",
"Arcana",
"Insight",
"FireSpecialist",
"WaterSpecialist",
"AirSpecialist",
"Survival",
"Religion",
"AnimalHandling",
"Polymorph",
"Repair",
"Stealth",
"SleightOfHand",
"Thievery",
"History",
"Crafting",
"Performance",
"Deception",
"Intimidation",
"Reason",
"Persuasion",
"Leadership",
"Luck",
"DualWielding",
"Wand",
"MagicArmorMastery",
"Medicine",
"Perseverance",
"Runecrafting",
"Brewmaster",
"Athletics",
"Acrobatics",
"Sulfurology"
}
local boost = "ProficiencyBonus(Skill,%s);ExpertiseBonus(%s);Advantage(Skill,%s)"
local cmdCall = getAddress("cmdCall")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
local cmdStr2 = getAddress("cmdStr2")
PrepareCall("GetHostCharacter")
executeCodeEx(0, nil, cmdCall)
local player = readPointer(cmdArgs + 0x08)
player = readString(player, 256, false)
writeString(cmdStr1, player)
writeBytes(cmdStr1 + #player, 0)
for i = 1, #skills do
local skill = skills
local value = string.format(boost, skill, skill, skill)
writeString(cmdStr2, value)
writeBytes(cmdStr2 + #value, 0)
PrepareCall("AddBoosts")
writePointer(cmdArgs + 0x08, cmdStr1)
writePointer(cmdArgs + 0x18, cmdStr2)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
executeCodeEx(0, nil, cmdCall)
end
{$asm}
[DISABLE]
Are u saying that i need to change the script to make it perma ?
Like do i change this line to this ?
local boost = "ProficiencyBonus(Skill,%s);ExpertiseBonus(%s);Advantage(Skill,%s)"
to
ProficiencyBonus(Skill,Investigation);EfficiencyBonus(Investigation);Advantage(AllAbilities)
Thanks