[UMod] Extended Hooks (0.3.15)
Posted: Sun Jan 17, 2021 10:34 pm
This is a mod for modders. It adds many new hooks in order to allow for more customization of skills, traits and items
Reference: https://github.com/7Soul/log2_extended_hooks/wiki
How to use:
1 - First you have to be on the new beta branch. On steam, right click the game > Properties > Betas. Add the code "ggllooeegggg" to unlock the secret "nutcracker" beta
2 - Go to "\Documents\Almost Human\legend of grimrock 2". Once the beta is downloaded, you'll see a file named "mods.cfg" and a "Mods" folder
3 - Download mod folder: https://drive.google.com/file/d/17hr7cZ ... sp=sharing
4 - Extract the hooks folder into the Mods folder, so it looks like /Mods/hooks
5 - Add the mod to mods.cfg so it looks like this:
When using this mod by itself, the default traits, spells and skills won't work. You need to replace the existing definitions with the ones from the mod. For instance, the light weapons skill won't do anything. You need the definition included in the mod that uses the "onComputeDamageMultiplier" function. Similarly, spells now include their power in their definition
Examples:
Enables dual wielding with your free hands:
Adds pierce to crits
Makes concentration spells cheaper
Reduces equipped armor's weight by 10%
Reference: https://github.com/7Soul/log2_extended_hooks/wiki
How to use:
1 - First you have to be on the new beta branch. On steam, right click the game > Properties > Betas. Add the code "ggllooeegggg" to unlock the secret "nutcracker" beta
2 - Go to "\Documents\Almost Human\legend of grimrock 2". Once the beta is downloaded, you'll see a file named "mods.cfg" and a "Mods" folder
3 - Download mod folder: https://drive.google.com/file/d/17hr7cZ ... sp=sharing
4 - Extract the hooks folder into the Mods folder, so it looks like /Mods/hooks
5 - Add the mod to mods.cfg so it looks like this:
Code: Select all
mods = {
"hooks/hooks_def.lua",
"hooks/hooks_gui.lua",
"hooks/hooks_redefines.lua",
"hooks/hooks_1.lua",
"hooks/hooks_components.lua",
"hooks/BombItem.lua",
"hooks/CastSpell.lua",
"hooks/ContainerItem.lua",
"hooks/CraftPotion.lua",
"hooks/Map.lua",
"hooks/SurfaceSocket.lua",
}Examples:
Enables dual wielding with your free hands:
Code: Select all
onCheckDualWielding = function(champion, weapon1, weapon2, level)
if level > 0 and not weapon1 and not weapon2 then
return true
end
endCode: Select all
onComputePierce = function(monster, champion, weapon, attack, projectile, dmg, dmgType, attackType, crit, backstab, level)
if level > 0 and crit then
return 20
end
end,Code: Select all
onComputeSpellCost = function(champion, name, cost, skill, level)
if level > 0 then
if skill == "concentration" then
return 0.85
end
end
endCode: Select all
onComputeItemWeight = function(champion, equipped, level)
if level > 0 and equipped then
return 0.9
end
end,