Miccoatli Posted April 28, 2016 Posted April 28, 2016 Hi, So I got into creating a new weather mod in addition to Climates of Tamriel It adds new weather type with pinkish colour which overrides all actors arousal to maximum. That means it can lead to some crazy weather effects, especially on the ground amongst the denizens of Skyrim ). I am now facing a blocking problem. I have to create an update to arousal slaFrameworkScr script and add exception detecting my new weather. I was hoping to be able to identify it from Weather currentWeather = Weather.GetCurrentWeather() currentWeather.GetFormID() returns current ID based on my load order, which is ok for me, but not if I want to release to someone else currentWeather.GetName() returns nothing and I hoped it would return form name, which I could compare to hardcoded string is there any other way of identifying my weather form by some generic attribute I can compare??? Fog attribute or something
Miccoatli Posted April 28, 2016 Author Posted April 28, 2016 ok, solved ) get fog distance and choose obscure number I will release it after some testing this week
WraithSlayer Posted April 28, 2016 Posted April 28, 2016 The best way to do this is to use GetFormFromFile: Weather yourCustomWeather = Game.GetFormFromFile(0xABC, "YourModName.esp") as Weather If ( yourCustomWeather != None ) If ( Weather.GetCurrentWeather() == yourCustomWeather ) ;do arousal things EndIf EndIf In the GetFormFromFile call, replace ABC with the formID of your custom weather (minus the first two digits), and change the .ESP name to the correct one.
Miccoatli Posted April 29, 2016 Author Posted April 29, 2016 The best way to do this is to use GetFormFromFile: Weather yourCustomWeather = Game.GetFormFromFile(0xABC, "YourModName.esp") as Weather If ( yourCustomWeather != None ) If ( Weather.GetCurrentWeather() == yourCustomWeather ) ;do arousal things EndIf EndIf In the GetFormFromFile call, replace ABC with the formID of your custom weather (minus the first two digits), and change the .ESP name to the correct one. That looks like a cleaner sollution, I will work it into the code in the future. At the moment, I did this: Weather currentWeather = Weather.GetCurrentWeather() if (currentWeather.GetFogDistance(false,0) == 121.000000) newRank = 100 EndIf While 121 is as far as I checked in CoT specific only for my weather type.
MeMe Posted April 30, 2016 Posted April 30, 2016 This is actually an interesting idea, I don't think I've ever seen anyone suggest it before... What can you edit with a weather record? If I remember my tes5edit it shouldn't be hard to add things like quiet moans carried on the wind, or occasional flecks of floating pink snow... Damn this sounds interesting. I may have to try making my own if I ever get back to skyrim. Of course knowing me I'll probably go off the deep end and have a weather that makes little images of busty lesbians float around or something.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.