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

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

Репозиторий

<kuid2:160293:101005:5> Set S-Variable

Тип: Команда
Опубликовано: 5.06.2020 18:52:41
Скачиваний: 95
Размер: 16.0 kB

Скачать

Version 1.5 2016-07-14
A Driver schedule command to create or change the value of a session variable using a new format.
The command is structured by selecting the required menu entries: first the variable name then the assignment.
Add the InputTable rule to your session and then add new entries with the following format:

For variable names use: svname,variable-name
For assignments use: svar,assignment,value
All terms are separated by commas.
Advanced usage: value can be the name of another variable which contains a number.
If the defined svname starts with a $ symbol then the variable is stored as an alphabetic string.

Valid assignments are: set, inc, dec, ran,
where
set means set variable to value
inc means increase variable by value
dec means decrease variable by value
ran means set variable to a random number between 1 and value
Example Meaning
svname, XYZ Define variable name 'XYZ'
svname,My Variable Define variable name 'My Variable'
svname,$My Name Define a variable to hold a string of letters
svar,set,2 Set variable value to 2
svar,inc,3 Increase variable value by 3
svar,dec,5 Decrease variable value by 5
svar,ran,6 Set variable to a random number 1-6
svar,set,XYZ Set variable to the value of 'XYZ'
svar,set,'Fred' Set variable to an alpha string 'Fred'
Do not use floating point (decimal) numbers.
Once a set of command entries is added to the InputTable rule, they will appear in the Set S-Variables command menu.

Examples of completed driver orders:
Set XYZ to 2
Inc My Variable by 3
Dec XYZ by 5
Set My Variable to XYZ
Set $My Name to 'Fred'

Thanks to Atila Barut for the original framework and to Lots_Trains for beta testing.


config.txt:

Файлы:
setsvariablecommand.gs 5.1 kB
setsvariableschedulecommand.gs 4.6 kB
tag.texture.txt 39 B
thumbnail.jpg 6.3 kB
tag.tga 64.0 kB
Общий объём файлов: 80.1 kB

Версии элемента:
kuid kind name build date size
<kuid2:160293:101005:5> drivercommand Set S-Variable 3.5 5.06.2020 18:52:41 16.0 kB

Зависимости:
kuid author kind name build date size
<kuid:-3:10197> #-3 library ПеременныеСессии 0 2.07.2020 9:39:31 257 B
<kuid2:131986:1012:1> #131986 behavior InputTable 2.5 18.04.2023 15:34:16 22.3 kB
Всего связей: 2, неизвестных связей: 0

Зависимые элементы:
kuid author kind name build date size
<kuid2:160293:101006:3> #160293 drivercommand Wait Until S-variable V3 3.5 5.06.2020 18:52:43 17.8 kB

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


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