Regional weather in ONE cell...

Post » Tue Sep 07, 2010 8:56 pm

After many, many years of not modding, I have recently started again, hopefully habitually. On that note, I have one cell that I want to be quite foggy. I have an external cell that I have given a regional weather type of 100% fog. However, when I go ingame, that cell has the same weather as the surrounding cells. Is what I am trying to do impossible for only one cell? Thank you in advance...
User avatar
JeSsy ArEllano
 
Posts: 3369
Joined: Fri Oct 20, 2006 10:51 am

Post » Tue Sep 07, 2010 8:24 pm

After many, many years of not modding, I have recently started again, hopefully habitually. On that note, I have one cell that I want to be quite foggy. I have an external cell that I have given a regional weather type of 100% fog. However, when I go ingame, that cell has the same weather as the surrounding cells. Is what I am trying to do impossible for only one cell? Thank you in advance...

I think it takes some time for new weather takes in. I am playing Just Cause 2, they have weather transitions that take seconds. I can't say it looks good there.
User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm

Post » Tue Sep 07, 2010 4:49 pm

Yeah, it's not instantaneous. Even when you walk into the cell, the game waits until a certain amount of time has passed before any weather changes, and then it takes another amount of time to transition to the new weather. :bonk: Both times are set in the INI file, so you can't exactly package that into your mod.

You could make a script to insta-change the weather once you walk into the cell, then attach the script to a small activator and hide it under the ground somewhere in that cell. That's how I'd do it, at least.
User avatar
Pete Schmitzer
 
Posts: 3387
Joined: Fri Sep 14, 2007 8:20 am

Post » Tue Sep 07, 2010 8:06 pm

Skaeps.mp3...would you perchance know how to script such a script? I have NO scripting abilities what-so-ever and I would be terribly appreciative if you could provide one... :D
User avatar
abi
 
Posts: 3405
Joined: Sat Nov 11, 2006 7:17 am

Post » Tue Sep 07, 2010 3:11 pm

Skaeps.mp3...would you perchance know how to script such a script? I have NO scripting abilities what-so-ever and I would be terribly appreciative if you could provide one... :D


You would have to change the region ID of the cell in question to something unique.

world->regions->new

then:

world->exterior cell->region weather type

...to your new unique ID.

You can set the weather chances when you create the new region, they must add up to 100, but you can have the chances divided as you see fit. Any of them can be 0 or 100 too if you want to gaurantee a certain weather type, but they must all add up to 100.

If you want the weather to change at a certain time, after a quest for example, you could use a local script since it is only one cell. Post back here if you need something specific like that. ;)

Also: Welcome Back :)
User avatar
Naomi Ward
 
Posts: 3450
Joined: Fri Jul 14, 2006 8:37 pm

Post » Tue Sep 07, 2010 11:53 am

You would have to change the region ID of the cell in question to something unique.

world->regions->new

then:

world->exterior cell->region weather type

...to your new unique ID.

You can set the weather chances when you create the new region, they must add up to 100, but you can have the chances divided as you see fit. Any of them can be 0 or 100 too if you want to gaurantee a certain weather type, but they must all add up to 100.

If you want the weather to change at a certain time, after a quest for example, you could use a local script since it is only one cell. Post back here if you need something specific like that. ;)

Also: Welcome Back :)



Thank you. Yes I did all of that, my regions and exterior cells are all configured correctly. However when I enter that cell (there are actually two now I guess) there is no fog, not even if I wait....

What I would like if this cannot work is a script that will instantly change the weather for those two cells once the player enters the surrounding area, not just the cell...is this possible and if it is, could someone please gift that to me? :D
User avatar
Nicole M
 
Posts: 3501
Joined: Thu Jun 15, 2006 6:31 am

Post » Tue Sep 07, 2010 11:48 am

It won't be instant as there is always a short transition period between one weather state and another, but you could put this script on an object in your cell that won't move such as a barrel (or just any random misc object but hide the object where they player can never see or touch it). You could even put it in the consecutive cells too.

If ( GetCurrentWeather != 2 )
ChangeWeather "RegionID" 2
endif

End


Where the RegionID is replaced by the actual ID of the region from the CS.
User avatar
Amanda savory
 
Posts: 3332
Joined: Mon Nov 27, 2006 10:37 am

Post » Wed Sep 08, 2010 12:52 am

It won't be instant as there is always a short transition period between one weather state and another, but you could put this script on an object in your cell that won't move such as a barrel (or just any random misc object but hide the object where they player can never see or touch it). You could even put it in the consecutive cells too.



Where the RegionID is replaced by the actual ID of the region from the CS.

What Chainy said. For clarification, Morrowind only activates the script while the player is either in or near that cell. So that one cell, and all eight cells around it, will have that weather.
User avatar
Kanaoka
 
Posts: 3416
Joined: Fri Jun 16, 2006 2:24 pm

Post » Tue Sep 07, 2010 7:16 pm

You can force instead weather changes by advancing the time 1 hour after setting the weather type (at least I know that will work if you wait an hour using the in-game rest dialog).
User avatar
Louise
 
Posts: 3407
Joined: Wed Nov 01, 2006 1:06 pm


Return to III - Morrowind