Profile


Name
Unclash
ID
42991
Shared with
Public
Parent
None
Children
None
Created on
July 03, 2012 at 00:21 AM UTC
Updated on
July 03, 2012 at 00:21 AM UTC
Description

Sets a low clash importance and slowly brings it back up, potentially increasing score.

Best for


Code


local opts = dialog.CreateDialog("Unclash Options") opts.start = dialog.AddSlider("Start at:", 0.20, 0.00, 1.00, 2) opts.step = dialog.AddSlider("Step:", 0.02, 0.01, 1.00, 2) opts.WI = dialog.AddSlider("Wiggle Iterations", 5, 1, 25, 0) opts.SI = dialog.AddSlider("Shake Iterations", 2, 1, 25, 0) opts.mut = dialog.AddCheckbox("Mutate", false) opts.SB = dialog.AddCheckbox("Restore Very Best", false) opts.SR = dialog.AddCheckbox("Restore Recent Best", false) opts.OK = dialog.AddButton("Go", 1) opts.cancel = dialog.AddButton("Cancel", 0) if (dialog.Show(opts) > 0) then for n = opts.start.value, 1.00, opts.step.value do if n >= 1.00 then n = 1.00 end behavior.SetClashImportance(n) structure.WiggleAll(opts.WI.value) end behavior.SetClashImportance(1.00) structure.WiggleAll(opts.WI.value) if opts.mut.value then structure.MutateSidechainsAll(opts.SI.value) else structure.ShakeSidechainsAll(opts.SI.value) end structure.WiggleAll(opts.WI.value) if opts.SB.value then absolutebest.Restore() elseif opts.SR.value then recentbest.Restore() end else print("Nevermind") end

Comments