Version 1.3 2014-04-28
A driver command to skip over driver schedule commands if a condition is met. Conditions are available to be chosen from the command's menu list only after they have been inserted into the menu through use of the the InputTable rule.
Once the correct entries are added to the input table an option will appear in the
Skip If S-Variable command menu.
Skipping occurs if the condition is met, and will continue until a buff 'Label' command with the targetted number is encountered. Use the new driver command 'Insert buff label' to define the position where execution of commands will resume.
Variables can be defined and modified using Atila Barut's command 'changesvariables'. There are two formats that can be used to define menu items in the input table:
a. The original format as used in <kuid:131986:1005> ChangeSVariables.
b. This format: The menu is constructed in two parts -
variable names are defined by:
svname, <varname>
operations take the form:
svar, <comparitor>, <constant value>
Valid comparitors are: eq, lt, gt, le, ge, ne
where
eq means 'equal to'
lt means 'less than'
gt means 'greater than'
le means 'less than or equal to'
ge means 'greater than or equal to
ne means 'not equal to'
Examples of entries in the input table:
Entry Meaning
svname,abc Define a variable name ABC
svar,eq,5 Test if variable value = 5
svar,lt,3 Test if variable value < 3
The comma separators are important. Only whole numbers are allowed.
Example of the tooltip when examining a scheduled command:
Skip to Label 1 if ABC = 5
Skip to Label 9 if consist_count < 3
Use the new driver command 'Jump to label' to unconditionally skip over sections of the driver schedule.
Thanks to Atila Barut for the original framework and to Lots_Trains and ElStoko for beta testing.