IpWeatherLib2 Example by Ip Man

Based on Pixie's WeatherLib.aslx, so all of Pixie's Documentation still stands. Find Pixie's Documentation and original library here https://github.com/ThePix/quest/wiki/Library:-Weather

Ip's upgrades:

Weather tab allows Inside rooms to receive the attribute:

Windowed

This will allow players to see the weather outside from rooms that have a view.


Can call the weatherlook function:
This will do a more complex "look" at the current weather and return values for outside and "Windowed" rooms and also day/night descriptions.

**For this function to work without throwing odd errors, you need your all weatherrooms to have:
1. an alias, and these three added via the expanded weather tab:
a. "nightweatherdesc"
b. "look"
and "nightlook"

There is an integrated daytime/nighttime cycle which works with the moon cycles and weather elements objects so that you can interact with the appropriate weather and the interface changes to show the brightness/darkness of night.

You can activate the cycle by either:
enabaling daytime or nighttime turnscript
calling the function makeday or makenight
using the "cheat" command wakey or mimis

Weather you can interact with!

This library also includes separate objects with variations of weatherlook on them and variations of description scripts. You can customize the descriptions on the expanded weather room tab for even more detail.

Included objects are:
sky, clouds, rain, moon, stars, lightning, thunder, air, sun, wind, snow, sleet, hail, rainbow1.

You'll need to create the following:

The weather tab on the editor adds attributes which need to be read by your senses commands:

You'll need your senses commands to run script attributes on "this" object:
taste to run "tastedesc"
touch to run "touchdesc"
listen to run "listen"
smell to run "smell"

Moon Cycles:

If the moon is "present" in your weather room, you can set it's phase.
The full moon will be bright enough to light an outdoor room, and will
Comment Ip Man
30 Mar 2024
Currently working on a major overhaul of WeatherLib3 which integrates it into the Quest core as a toggle-able feature, fixes bugs, and enhances the day/night features! Plus adds in-tab instructions for how to use it.

Comment Ip Man
16 Mar 2024
While working on a massive core integration of multiple beloved libraries, I discovered that the enhanced WeatherLib needed much more work. I don't know why I was using "HasAttribute" in so many places that should have had GetBoolean... except that I was still not completely clear on what the differences were.

This also requires that defaultgame type and weather type needs the false booleans as attributes so there's no error running the script. I'm surprised that no one commented about bugs/errors. But maybe no one actually tried to use the thing. I've got it working very much better in my core integration.

I've also updated the daytime turnscript to deactivate itself if the weatherlib checkbox isn't checked on the game object. Eventually I'll find where to post code. But I'm working on so many more core updates and integrations of these libraries.

Comment Ip Man
18 Sep 2023
Updated the library. See the post in the forum here:
https://textadventures.co.uk/forum/samples/topic/mbcjmddyquok_9_2wch9mq/updated-version-of-enhanced-weatherlib

Log in to post a review or comment.


Average rating
Not yet rated
Written by
Ip Man

Plays
470
Downloads
402
Download file
Quest 5.8
English
Added 28 Jun 2023
Updated 06 Jul 2023

Site News

See all announcements →