RaisingThersites Posted June 29, 2021 Share Posted June 29, 2021 Hey All, scripting novice here. Most of what I've been starting to learn is from opening and looking at other scripts. Anyhow, I'm attempting to place a script on an activator that changes both faction and Eye Texture. I got the faction part figured out, but the Eye Texture change is eluding me. Again, I know very little formally about script writing. I have seen the tutorial on changing an actor's eye texture (here), and understand it mostly, but I don't know how to apply the effect to the Player, nor do I know any pre or post scripting that has to happen aside from assigning the property and function lines. Thanks again! Link to comment Share on other sites More sharing options...
maxarturo Posted June 29, 2021 Share Posted June 29, 2021 If you want this to be permanent or persistent until something else happens in your mod, then you need to create a 'New Race' which will have your eyes color setted up, and then change the race of the actor. This function works only for that time that you will use it, after you save and reload for example the eyes will return to its original state, and to make this function to be persistent requires an excessive scripting for something so simple. As stated in "creationkit.com". Forces a new eye texture on the actor. This will only last until the actor reloads their 3D. Have a happy modding. Link to comment Share on other sites More sharing options...
RaisingThersites Posted June 29, 2021 Author Share Posted June 29, 2021 I did see that and wonder exactly what it meant. Thank you for clarifying!Incidentally, I did already create a race before I had decided to attempt this scripting feat. How would I change the player's race through script (if there's a link, that's fine too!) Is what you propose as complicated as essentially making a new vampire-like race that one turns into or is it simpler than that? Link to comment Share on other sites More sharing options...
maxarturo Posted June 29, 2021 Share Posted June 29, 2021 It's like you said it: "making a new vampire-like race that one turns into". You will need to add to the game all the necessary assets for that race, and then use a script like the 'Vampire Change' script to do your stuff. Link to comment Share on other sites More sharing options...
RaisingThersites Posted June 29, 2021 Author Share Posted June 29, 2021 Oi! That's what I was afraid of (womp womp). Thank you for confirming! Link to comment Share on other sites More sharing options...
maxarturo Posted June 30, 2021 Share Posted June 30, 2021 A lightweight scripted alternative is to create a "Spell Ability" which will carry your script and you can add it to the player when your activator is triggered, since the 'Ability' executes everytime you load or enter a cell it will change the eye's textures even if those had returned to its original state. * This is just a thought and it needs some testing to check that it doesn't need more scripting. Add the script to the ability spell's 'Magic Effect'. Script example: TextureSet Property EyesTEX Auto Event OnEffectStart(Actor akTarget, Actor akCaster) akCaster.SetEyeTexture(EyesTEX) EndEvent Have a happy modding. Link to comment Share on other sites More sharing options...
RaisingThersites Posted July 2, 2021 Author Share Posted July 2, 2021 Worked like a charm! Many thanks!!! Link to comment Share on other sites More sharing options...
Recommended Posts