Jump to content

Require help with a script


Aenorth

Recommended Posts

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 by Aenorth
Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

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