Scripts

T_ScCrea_WelkyndSpirit

Tamriel_Data.esm
Source
1begin T_ScCrea_WelkyndSpirit ; Reentering a cell with a Welkynd Spirit that does not have this script will cause its light to go out, though reloading a game cannot be accounted for with MWScript 2 3if ( CellChanged == 1 ) 4 if ( GetDisabled == 1 ) 5 return 6 endif 7 8 if ( GetHealth > 1 ) 9 removeitem "T_Ayl_DngRuin_LightWelkynd_256" 999 ; Ensure that the creature can never have more than one light 10 additem "T_Ayl_DngRuin_LightWelkynd_256" 1 11 endif 12endif 13 14end