Page 1 of 1

Increasing skills above 100

Posted: Sat Apr 25, 2020 12:58 pm
by Butcer
Is it possible to create a dagskill like mod in daggerfall unity? Where is the skill cap then loctated in unity ?

Increasing skills above 100

Posted: Sat Apr 25, 2020 1:37 pm
by Butcer
Ok in formula.helper

Code: Select all

public static int MaxStatValue()
        {
            Func<int> del;
            if (TryGetOverride("MaxStatValue", out del))
                return del();
            else
                return 100;
        }
If i change it to

Code: Select all

        public static int MaxStatValue()
        {
            Func<int> del;
            if (TryGetOverride("MaxStatValue", out del))
                return del();
            else
                return 200;
        }
Will that work to allow skills to leveled over 100?

Re: Increasing skills above 100

Posted: Sat Apr 25, 2020 1:46 pm
by Ralzar
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.

Help trying to create a mod to allow max stats over 100, what i am doing wrong?

Posted: Sat Apr 25, 2020 2:16 pm
by Butcer
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;
            }
        }

Re: Increasing skills above 100

Posted: Sat Apr 25, 2020 2:25 pm
by TheLacus
Merged all three topics into one and edited messages to use code blocks.

Re: Increasing skills above 100

Posted: Sat Apr 25, 2020 4:51 pm
by Butcer
TheLacus wrote: Sat Apr 25, 2020 2:25 pm Merged all three topics into one and edited messages to use code blocks.

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>
In PlayerEntity is this the code?

Re: Increasing skills above 100

Posted: Sat Apr 25, 2020 6:58 pm
by TheLacus
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.

Re: Increasing skills above 100

Posted: Sun Apr 26, 2020 1:47 am
by Butcer
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 ?

Re: Increasing skills above 100

Posted: Tue May 12, 2020 6:25 am
by Guy_Duderson
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.