Jump to content

Help creating script for werewolf skin replacers


Recommended Posts

Updating skin is instant with a NiOverride script call, either NiNodeUpdate or perhaps UpdateWeight, been a while but yes it can be instant, just an extra step. AR BR.... Armor Rating and Block Rating would be my assumption

Link to comment
Share on other sites

The engine has the flaw that retains in-game what's in memory, so in order to change a texture's or a mesh's file path it needs to unloaded it from memory, and re-loaded.


......................................................................................................................................


AR = shortcut for 'A Race'

BR = shortcut for 'B Race'


we declare and store the actor's race so that the script/game can use it later.

Race AR = iActor.GetRace() - the actor's primary race

Race BR = iActor.GetRace() - the actor's race once it transforms


( BR == AR )

If ( BRace equals ARace )

;; remove the new skin armor because we are back to normal

Edited by maxarturo
Link to comment
Share on other sites

It does not require SKSE, it uses simple default Papyrus, and it does not matter which version of the game you have.

It's a simple script and it should compile just fine, post your warning message.

Link to comment
Share on other sites

Yeah. Make AR global.

 

 
Race Property WerebeastRace Auto
Armor property WerebeastSkin auto
Armor property WerebeastSkinNew auto
Actor iActor
Race  OriginalRace
 
EVENT OnEffectStart(Actor akTarget, Actor akCaster)
         iActor = akTarget
         OriginalRace = iActor.GetRace()
ENDEVENT
 
EVENT OnRaceSwitchComplete()
    Race NewRace = iActor.GetRace()
    If ( NewRace == WerebeastRace )
         iActor.UnequipItem(WerebeastSkin)
         iActor.EquipItem(WerebeastSkinNew)
    ElseIf ( NewRace == OriginalRace )
         iActor.UnequipItem(WerebeastSkinNew)
    EndIf
ENDEVENT
Link to comment
Share on other sites

Yeah... it was a stupid omission on my part, that I didn't even bother to look at the script again.

That's what you get for trying to assist with your phone while sitting and relaxing on a beach....

Link to comment
Share on other sites

  • Recently Browsing   0 members

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