Increasing skills above 100
Posted: Sat Apr 25, 2020 12:58 pm
Is it possible to create a dagskill like mod in daggerfall unity? Where is the skill cap then loctated in unity ?
Tools for Daggerfall
https://forums.dfworkshop.net/
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;
}
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;
}
}
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>
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.
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.