Code: Select all
math.randomseed(os.time())
-- Creates a seed for RNG
local PNI=Draft.getDraft("$anim_people_source01"):getFrame (21)
-- Sets the frame variables
function script.nextDay ()
City.issueDisaster ("DISASTER_RIOT", 1, 0)
City.issueDisaster ("DISASTER_RIOT", -1, 0)
City.issueDisaster ("DISASTER_RIOT", 0, 1)
City.issueDisaster ("DISASTER_RIOT", 0, -1)
City.issueDisaster ("FIRE", 0, 0)
City.showNotification{icon=PNI, id="Riot.notif", showOnce=false, important=true, text="Prison riot!", locationX, locationY}
end