Jump to content

[LE] Force preset on Player


Recommended Posts

Greetings, fellow modders



I have been contemplating making a story mod, but there is one issue: I want it to be a story about particular character (like Witcher is a story about Geralt of Rivia, not some random character, that cometh from character creation),



As we know, there is "NPC" entry called "prisoner" in Skyrim, that would become our PC and that character creation is applied to.



My question is, would it be possible to make it so, that either through a certain choice in certain dialogue (for example if I was to make it as a Live Another Life addon or something similar) or using a certain item, we would force a certain appearance (a racemenu preset for example), name and other starting attributes on our PC?



If 'tis doable, then I'd appreciate any information on how to do this, because my scripting skills are a bit lacking (I can modify and adjust existing scripts, but writing them from scratch is still beyond my abilities)



Link to comment
Share on other sites

CharGen.LoadCharacterPresetEx(Game.GetPlayer(),"NameOfThePresetHere",Game.GetFormFromFile(0x801,"RaceMenu.esp") as ColorForm,0)

 

The above command requires at minimum the scripts from Racemenu mod. The plugin is kinda optional, but needed if you want that haircolor record, though you can likely put None there instead

 

Name of the preset assumes its located in the Presets folder from Racemenu. If its elsewhere you have to point accordingly

Link to comment
Share on other sites

Might try that. Thanks for suggestion.

 

Not very certain though, if that will get only slider preset or sliders and face sculpt both onto player.

 

I was also thinking of following way: would it be possible to make a dummy NPC entry that hath the desired characteristics (including face preset) and then force copy NPC attributes onto PC character?

Edited by TairaNoritsune
Link to comment
Share on other sites

  • Recently Browsing   0 members

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