Skip to content

Instantly share code, notes, and snippets.

@jyrkive
Created June 28, 2018 17:11
Show Gist options
  • Save jyrkive/ed63aa0053f69d6f13060dbb8da05fba to your computer and use it in GitHub Desktop.
Save jyrkive/ed63aa0053f69d6f13060dbb8da05fba to your computer and use it in GitHub Desktop.
local weathers = {"clear", "drought", "rain", "snowfall"}
local roll = wesnoth.random(4)
weather_id = weathers[roll]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment