In my new mod I use some scripts, and it is very large!!! So it works very slowly!:
Can you please help me with making it smaller and more comfortable for game.
Thnks you for any respnse...
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 14Scriptname QF_WillyShipControl_020093F8 Extends Quest Hidden;BEGIN FRAGMENT Fragment_14Function Fragment_14();BEGIN CODEWillyShipCommand.Setstage(10);END CODEEndFunction;END FRAGMENT;BEGIN FRAGMENT Fragment_12Function Fragment_12();BEGIN CODEWhile(bEnabled == false)if(!eRiverwoodCell.isAttached()||!eRiverwoodCell1.isAttached()|| !eRiverwoodCell2.isAttached()|| !eRiverwoodCell3.isAttached()||!eRiverwoodCell4.isAttached()||!eRiverwoodCell5.isAttached()||!eRiverwoodCell6.isAttached())aRiverwoodShip.Enable()fPetty.Enable()bEnabled = trueElseUtility.WaitGameTime(24)endifendwhile;END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentFunction RiwerwoodFirstTime()PettyInRiwerWood.ForceRefTo(fPetty)EndFunctionFunction Riverwood()aRiverWoodShip.Enable()PettyInRiwerWood.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportRiverwoodMarker)Game.FastTravel(bTeleportRiverwoodMarker)aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Falkreath()aFalkreathShip.Enable()PettyInFalkreath.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportFalkreathMarker)Game.FastTravel(bTeleportFalkreathMarker)aRiverWoodShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Whiterun()aWhiterunShip.Enable()PettyInWhiterun.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportWhiterunMarker)Game.GetPlayer().MoveTo(bTeleportWhiterunMarker)Game.FastTravel(bTeleportWhiterunMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Riften()aRiftenShip.Enable()PettyInRiften.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportRiftenMarker)Game.FastTravel(bTeleportRiftenMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Windhelm()aWindhelmShip.Enable()PettyInWindhelm.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportWindhelmMarker)Game.FastTravel(bTeleportWindhelmMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Winterhold()aWinterholdShip.Enable()PettyInWinterHold.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportWinterholdMarker)Game.FastTravel(bTeleportWinterholdMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Danstar()aDanstarShip.Enable()PettyInDanstar.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportDanstarMarker)Game.FastTravel(bTeleportDanstarMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Morthal()aMorthalShip.Enable()PettyInMorthal.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportMorthalMarker)Game.FastTravel(bTeleportMorthalMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Markart()aMarkarthShip.Enable()PettyInMarkarth.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportMarkartMarker)Game.FastTravel(bTeleportMarkartMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aSolitudeShip.Disable()aHightSkyShip.Disable()EndfunctionFunction Solitude()aSolitudeShip.Enable()PettyInSolitude.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportSolitudeMarker)Game.FastTravel(bTeleportSolitudeMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aHightSkyShip.Disable()EndfunctionFunction HighinSky()aHightSkyShip.Enable()PettyInHighSky.ForceRefTo(fPetty)fPetty.MoveTo(cPettyTeleportHighSkyMarker)Game.FastTravel(bTeleportHighSkyMarker)aRiverWoodShip.Disable()aFalkreathShip.Disable()aWhiterunShip.Disable()aRiftenShip.Disable()aWindhelmShip.Disable()aWinterholdShip.Disable()aDanstarShip.Disable()aMorthalShip.Disable()aMarkarthShip.Disable()aSolitudeShip.Disable()EndfunctionFunction AirshipCrew()Game.GetPlayer().SetFactionRank(AirShipFaction, 0)endfunctionFunction GiveWillyKey()Game.GetPlayer().AddItem(WillyHouseKey)Game.GetPlayer().AddItem(WillyLetter)EndFunctionFunction RemoveAlias()PettyInDanstar.Clear()PettyInWinterHold.Clear()PettyInRiwerWood.Clear()PettyInHighSky.Clear()PettyInMorthal.Clear()PettyInFalkreath.Clear()PettyInWindhelm.Clear()PettyInRiften.Clear()PettyInMarkarth.Clear()PettyInWhiterun.Clear()PettyInSolitude.Clear()endFunctionBool Property bEnabled AutoActor Property fPetty AutoCell Property eRiverwoodCell AutoCell Property eRiverwoodCell1 AutoCell Property eRiverwoodCell2 AutoCell Property eRiverwoodCell3 AutoCell Property eRiverwoodCell4 AutoCell Property eRiverwoodCell5 AutoCell Property eRiverwoodCell6 AutoObjectReference Property aRiverwoodShip AutoObjectReference Property aFalkreathShip AutoObjectReference Property aWhiterunShip AutoObjectReference Property aRiftenShip AutoObjectReference Property aWindhelmShip AutoObjectReference Property aWinterholdShip AutoObjectReference Property aDanstarShip AutoObjectReference Property aMorthalShip AutoObjectReference Property aMarkarthShip AutoObjectReference Property aSolitudeShip AutoObjectReference Property aHightSkyShip AutoObjectReference Property bTeleportRiverwoodMarker AutoObjectReference Property bTeleportFalkreathMarker AutoObjectReference Property bTeleportRiftenMarker AutoObjectReference Property bTeleportWhiterunMarker AutoObjectReference Property bTeleportWindhelmMarker AutoObjectReference Property bTeleportWinterholdMarker AutoObjectReference Property bTeleportDanstarMarker AutoObjectReference Property bTeleportMorthalMarker AutoObjectReference Property bTeleportMarkartMarker AutoObjectReference Property bTeleportSolitudeMarker AutoObjectReference Property bTeleportHighSkyMarker AutoObjectReference Property cPettyTeleportRiverwoodMarker AutoObjectReference Property cPettyTeleportFalkreathMarker AutoObjectReference Property cPettyTeleportRiftenMarker AutoObjectReference Property cPettyTeleportWhiterunMarker AutoObjectReference Property cPettyTeleportWindhelmMarker AutoObjectReference Property cPettyTeleportWinterholdMarker AutoObjectReference Property cPettyTeleportDanstarMarker AutoObjectReference Property cPettyTeleportMorthalMarker AutoObjectReference Property cPettyTeleportMarkartMarker AutoObjectReference Property cPettyTeleportSolitudeMarker AutoObjectReference Property cPettyTeleportHighSkyMarker AutoFaction Property AirShipFaction AutoQuest Property WillyShipCommand AutoKey Property WillyHouseKey AutoBook Property WillyLetter AutoReferenceAlias Property PettyInDanstar AutoReferenceAlias Property PettyInWinterHold AutoReferenceAlias Property PettyInRiwerWood AutoReferenceAlias Property PettyInHighSky AutoReferenceAlias Property PettyInMorthal AutoReferenceAlias Property PettyInFalkreath AutoReferenceAlias Property PettyInWindhelm AutoReferenceAlias Property PettyInRiften AutoReferenceAlias Property PettyInMarkarth AutoReferenceAlias Property PettyInWhiterun AutoReferenceAlias Property PettyInSolitude Auto