Difference between revisions of "ScriptEnd"

From Amulets & Armor Wiki
Jump to: navigation, search
(Created page with "End( ) Ends execution in the current script. '''Note:''' If the current script was loaded to an execution stack, it will be popped and return to the previous script. Since ...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
End( )
+
'''End( )'''
  
 
Ends execution in the current script.
 
Ends execution in the current script.
Line 18: Line 18:
 
   End()
 
   End()
 
</nowiki>
 
</nowiki>
 +
 +
 +
----
 +
Back to [[Scripting]] Main Page

Latest revision as of 21:27, 17 October 2016

End( )

Ends execution in the current script.

Note: If the current script was loaded to an execution stack, it will be popped and return to the previous script.

Since the End command ends execution, it does not require a semicolon to end the statement. It is common practice in the sample materials, provided with the ScriptCompiler project, not to place semicolons after end statements.


Example


40:  // raise exit floor
   ChangeSideTexture(1372,"SWIT1U");
   AreaSound(6007,-2528,110,300,255);
   SlideFloorNice(114, -400, -64, 100, -1);
   End()



Back to Scripting Main Page