Jump to content

Change eye color with spell


Windwhistle

Recommended Posts

Yes, I know there are many topics on this, but they all have no answers.

 

Can anyone tell me how to change the eye color of your player character using a spell, and then back to the original eye color using the same spell.

 

So kind of like Night Eye, it can be dispelled.

Link to comment
Share on other sites

I'm a little new with scripting, so if I did something terribly wrong please forgive me.

 

I attached the script below to my spell, which is a power that makes your sight green until you cast it again, and it's not changing my player's eye color at all.

Scriptname RobynGreenSightGlowingEyesStart extends ActiveMagicEffect  

Function SetEyeTexture(TextureSet akTexture) native

Event OnEffectStart(Actor akTarget, Actor akCaster)
	debug.notification("Green Sight started.")

	TextureSet EyesMaleHumanDawnguard
	akCaster.SetEyeTexture(EyesMaleHumanDawnguard)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
	debug.notification("Green Sight finished.")
EndEvent

EyesMaleHumanDawnguard IS the eye color name that I want it to change to.

Link to comment
Share on other sites

I find SetEyeTexture doesn't work in my mod at the moment so i'm working on it lol.

 

I trust you have set the property in the creation kit?

 

I would do:

Scriptname RobynGreenSightGlowingEyesStart extends ActiveMagicEffect  

TextureSet EyesMaleHumanDawnguard ; Make sure to set this property up in the CK

Event OnEffectStart(Actor akTarget, Actor akCaster)
	debug.notification("Green Sight started.")
	akCaster.SetEyeTexture(EyesMaleHumanDawnguard)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
	debug.notification("Green Sight finished.")
        ; change color back
EndEvent

The problem you would have is unless you know the texture of the player before they change, you can't restore the original eyes using SetEyeTexture.

 

Instead i'd make a formlist in the CK and add all the eye colors to it or just the Green ones and note down their index (number).

 

I don't have time right now but I'll try and think of something to add when I get home.

Link to comment
Share on other sites

I find SetEyeTexture doesn't work in my mod at the moment so i'm working on it lol.

 

I trust you have set the property in the creation kit?

 

I would do:

Scriptname RobynGreenSightGlowingEyesStart extends ActiveMagicEffect  

TextureSet EyesMaleHumanDawnguard ; Make sure to set this property up in the CK

Event OnEffectStart(Actor akTarget, Actor akCaster)
	debug.notification("Green Sight started.")
	akCaster.SetEyeTexture(EyesMaleHumanDawnguard)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
	debug.notification("Green Sight finished.")
        ; change color back
EndEvent

The problem you would have is unless you know the texture of the player before they change, you can't restore the original eyes using SetEyeTexture.

 

Instead i'd make a formlist in the CK and add all the eye colors to it or just the Green ones and note down their index (number).

 

I don't have time right now but I'll try and think of something to add when I get home.

It doesn't work. Why couldn't bethesda just be like "HEY THIS WOULD BE A GOOD IDEA TO ADD" .-.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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