if anyone can review my weather script below and see that with this we can maybe cover fire in the rain...i just cant figure out the "cover" script.
following this script it creates randomness for 3 aspects of weather (thunder, rain, and timers) to create 3000 + combinations of random thunder, random rain & random time of day or night.
Why this script should enable to covering fire from rain?
I have removed the game.inf command for "rainratio=%" and the script relies on the "changeday" to start it, and to loop it. When the thunder & rain randomly stops, all timers are free and nothing runs until the next changeday. With looping it can stop raining & thunder for a bit then rain again and stop again...or thunders only for a moment, or a while, before rain, and/or after rain etc...all at random and with no set pattern.
So with no "rainratio" command in the "game.inf" file...we should be able to over-ride the Fire being snuffed on rain, by using a trigger, or inrange of object, with building type being cover...where when the fire is lit, if it is inrange of cover, it will addstate 5 instead of 4...thus resulting in the fire staying lit in the rain.
also taking into account, the items that create fire would have to have the script to addstate 5 if the conditions are met (fire built in 0 range of cover) ...like firestone, branchbark fire, lighting it with a handtorch.
note: the script also randomly brings driftwood ashore, and anytime it rains it waters plantings in the climate section.
The script runs and works without causing lag, atleast on my computer and im using Vista HP.
also note: I ran tests and tests adjusting the results to match that of a 10% rainratio...you can change 1 number to increase this percentage to your own choosing.
1
$random=random(1,80);
This script replaces the "rainratio command" in your "game.inf" file, and you may have to edit the "watered" variable to your own for watering plants...or edit the driftwood to your "item ID" number or whatever.
edited 12×, last 30.11.12 06:31:17 am