stormmage Posted October 30, 2014 Share Posted October 30, 2014 (edited) I am having trouble getting Night Vision to work properly on the Desert Ranger helmet from Honest Hearts. I successfully duplicated the item, copied the Elite Riot Gear helmet script (for sneak sight) but after adjusting the parameters to trigger the low light vision, it will not trigger. I have two seperate effects for Low-Light, one for auto night vision outside set as: R HasMagicEffect Base Effect: 'CateyeBaseEffect' == 0.00 ANDR IsInInterior None == 0.00 ANDS GetCurrentTime None >= 20.25 ORS GetCurrentTime None <= 5.75 OR the other for Inside sneaking vision S IsSneaking None == 1.00 ANDR IsInInterior None == 1.00 ANDR HasMagicEffect Base Effect: 'CateyeBaseEffect' == 0.00 AND Can anyone point out what I am doing wrong here? Edited October 31, 2014 by stormmage Link to comment Share on other sites More sharing options...
ThatOtherUser Posted October 30, 2014 Share Posted October 30, 2014 Why do you have two ANDs and two ORs on the bottom effects? Beginner coder myself, so this might be a very stupid question. Also, very stupid question, I know. Where are you actually giving the Cateye effect to the player? You're checking all the right conditions, sure, but the Elite Riot Gear helmet probably had something else in its script, didn't it? Have you tried adding debug statements to your code as well, see what statements are actually triggering? Link to comment Share on other sites More sharing options...
stormmage Posted October 31, 2014 Author Share Posted October 31, 2014 I copied the Riot Gear script and modified it to those conditions. The top one is almost identical to the Riot Helmet. The effects are added via apparel modifications like any other stat modifier on armor. To answer your first question, I only want the effect (first AND) to trigger when the player is outside (second AND) and between those times (OR statements) for general night vision regardless if sneaking or not. The second effect is designed to require the player be both indoors and sneaking to trigger the night vision. Link to comment Share on other sites More sharing options...
ThatOtherUser Posted October 31, 2014 Share Posted October 31, 2014 Think you could grab both the Elite Riot Gear helmet code and your code, and put them here side-by-side? We might be able to figure it out then. Link to comment Share on other sites More sharing options...
stormmage Posted October 31, 2014 Author Share Posted October 31, 2014 Not easily. Fastest way would be to look up the helmet (NVDLC04HelmetRiotGearUnique) in GECK and compare the changes I posted. Link to comment Share on other sites More sharing options...
stormmage Posted October 31, 2014 Author Share Posted October 31, 2014 I have noticed during testing just now, that while unequiped it shows Low Light Vision and Sneak Sight (i changed crouch to sneak for test) but as soon as it is equipped it loses Low Light and as soon as I crouch it loses Sneak Sight..... Link to comment Share on other sites More sharing options...
Recommended Posts