Jump to content

Mod Request: Forever Young Looking Mod


Recommended Posts

Posted (edited)

I'm looking for a mod to make my character stop visually aging after reaching certain age ,i.e, 30 years. Meaning, my character still ages normally but it just looks younger visually. I know the mod [Extended Immortality] has this option, but I dont want to make my character immortal.

 

Edited by LittlelSister
Posted

If you set the gene_age type to no_aging among portrait attributes, aging stops at about 30.

 

After defining the appropriate trait, add it to trait_portrait_modifiers like this:
dna_modifier = {
     morph = {
         mode = replace
         gene = gene_age
         template = no_aging
         value = 1.0
     }
}

  • 3 weeks later...
Posted
On 1/31/2022 at 3:40 PM, pialid said:

If you set the gene_age type to no_aging among portrait attributes, aging stops at about 30.

 

After defining the appropriate trait, add it to trait_portrait_modifiers like this:
dna_modifier = {
     morph = {
         mode = replace
         gene = gene_age
         template = no_aging
         value = 1.0
     }
}

Could you possibly go into further detail on how to make this work? I successfully created a new trait called 'unaging' that's applied to every girl (both random and born), and added this code: 

unaging = {
    unaging = {
        traits = {
            unaging
        }
        dna_modifier = {
            morph = {
            mode = replace
            gene = gene_age
            template = no_aging
            value = 1.0
            }
        }
    }
}

 

To trait_portrait_modifiers, but characters with the trait still age like normal.

Posted (edited)

@aledeth That's weird. On my side, it's working fine.
If it doesn't work with trait_modifier, try with portrait_modifier.

The usage is similar.

 

test_age = {
    usage = game
    selection_behavior = weighted_max

    test_age = {
        dna_modifiers = {
            morph = {
                mode = replace
                gene = gene_age
                template = no_aging
                value = 1.0
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_trait = unaging
            }
        }
    }
}

 

gfx/portraits/portrait_modifier/some_new_file.txt

Edited by pialid
Posted

I'll try that today, haven't had a lot of free time to test.

 

I think the initial failure could have been because I screwed up and forgot to add genetic_constraint_all = unaging to my trait, so it never tried to change the genes according to instructions?

 

I'll try both changes, and if it works then yay.

Posted

@pialid So your 2nd fix worked... kinda. Everyone with the trait does appear 30 no matter how old, but it also made kids look that old too. My attempts to make the trait alone work haven't done anything noticeable sadly. 

 

Seems like the only way to get characters to age up to 30 and then stop would be to create a scripted trigger or something that checks for characters at the age of 30 and adds the trait if they don't have it, which is way beyond my knowledge of how to do.

  • 10 months later...
Posted

The trait just acts as a trigger. You could set it to activate on characters with a given flag or variable and just seed that flag or variable at game start and/or birth.

  • 3 weeks later...
  • 2 weeks later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...