Jump to content

Script pex


Recommended Posts

Posted

I'm experimenting with a damage-based mod, like Bloody Spell.
So, the goal would be to visually damage equipment when it takes a certain number of hits.

 

I modified the DDS to avoid touching the mesh in SMP

 

Spoiler

Immagine1.jpg.8185ef13e482d3a2b5cb1eef26aa0eba.jpg

 

Into the Game ( To see the behavior, I applied the modified DDS)

 

Spoiler

enb2025_9_7_18_04_37.jpg.5dab94deb825e511163c20d0c5633d72.jpg

 

Below is the PSC

 

Demon Hunter Damage.psc

 

Can someone generate the pex for me? I don't have CK installed

 

 

 

  • 1 month later...
Posted

I see You two had fun xDD

 

Good point on the renaming script Blinkparkoor :) Well it happens when the code was probably writen by GPT

LE NiOverride:

NiOverride.psc

 

SE NiOverride: ( Exported with BAE from RaceMenu - it no longer comes as separate mod like it did with LE )

nioverride.psc

 

 

 

You can look into the NiOverride but I dont think such function as SetTextureOverride exist in Papyrus... GPT / Gemini simply halucinated them...

You could try:

Function AddOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, TextureSet value, bool persist) native global

 

Tho I never really used NiOverride too much so can't really help u...

Tho that function is at least part of NiOverride so u wont get "not a function" error :P

 

Also to clarify, yes You call them right as GPT / Gemini told You:

NiOverride.AddOverrideTextureSet( ... )

 

 

Posted
On 9/7/2025 at 6:15 PM, Dorabella said:

Can someone generate the pex for me? I don't have CK installed

 

Some points about your script:


- The file name must be the same as the script name (OutfitDamage.pcs)
- \ must be escaped. The notation would be "textures\\armor\\egilvar\\demonhunter\\gownripped.dds"
- There is no SetTextureOverride function in NiOverride

- However, there is a SetNodeTextureSet function in NetImmerse
For this, the name of the node (NiTriShape) must be known and texture sets must be defined.

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...