Icon representing a recipe

Recipe: Mutate Importance

created by Bruno Kestemont

Profile


Name
Mutate Importance
ID
104268
Shared with
Public
Parent
None
Children
Created on
December 01, 2021 at 20:24 PM UTC
Updated on
December 01, 2021 at 20:24 PM UTC
Description

Mutate with high importance for several options importances like hiding, clashing, bonding etc.

Best for


Code


--Mutate test save.Quicksave(3) BestScore = current.GetScore() StartScore = BestScore BestBonus = filter.GetBonusTotal() StartBonus = BestBonus Importance = 3 print("Click on behavior - RECIPE SCORE MODDING before to run") function SaveBest() local ss= current.GetScore() local g = ss - BestScore local tb = filter.GetBonusTotal() local bg = tb - BestBonus if g > 0 and bg >= 0 then print("Gained another" .. g.. " Score: "..ss.. " Bonus: "..tb) BestScore= ss BestBonus = tb save.Quicksave(3) else print(":( no gain") end end function SidechainsHbondFuze() print("SidechainHbond") save.Quickload(3) recentbest.Save() behavior.SetSidechainHBondImportance(Importance) structure.MutateSidechainsAll(1) recentbest.Restore() SaveBest() behavior.SetSidechainHBondImportance(1) end function BackboneHbondFuze() print("BackboneHbond") save.Quickload(3) recentbest.Save() behavior.SetBackboneHBondImportance(Importance) structure.MutateSidechainsAll(1) recentbest.Restore() SaveBest() behavior.SetBackboneHBondImportance(1) end function PairWiseFuze() print("PairWise") save.Quickload(3) recentbest.Save() behavior.SetPairwiseImportance(Importance) structure.MutateSidechainsAll(1) recentbest.Restore() SaveBest() behavior.SetPairwiseImportance(1) end function PackingFuze() print("Packing") save.Quickload(3) recentbest.Save() behavior.SetPackingImportance(Importance) structure.MutateSidechainsAll(1) recentbest.Restore() SaveBest() behavior.SetPackingImportance(1) end function HidingFuze() print("Hiding") save.Quickload(3) recentbest.Save() behavior.SetHidingImportance(Importance) structure.MutateSidechainsAll(1) recentbest.Restore() SaveBest() behavior.SetHidingImportance(1) end function ClashingFuze() print("Clashing importance 0.9") save.Quickload(3) recentbest.Save() behavior.SetClashImportance(0.9) structure.MutateSidechainsAll(1) recentbest.Restore() SaveBest() behavior.SetClashImportance(1) end for importance = 3, 0, -1 do print("Testing Importance = "..importance) Importance = importance SidechainsHbondFuze() BackboneHbondFuze() PairWiseFuze() PackingFuze() HidingFuze() ClashingFuze() save.Quickload(3) end

Comments