Aenorth Posted July 2, 2012 Share Posted July 2, 2012 (edited) Hey there! I'm in the process of forging a modification for Skyrim and need to make a script to enable blindness (FXReadScrollsBlindImod.Apply() - found in fxreadelderscrollscript). It has to be enabled for first person only, not force the PC into first person, as well has to be only for a single race. Can anyone know tell me (write out) the code for this? As I've got hardly any experience with code. And would much appreciate if someone could help me out, so I can just throw the script onto a magic effect. Thanks for reading. :turned: Edited July 2, 2012 by Aenorth Link to comment Share on other sites More sharing options...
Aenorth Posted July 2, 2012 Author Share Posted July 2, 2012 Anybody? :rolleyes: Link to comment Share on other sites More sharing options...
DavidD Posted July 2, 2012 Share Posted July 2, 2012 Use a screen modifier maybe? Then use getRace (I hope that exists) to get the race and .apply() to apply the modifier Link to comment Share on other sites More sharing options...
pauderek Posted July 2, 2012 Share Posted July 2, 2012 It should be something like this: ImageSpaceModifier Property FXReadScrollsBlindImod Auto Race property NordRace auto ;; If you want to apply the effect to another race change this property Race TargetRace Event OnEffectStart(Actor akTarget, Actor akCaster) TargetRace = akTarget.GetRace() if TargetRace == NordRace ;; Again if you want the effect on a different race change it FXReadScrollsBlindImod.Apply() endif EndEvent You have to set the properties on the Magic effect that points to the Imod and the Race.I don't know of any function to detect 1st person on a script, but you can use the IsPC1stPerson conditional on the target conditions inside the magic effect. Link to comment Share on other sites More sharing options...
Aenorth Posted July 3, 2012 Author Share Posted July 3, 2012 It should be something like this: ImageSpaceModifier Property FXReadScrollsBlindImod Auto Race property NordRace auto ;; If you want to apply the effect to another race change this property Race TargetRace Event OnEffectStart(Actor akTarget, Actor akCaster) TargetRace = akTarget.GetRace() if TargetRace == NordRace ;; Again if you want the effect on a different race change it FXReadScrollsBlindImod.Apply() endif EndEvent You have to set the properties on the Magic effect that points to the Imod and the Race.I don't know of any function to detect 1st person on a script, but you can use the IsPC1stPerson conditional on the target conditions inside the magic effect. Thank you very much! you've been a great help to me. :biggrin: Link to comment Share on other sites More sharing options...
Recommended Posts