Jump to content

Question regarding chaging eyes with script


strike105x

Recommended Posts

Hi is their any way to change the eye texture or the eyes with a script, like lets say a i want to make a transformation spell in which i want beside some other changes for my character to also have different eyes, is that possible ?
Link to comment
Share on other sites

Thank you, can it also be done with teeth ? to set to fangs when the transformation occurs, also is their a way to set back the eyes you previously had ? I mean a way for the script to remember what you had before the change so when you transform back to normal to have back your original teeth and eyes.
Link to comment
Share on other sites

If it's possible with teeth, I don't know how. You might want to try asking in this thread. It's a thread dealing with changing the feet of khajiit and argonians, so I think they'll be able to tell you if changing the teeth on the fly is possible.

 

As for how to set the eyes back to what you had before, here is an example. Make a new quest and call it "ExampleQuest", a new spell called "EyeChangeSpell" and a new ability called "EyeChangeAbility".

 

Attach this script to the quest:

scn ExampleQuestScript

ref eyes

Begin GameMode

Player.AddSpell EyeChangeSpell
StopQuest ExampleQuest

End

 

Attach this script to the spell's spell effect:

scn EyeChangeSpellScript

Begin ScriptEffectStart

if (Player.RemoveSpell EyeChangeAbility == 0)
	Player.AddSpell EyeChangeAbility
endif

End

 

Attach this script to the ability's spell effect:

scn EyeChangeAbilityScript

Begin ScriptEffectStart

let ExampleQuest.eyes := Player.GetEyes
Player.SetEyes NewEyes

End

Begin ScriptEffectFinish

Player.SetEyes ExampleQuest.eyes

End

 

"NewEyes" should be the formID of the new eyes. Obviously, if you changed any of the example names, you'll also have to change the names in the script.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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