Поддержать проект | Форум trainz-mp.ru | Обратная связь (Ваш вопрос, Создание пакетов) На наших часах: 18.12.2024 1:48:15

Здравствуйте Гость ( Войти через форум ) Авторизовавшись Вы сможете загружать сюда любые зависимости формата .CDP для игры Trainz Куиды Поиск

Репозиторий

<kuid2:160293:101014:3> Skip if session-variable

Тип: Команда
Опубликовано: 5.06.2020 18:53:04
Скачиваний: 82
Размер: 19.9 kB

Скачать

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.


config.txt:

Файлы:
screenshot.tga 126.6 kB
skipifsvarcommand.gs 9.0 kB
skipifsvarschedulecommand.gs 6.9 kB
tag.texture.txt 41 B
tag.tga 64.0 kB
Общий объём файлов: 206.5 kB

Версии элемента:
kuid kind name build date size
<kuid2:160293:101014:3> drivercommand Skip if session-variable 2.9 5.06.2020 18:53:04 19.9 kB

Зависимости:
kuid author kind name build date size
<kuid:-3:10197> #-3 library ПеременныеСессии 0 2.07.2020 9:39:31 257 B
<kuid:-3:10219> #-3 library Звуковые команды 0 1.07.2020 12:56:36 8.4 kB
<kuid2:131986:1012:1> #131986 behavior InputTable 2.5 18.04.2023 15:34:16 22.3 kB
<kuid:160293:101002> #160293 drivercommand Insert buff label 2.9 5.06.2020 18:53:02 24.5 kB
<kuid2:160293:101003:2> #160293 drivercommand Jump to label 2.9 5.06.2020 18:52:28 24.9 kB
Всего связей: 5, неизвестных связей: 0

Зависимые элементы:
kuid author kind name build date size
Нет

Яндекс.Метрика


Powered by AKR © Камиль Ахметзянов aka kemal, 2011 - 2024