weather system

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
125
newbury
hello

im trying to figure out how to get weather system working i have found a weather txt file but not sure how or where they link together.
 

Attachments

  • weather.JPG
    weather.JPG
    145.9 KB · Views: 97

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
weather is already working isnt it? i know it was in my files.

look in 00default.txt and ull find it links to the weather.txt

then the part where it says changemapattr is the bit where it changes the weather.
 
Upvote 0

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
125
newbury
weather is already working isnt it? i know it was in my files.

look in 00default.txt and ull find it links to the weather.txt

then the part where it says changemapattr is the bit where it changes the weather.


ok ty i will take a look cheers



ok have fog working on ship as it wasnt before,

next question is weather on a time system too or do i have to tell it to happen a certain times. also what other weathers do we have apart from snow and fog ?
 
Last edited:
Upvote 0

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
125
newbury
i need some advice plz trying to add ran to a village useing the weather.txt function whihc has fog running on maps i have posted the scripted below.

;;不要删掉此行
[@Weather]
{
#ACT
ClearDelaygoto 1003
goto @ConfirmWeather_SinGiSun

[@ConfirmWeather_SinGiSun]
#ACT
movr P0 20
#IF
Small P0 3
#ACT
ChangeMapAttr "D1401,D1402,D1403,D1404,D1405,D1406" "Fog"
Delaygoto [Grobal] 600 @ConfirmWeather_SinGiSun 1003
#ELSEACT
ChangeMapAttr "D1401,D1402,D1403,D1404,D1405,D1406" "Clean"
Delaygoto [Grobal] 3600 @ConfirmWeather_SinGiSun 1003

this bit all works above as this is th mystery ship part,
this bit below is what i have put in to get ran in a village but isnt working
just wonderd if someone could correct me if im wrong in what im trying to do.


[@ConfirmWeather_SinGiSun1]
#ACT
movr P0 20
#IF
Small P0 3
#ACT
ChangeMapAttr "2" "Ran"
Delaygoto [Grobal] 600 @ConfirmWeather_SinGiSun 1003
#ELSEACT
ChangeMapAttr "2" "Clean"
Delaygoto [Grobal] 3600 @ConfirmWeather_SinGiSun 1003

}
;;不要删掉此行
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
[@Weather]
{
#ACT
ClearDelaygoto 1003
goto @ConfirmWeather_SinGiSun

[@ConfirmWeather_SinGiSun]
#ACT
random 4
ChangeMapAttr "D1401,D1402,D1403,D1404,D1405,D1406" "Fog"
Delaygoto [Grobal] 600 @ConfirmWeather_SinGiSun 1003

#ACT
random 4
ChangeMapAttr "D1401,D1402,D1403,D1404,D1405,D1406" "Snow"
Delaygoto [Grobal] 600 @ConfirmWeather_SinGiSun 1003

#ACT
random 4
ChangeMapAttr "D1401,D1402,D1403,D1404,D1405,D1406" "Rain"
Delaygoto [Grobal] 600 @ConfirmWeather_SinGiSun 1003

#ACT
random 4
ChangeMapAttr "D1401,D1402,D1403,D1404,D1405,D1406" "Clean"
Delaygoto [Grobal] 3600 @ConfirmWeather_SinGiSun 1003


or yeah, just type RAIN correctly. lol
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
#IF
Random 4
#ACT
ChangeMapAttr
DelayGoto
Break

#IF
Random4
etc

Random needs to be an IF, and you will need to add the break in to stop it running the others afterwards.
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
yeah thought i cld hav bin wrong lol. havnt done npcs for ages.
 
Upvote 0