Icon representing a recipe

Recipe: Beginner Rebuild SCRIPT 2.01

created by LociOiling

Profile


Name
Beginner Rebuild SCRIPT 2.01
ID
102316
Shared with
Public
Parent
None
Children
Created on
March 27, 2017 at 21:58 PM UTC
Updated on
March 27, 2017 at 21:58 PM UTC
Description

Updated version of Beginner Rebuild SCRIPT 2.00 by the marquis from October, 2009. This updated version uses the Foldit Lua Interface V2, and is based on the material from the third Lua tutorial.

Best for


Code


-- -- Automatic Rebuild script by your name here -- -- step 1 - rebuild the first 10 segments -- print ( "My first script!") print ( "Score before rebuilding is " .. current.GetEnergyScore () ) selection.DeselectAll () -- deselect everything, just in case anything is selected by mistake. selection.SelectRange ( 1, 10 ) -- select segments 1 through 10 structure.RebuildSelected ( 1 ) -- rebuild the selected segments for 1 round structure.ShakeSidechainsAll ( 2 ) -- shake for 2 rounds structure.WiggleAll ( 10 ) -- wiggle it out for 10 rounds print ( "Score after rebuilding is " .. current.GetEnergyScore () )

Comments