Leonsak77-Leos_Weather_Forecast_API icon

Leos Weather Forecast API

An API I made so that SoundAPI can now have weather as a condition

Last updated a day ago
Total downloads 39
Total rating 0 
Categories Libraries
Dependency string Leonsak77-Leos_Weather_Forecast_API-1.0.0
Dependants 2 other packages depend on this package

This mod requires the following mods to function

loaforc-loaforcsSoundAPI-2.0.13 icon
loaforc-loaforcsSoundAPI

A general use library to replace sounds in Unity games.

Preferred version: 2.0.13

README

Usage guide

  • Install this mod (duh)
  • Create a normal replacer for SoundAPI
  • condition type is: "lwfAPI:weather" and value is the weather string

A little bonus I added shows the weather string when an lwfAPI condition is triggered, weather registry mod does the same upon landing on a planet. (Yes its more convenient than my solution 😭)

Code example:

"replacements": [
	{
		"matches": "#FacilityMeltdown:music",
		"sounds": [
			{
				"sound": "Music/eclipsemeltdown.ogg",

				"condition": {
				"type": "lwfAPI:weather",
				"value": "eclipsed"
				}
			}

Changelog

  • (Version 1.0.0) - Initial Release :D