Windwhistle Posted October 28, 2015 Share Posted October 28, 2015 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 More sharing options...
Windwhistle Posted October 29, 2015 Author Share Posted October 29, 2015 Bump Link to comment Share on other sites More sharing options...
flatline115 Posted October 29, 2015 Share Posted October 29, 2015 http://www.creationkit.com/SetEyeTexture_-_Actorhttp://www.creationkit.com/Magic_Effect Link to comment Share on other sites More sharing options...
Windwhistle Posted October 29, 2015 Author Share Posted October 29, 2015 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 More sharing options...
Windwhistle Posted October 31, 2015 Author Share Posted October 31, 2015 Err...bump? Link to comment Share on other sites More sharing options...
kdridders Posted November 3, 2015 Share Posted November 3, 2015 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 More sharing options...
Windwhistle Posted November 7, 2015 Author Share Posted November 7, 2015 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 More sharing options...
Recommended Posts