Increasing skills above 100
-
- Posts: 6
- Joined: Sat Apr 25, 2020 12:54 pm
Increasing skills above 100
Is it possible to create a dagskill like mod in daggerfall unity? Where is the skill cap then loctated in unity ?
-
- Posts: 6
- Joined: Sat Apr 25, 2020 12:54 pm
Increasing skills above 100
Ok in formula.helper
If i change it to
Will that work to allow skills to leveled over 100?
Code: Select all
public static int MaxStatValue()
{
Func<int> del;
if (TryGetOverride("MaxStatValue", out del))
return del();
else
return 100;
}
Code: Select all
public static int MaxStatValue()
{
Func<int> del;
if (TryGetOverride("MaxStatValue", out del))
return del();
else
return 200;
}
Last edited by TheLacus on Sat Apr 25, 2020 2:27 pm, edited 1 time in total.
Reason: Use code block
Reason: Use code block
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: Increasing skills above 100
No, that is the code for attributes. If you want to increase this, I’d reccommend my mod LevelUp Adjuster which lets you change a bunch of these formulas.
Changing skills? Don’t think it’s possible in an easy way. And a lot of mechanics will likely break if you go above 100.
Changing skills? Don’t think it’s possible in an easy way. And a lot of mechanics will likely break if you go above 100.
-
- Posts: 6
- Joined: Sat Apr 25, 2020 12:54 pm
Help trying to create a mod to allow max stats over 100, what i am doing wrong?
What am i doing wrong ?
Code: Select all
using UnityEngine;
using System;
using DaggerfallConnect;
using DaggerfallWorkshop.Game.Guilds;
using DaggerfallWorkshop.Game.Entity;
using DaggerfallWorkshop.Game.MagicAndEffects;
using DaggerfallWorkshop.Game.MagicAndEffects.MagicEffects;
using System.Collections.Generic;
using DaggerfallConnect.Arena2;
using DaggerfallWorkshop.Game.Items;
using DaggerfallWorkshop.Utility;
using DaggerfallConnect.Save;
using DaggerfallWorkshop.Game.Utility;
using DaggerfallWorkshop.Game.Utility.ModSupport;
public class NewBehaviourScript : MonoBehaviour {
namespace DaggerfallWorkshop.Game.Formulas
{
/// <summary>
/// Common formulas used throughout game.
/// Where the exact formula is unknown, a "best effort" approximation will be used.
/// Most formula can be overridden by registering a new method matching the appropriate delegate signature.
/// Other signatures can be added upon demand.
/// </summary>
public static class FormulaHelper
{
private struct FormulaOverride
{
internal readonly Delegate Formula;
internal readonly Mod Provider;
internal FormulaOverride(Delegate formula, Mod provider)
{
Formula = public static int MaxStatValue(200);
Provider = provider;
}
}
- Attachments
-
- testmaxskill.zip
- (1.22 KiB) Downloaded 94 times
Last edited by TheLacus on Sat Apr 25, 2020 2:28 pm, edited 1 time in total.
Reason: Use code block
Reason: Use code block
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Increasing skills above 100
Merged all three topics into one and edited messages to use code blocks.
-
- Posts: 6
- Joined: Sat Apr 25, 2020 12:54 pm
Re: Increasing skills above 100
Code: Select all
/// <summary>
/// Gets whether the player has already become master of a skill.
/// </summary>
public bool AlreadyMasteredASkill()
{
bool mastered = false;
List<DFCareer.Skills> primarySkills = GetPrimarySkills();
foreach (DFCareer.Skills skill in primarySkills)
{
if (skills.GetPermanentSkillValue(skill) == 100)
{
mastered = true;
break;
}
}
return mastered;
}
/// <summary>
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Increasing skills above 100
My involvement here was limited to clean up of forums. I believe Ralzar has provided an answer to the topic, you may want to review it or wait for additional feedback from other people.
Ralzar wrote: ↑Sat Apr 25, 2020 1:46 pm No, that is the code for attributes. If you want to increase this, I’d reccommend my mod LevelUp Adjuster which lets you change a bunch of these formulas.
Changing skills? Don’t think it’s possible in an easy way. And a lot of mechanics will likely break if you go above 100.
-
- Posts: 6
- Joined: Sat Apr 25, 2020 12:54 pm
Re: Increasing skills above 100
Then how did Narf the Mouse make CategoricalSkillCaps which reduces max skill level viewtopic.php?t=1649 ?Ralzar wrote: ↑Sat Apr 25, 2020 1:46 pm No, that is the code for attributes. If you want to increase this, I’d reccommend my mod LevelUp Adjuster which lets you change a bunch of these formulas.
Changing skills? Don’t think it’s possible in an easy way. And a lot of mechanics will likely break if you go above 100.
-
- Posts: 17
- Joined: Sat Aug 17, 2019 9:06 pm
Re: Increasing skills above 100
I'd definitely be even harder to implement, but it'd be interesting at least thematically if attributes/skills weren't uncapped initially and you had to accomplish something which would be described as allowing your character to exceed normal mortal limits before those things become uncapped.