JPTR1 Posted June 5, 2022 Posted June 5, 2022 (edited) Might be a stupid question, but i have a lot of scripts now (but still a noob) and i did not realy care about the horizontal position of the command lines in the scripts... so i might better ask before publish it. Are there any possible issues i should be aware of? Example with spaces: Scriptname MansionHornPlaceGold extends ObjectReference ObjectReference Property OrbOfTeenhood AutoObjectReference Property Collision AutoObjectReference Property CollisionD AutoMiscObject Property Item AutoEvent OnActivate(ObjectReference akActionRef) if (Game.GetPlayer().GetItemCount(Item) == 0) Debug.Notification("A warhorn rack.")else Game.GetPlayer().RemoveItem(Item, 1, true) Debug.Notification("The Golden Warhorn has been placed.") (GetLinkedRef() as ObjectReference).SetOpen(True) OrbOfTeenhood.enable() Collision.enable() CollisionD.disable() endIfEndEvent Example without spaces: Scriptname MansionHornPlaceGold extends ObjectReference ObjectReference Property OrbOfTeenhood AutoObjectReference Property Collision AutoObjectReference Property CollisionD AutoMiscObject Property Item AutoEvent OnActivate(ObjectReference akActionRef)if (Game.GetPlayer().GetItemCount(Item) == 0)Debug.Notification("A warhorn rack.")elseGame.GetPlayer().RemoveItem(Item, 1, true)Debug.Notification("The Golden Warhorn has been placed.")(GetLinkedRef() as ObjectReference).SetOpen(True)OrbOfTeenhood.enable()Collision.enable()CollisionD.disable()endIfEndEvent Edited June 5, 2022 by JPTR1
dylbill Posted June 5, 2022 Posted June 5, 2022 The spaces or tabs in a line don't matter at all to the compiler, they just make the source script easier to read.
Recommended Posts