Jump to content

Equip an item change a value? (Event OnEquip...)


emoneol

Recommended Posts

Hello everyone.

I'm making an armor mod, so far I've got everything except the script.

First let me explain how I came up with a scriptiing idea for an armor.

 

You see the armor comes in a set which includes a helmet, I've modeled the helmet with a hair mesh into it, making sure the shader is set to "hair tint", but it doesn't help at all, when a character equips the helmet the hair color doesn't adapt to the actor's hair color.

It just comes up with a default color.
This is weird as I tried many times, I don't understand why the skin tint can switch based on the npc skin but not the hair.

So I came up with this idea:

I've separated the hair mesh and the helmet and what I want to do it that whenever an actor equips the helmet, it changes the actor's hair style to my custom hair style, and when he unequips it, he gets his default hair style.

 

Simple idea.
But I'm just starting to learn papyrus, it's not dificult but very long and I got my issue understanding some parts.

I've completed the creation kit wiki tutorials, but still I can't figure out the way my scripting should be, variables and functions are huges, and I don't know them all.

 

I might do it with an event attached to the helmet

"event onequip (objectreference akactionref)

if GetIsID helmet == 1

 

...well here I'm stuck, and I don't even thinks this is correct though I'm pretty sure the script is simple and short...

 

Can you please help me?

 

 

edit: Let me please precise that this is not supposed only to be unique to the player's equiping it but any humanoid NPC.

Edited by emoneol
Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I searched the forum as I'm searching for helmets / hoods with my hair color. Maybe these threads can help you.

 

http://forums.nexusmods.com/index.php?/topic/842240-need-help-with-texture-problem/

 

So here is not a scripting part but still helmets are mentioned.

 

Second I've seen hairs that include a hat. That might be simply a hair + hat combination with no additional effects whatsoever.

 

Also here was a thread with helmet and beards. Though a clipping problem it might help you understand scripting better for your problem:

 

http://forums.nexusmods.com/index.php?/topic/930276-help-needed-in-scripring-breakthrough-mod/

 

Actually I've seen a screen on the meanwhile published mod itself: http://skyrim.nexusmods.com/mods/32722

 

I haven't checked so far if the beard color works as expected though.

 

If for some reason this should not be possible at all due to limitations maybe racemenu or ece could be expanded with either a manual or automatic setting option for hairs of helmets or hoods.

 

Best of luck!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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