var mint = npc.mintemp;
var maxt = npc.maxtemp;
var temp = mint + maxt;
if(temp == 50)
{
npcspeech.textmsg("well looks like the tempture today will be" + temp.toString() + "so looks like you will need you coats as it will be getting
pretty nasty.")
}
These users thanked the author dragon slayer for the post:
I like your suggestion - exposing more of the weather system to the JS engine will allow scripters to engage with it and come up with interesting new twists. It would probably not be accessed as properties of a Character object as in your example, though, but probably in a similar fashion to how regions are exposed.... aka