Forum

> > Stranded II > Mods > Mod Request (Weather Menu)
Forums overviewStranded II overview Mods overviewLog in to reply

English Mod Request (Weather Menu)

3 replies
To the start Previous 1 Next To the start

old Mod Request (Weather Menu)

Stuxrt
User Off Offline

Quote
I enjoy the weather effects in Stranded 2 and was wondering if it would be possible to create a special menu
to start/stop weather effects. Thanks,
--Stuxrt--

old Re: Mod Request (Weather Menu)

DEATHSHEAD
User Off Offline

Quote
You can change the game yourself without much work. I would say this is only a change of 10 lines of script in the file "game.inf".
In addition, you can change the weather in the cheat menu. Enter "dm" in the Console and click on "Execute Script". Then you enter this script:
1
2
3
4
5
6
7
weather X;

//For X do you use now:
//0 or sun
//1 or rain
//2 or snow
//3 or thunder

MfG DEATHSHEAD

old Re: Mod Request (Weather Menu)

Hurri04
Super User Off Offline

Quote
yes, this can be done easily by scripting.

if you want to you can try to script a menu yourself, here is a scripting tutorial

if you already have some knowledge in scripting from other scripting/programming languages, this should be no big deal for you.
if you havent, it shouldnt be neither

however, if you still dont know how to write this script here is one which is ready for use:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
scriptkey=00,Weather Menu

script=start
on:keyhit00 {
	event "weather_menu", "global";
}

on:weather_menu {
	if($weather_state==0) {
		weather 0;
		$weather_state++;
	}elseif($weather_state==1) {
		weather 1;
		$weather_state++;
	}elseif($weather_state==2) {
		weather 2;
		$weather_state++;
	}elseif($weather_state==3) {
		weather 3;
		$weather_state=0;
	}
}
script=end
create a new file in the sys folder of the Stranded mod you're playing and call it "game_weather.inf". then copy the script into it and save.

next you have to start the game and go to the options where you have to select a key which will trigger the script.

after that you open any map and press that key.
the weather will loop from sun to rain to snow to storm and back to sun.
To the start Previous 1 Next To the start
Log in to reply Mods overviewStranded II overviewForums overview