Jump to content

How important are the letters positions in scripts?


JPTR1

Recommended Posts

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 Auto
ObjectReference Property Collision Auto
ObjectReference Property CollisionD Auto
MiscObject Property Item Auto

Event 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()

endIf

EndEvent

 

 

 

Example without spaces:

 

 

Scriptname MansionHornPlaceGold extends ObjectReference

ObjectReference Property OrbOfTeenhood Auto
ObjectReference Property Collision Auto
ObjectReference Property CollisionD Auto
MiscObject Property Item Auto

Event 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()

endIf
EndEvent

 

 

Edited by JPTR1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...