SCRIPT SCRIPTS
General
Script commands: These are commands mostly used in the if-else-endif blocks to direct the flow of the morp as well as make logical decisions. The syntax for use of the if-else-endif block is as follows: if condition command/s evaluated if TRUE else commands/s evaluated if FALSE endif Since the "else" statement is not required, the simple if-endif block is as follows: if condition command/s evaluated if TRUE endif Break command: The break keyword will cause the morp to abort and stop when it is encountered. It is useful in controlling the flow of the program especially in conjunction with if-else-endif blocks. Example: if rand 30 mob echo TRUE else break endif mob echo This is not shown unless preceded by TRUE. See also: SCRIPT2, SCRIPT3, TRIGGERS
