Jump to content

[Solution] Rename perks via script


JustChill

Recommended Posts

Hey there,

 

as I am tinkering around on a heavily scripted perk mod, I was in need to dynamcally change the perk name of one perk via script.

That is actually just a dummy perk used in the "Conditions" of other perks as description of why the perk may be locked.

 

The thing is that SetName "<string>" <perk EditorID> produces an error, when trying to save the script (even with NVSE and JIP).

The error said that the <perk EditorID> is an invalid object for an item.

But since it has a similar name tag as an actor, weapon, etc. it should totally work.

 

Well, I tricked the GECK by using a reference variable:

Ref DatPerk
 
Begin GameMode
[...] Various code
 
Set DatPerk to <perk EditorID>
SetName "Dat perk has new name!" DatPerk
 
[...]Various code
End

I've checked the perks which use this condition to show a text aside of level and skill requirement and it changes dynamically through that code.

 

 

However, when the game is started again, the original name is applied of course.

So the name change has to be done every GetGameLoaded.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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